diff options
author | mdodd <mdodd@FreeBSD.org> | 2003-03-28 06:27:08 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2003-03-28 06:27:08 +0000 |
commit | c8027bafcc43a67095264e9c70b07171265db894 (patch) | |
tree | 6169aa93614aa5fd4c49d75851995af687f1ce05 /sys/dev/ie/if_iee16.h | |
parent | 430664f150d08628133cf598cd087e81248f6efd (diff) | |
download | FreeBSD-src-c8027bafcc43a67095264e9c70b07171265db894.zip FreeBSD-src-c8027bafcc43a67095264e9c70b07171265db894.tar.gz |
- Clean up function calling conventions.
- Be consistent about what we call our softc.
- Minor formatting.
- Add some register definitions gleaned from NetBSD/Linux.
Diffstat (limited to 'sys/dev/ie/if_iee16.h')
-rw-r--r-- | sys/dev/ie/if_iee16.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/dev/ie/if_iee16.h b/sys/dev/ie/if_iee16.h index 6ac8afa..dcd8bae 100644 --- a/sys/dev/ie/if_iee16.h +++ b/sys/dev/ie/if_iee16.h @@ -35,10 +35,17 @@ * Definitions for EtherExpress 16 */ +#define IEE16_DATAPORT 0x00 /* shared memory data port */ +#define IEE16_WRITEPTR 0x02 /* shared memory write pointer */ +#define IEE16_READPTR 0x04 /* shared memory read pointer */ + #define IEE16_ATTN 0x06 /* channel attention control */ #define IEE16_IRQ 0x07 /* IRQ configuration */ +#define IEE16_IRQ_DISABLE 0x00 /* disable board interrupts */ #define IEE16_IRQ_ENABLE 0x08 /* enable board interrupts */ +#define IEE16_SHADOWPTR 0x08 /* shadow memory pointer */ + #define IEE16_MEMDEC 0x0a /* memory decode */ #define IEE16_MCTRL 0x0b /* memory control */ #define IEE16_MCTRL_FMCS16 0x10 /* MEMCS16- for F000 */ @@ -71,6 +78,8 @@ /* Locations in the EEPROM */ #define IEE16_EEPROM_CONFIG1 0x00 /* Configuration register 1 */ +#define IEE16_EEPROM_MEDIA_EXT 0x1000 /* Using external transceiver 0 = AUI */ + #define IEE16_EEPROM_IRQ 0xE000 /* Encoded IRQ */ #define IEE16_EEPROM_IRQ_SHIFT 13 /* To shift IRQ to lower bits */ #define IEE16_EEPROM_LOCK_ADDR 0x01 /* contains the lock bit */ @@ -79,3 +88,6 @@ #define IEE16_EEPROM_ENET_LOW 0x02 /* Ethernet address, low word */ #define IEE16_EEPROM_ENET_MID 0x03 /* Ethernet address, middle word */ #define IEE16_EEPROM_ENET_HIGH 0x04 /* Ethernet address, high word */ + +#define IEE16_EEPROM_MEDIA 0x05 /* Selects between TP/BNC */ +#define IEE16_EEPROM_MEDIA_TP 0x01 /* if ON, using TP, else BNC */ |