if_eex32.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:2k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* if_eex32.h - header file for interl EtherExpress Flash 32 */
  2. /* Copyright 1984-2002, Wind River Systems, Inc. */
  3. /* 
  4. modification history
  5. --------------------
  6. 01d,26apr02,dat  Adding cplusplus protection, SPR 75017
  7. 01c,06mar96,hdn  moved from config/pc386.
  8. 01b,28jun94,vin  included in the BSP.
  9. 01a,12may94,bcs  written
  10. */
  11. #ifndef __INCif_eex32h
  12. #define __INCif_eex32h
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. /* I/O offsets (from EISA slot base address) */
  17. #define CA 0x0000 /* 82596 Channel Attention */
  18. #define PORT 0x0008 /* 82596 PORT (DWORD) */
  19. #define EISA_ID0 0x0c80 /* EISA Product Identifier byte 0 */
  20. #define EISA_ID1 0x0c81 /* EISA Product Identifier byte 1 */
  21. #define EISA_ID2 0x0c82 /* EISA Product Identifier byte 2 */
  22. #define EISA_ID3 0x0c83 /* EISA Product Identifier byte 3 */
  23. #define EBC 0x0c84 /* Expansion Board Control */
  24. #define PLX_CONF0 0x0c88 /* PLX IRQ Control & Preempt Time */
  25. #define PLX_CONF1 0x0c89 /* PLX USER Pins (media select) */
  26. #define PLX_CONF2 0x0c8a /* PLX EEPROM Control (NOT USED) */
  27. #define PLX_CONF3 0x0c8f /* PLX SW Reset, Burst Enable */
  28. #define NET_IA0 0x0c90 /* Ethernet Individual Address */
  29. #define FLCTL0 0x0400 /* Flash Base Address, FWE0- */
  30. #define FLCTL1 0x0410 /* Flash Base Control */
  31. #define FLADDR 0x0420 /* Flash High Address Lines */
  32. #define IRQCTL 0x0430 /* Interrupt Control */
  33. /* Important values */
  34. #define EEX32_EISA_ID0 0x25
  35. #define EEX32_EISA_ID1 0xd4
  36. #define EEX32_EISA_ID2 0x10
  37. #define EEX32_EISA_ID3 0x10
  38. /* Interrupt control bits (FLEA ASIC) */
  39. #define IRQ_EDGE 0x01 /* Interrupt is edge-triggered (RO) */
  40. #define IRQ_SEL0 0x02 /* IRQ selection bit */
  41. #define IRQ_SEL1 0x04 /* IRQ selection bit */
  42. #define IRQ_LATCH 0x08 /* Set to enable latched mode */
  43. #define IRQ_INTSTAT 0x10 /* Set when interrupt active; write 1 */
  44. /* to clear interrupt after handling */
  45. #define IRQ_FORCE_LOW 0x20 /* Set to force IRQ low (disabled) */
  46. #define IRQ_SW_INT 0x40 /* Set to cause interrupt for testing */
  47. #define IRQ_EXTEND 0x80 /* Set to enable FLEA IRQs */
  48. #ifdef __cplusplus
  49. }
  50. #endif
  51. #endif /* __INCif_eex32h */