?? i86halpep.h
字號:
/* i86HalPep.h - header for the board info library *//* Copyright 2003 Kontron Modular Computers GmbH *//*modification history--------------------01e,23feb04,gko added support for CP600001d,03mar03,sbi added LED support for CP60401c,18feb03,gko added SMI register offset for 82371 southbridge01b,11feb03,phd endian adjustment macros added01a,07oct02,gko created*/#ifndef __INCi86HalPep_h#define __INCi86HalPep_h#ifdef __cplusplusextern "C" {#endif/* includes */#include "vxWorks.h"#include "versionPep.h"/* defines */PEP_VERSION(i86HalPep_h,01e) /* version identifier *//* board info I/O port definitions */#define BOARD_ID_REG 0x288 /* board ID register */#define BOARD_HWINDEX_REG 0x289 /* hardware index register */#define BOARD_LOGIC_REG 0x28B /* logic version register *//* endian adjustment macros (do nothing) */#define BYTE_SWAP_32_BIT(x) (x)#define BYTE_SWAP_16_BIT(x) (x)/* board id names */#define HAL_ID_CP301 0x32#define HAL_ID_CP302 0x30#define HAL_ID_CP302PM 0x31#define HAL_ID_CP303 0x50#define HAL_ID_CP304 0x51#define HAL_ID_CP306 0x63#define HAL_ID_CP603 0x21#define HAL_ID_CP604 0x48#define HAL_ID_CP604_PM 0x49#define HAL_ID_CP605 0x60#define HAL_ID_CP6000 0x67#define UNSUPPORTED 0xff /* unsupported feature *//* board info structure */typedef struct { char* boardName; UINT8 boardId; UINT8 boardHwIndex; UINT8 boardLogic;} BOARD_INFO;/* SMI Control Enable Register */#ifdef I82371_SOUTHBRIDGE#define SMI_CNTRL_EN_REG_OFFS 0x28 /* PMBASE + offset 0x28 */#endif#ifdef I82801_SOUTHBRIDGE#define SMI_CNTRL_EN_REG_OFFS 0x30 /* PMBASE + offset 0x30 */#endif/* User LED's */#define LED_0 0 /* CP6000 starts with 0 */#define LED_1 1#define LED_2 2#define LED_3 3#define LED_4 4#define LED_5 5#define LED_6 6#define LED_7 7#define LED_BIT_0 0x01#define LED_BIT_1 0x02#define LED_BIT_2 0x04#define LED_BIT_3 0x08#define LED_BIT_4 0x10#define LED_BIT_5 0x20#define LED_BIT_6 0x40#define LED_BIT_7 0x80#define LED_OFF 0#define LED_ON 1#define NUM_OF_LED_CP604 1#define NUM_OF_LED_CP605 2#define NUM_OF_LED_CP6000 8#define LED_ENABLE_ADDR_CP605 0x287#define LED_ENALBE_ADDR_CP303 0x287#define LED_ENABLE_ADDR_CP304 0x287#define LED_ENABLE_ADDR_CP604 0x000#define LED_REG_ADDR_CP605 0x28D#define LED_REG_ADDR_CP303 0x28D#define LED_REG_ADDR_CP304 0x28D#define LED_REG_ADDR_CP604 0x340#define LED_REG_ADDR_CP6000 0x28D#if defined(__STDC__) || defined(__cplusplus)IMPORT BOARD_INFO* halBoardInfoGet(void);IMPORT STATUS halBoardInfoShow(void);IMPORT STATUS halDisableSmi(void);IMPORT STATUS halSwitchUserLed(int,int);IMPORT STATUS halPhysMemDescShow(void);#elseIMPORT BOARD_INFO* halBoardInfoGet();IMPORT STATUS halBoardInfoShow();IMPORT STATUS halDisableSmi();IMPORT STATUS halSwitchUserLed();IMPORT STATUS halPhysMemDescShow(void);#endif /* __STDC__ */#endif /* ifndef __INCi86HalPep_h */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -