iPXE
Macros | Functions
cs89x0.h File Reference

Go to the source code of this file.

Macros

#define PP_ChipID   0x0000 /* offset 0h -> Corp -ID */
 
#define PP_ISAIOB   0x0020 /* IO base address */
 
#define PP_CS8900_ISAINT   0x0022 /* ISA interrupt select */
 
#define PP_CS8920_ISAINT   0x0370 /* ISA interrupt select */
 
#define PP_CS8900_ISADMA   0x0024 /* ISA Rec DMA channel */
 
#define PP_CS8920_ISADMA   0x0374 /* ISA Rec DMA channel */
 
#define PP_ISASOF   0x0026 /* ISA DMA offset */
 
#define PP_DmaFrameCnt   0x0028 /* ISA DMA Frame count */
 
#define PP_DmaByteCnt   0x002A /* ISA DMA Byte count */
 
#define PP_CS8900_ISAMemB   0x002C /* Memory base */
 
#define PP_CS8920_ISAMemB   0x0348 /* */
 
#define PP_ISABootBase   0x0030 /* Boot Prom base */
 
#define PP_ISABootMask   0x0034 /* Boot Prom Mask */
 
#define PP_EECMD   0x0040 /* NVR Interface Command register */
 
#define PP_EEData   0x0042 /* NVR Interface Data Register */
 
#define PP_DebugReg   0x0044 /* Debug Register */
 
#define PP_RxCFG   0x0102 /* Rx Bus config */
 
#define PP_RxCTL   0x0104 /* Receive Control Register */
 
#define PP_TxCFG   0x0106 /* Transmit Config Register */
 
#define PP_TxCMD   0x0108 /* Transmit Command Register */
 
#define PP_BufCFG   0x010A /* Bus configuration Register */
 
#define PP_LineCTL   0x0112 /* Line Config Register */
 
#define PP_SelfCTL   0x0114 /* Self Command Register */
 
#define PP_BusCTL   0x0116 /* ISA bus control Register */
 
#define PP_TestCTL   0x0118 /* Test Register */
 
#define PP_AutoNegCTL   0x011C /* Auto Negotiation Ctrl */
 
#define PP_ISQ   0x0120 /* Interrupt Status */
 
#define PP_RxEvent   0x0124 /* Rx Event Register */
 
#define PP_TxEvent   0x0128 /* Tx Event Register */
 
#define PP_BufEvent   0x012C /* Bus Event Register */
 
#define PP_RxMiss   0x0130 /* Receive Miss Count */
 
#define PP_TxCol   0x0132 /* Transmit Collision Count */
 
#define PP_LineST   0x0134 /* Line State Register */
 
#define PP_SelfST   0x0136 /* Self State register */
 
#define PP_BusST   0x0138 /* Bus Status */
 
#define PP_TDR   0x013C /* Time Domain Reflectometry */
 
#define PP_AutoNegST   0x013E /* Auto Neg Status */
 
#define PP_TxCommand   0x0144 /* Tx Command */
 
#define PP_TxLength   0x0146 /* Tx Length */
 
#define PP_LAF   0x0150 /* Hash Table */
 
#define PP_IA   0x0158 /* Physical Address Register */
 
#define PP_RxStatus   0x0400 /* Receive start of frame */
 
#define PP_RxLength   0x0402 /* Receive Length of frame */
 
#define PP_RxFrame   0x0404 /* Receive frame pointer */
 
#define PP_TxFrame   0x0A00 /* Transmit frame pointer */
 
#define DEFAULTIOBASE   0x0300
 
#define FIRST_IO   0x020C /* First I/O port to check */
 
#define LAST_IO   0x037C /* Last I/O port to check (+10h) */
 
#define ADD_MASK   0x3000 /* Mask it use of the ADD_PORT register */
 
#define ADD_SIG   0x3000 /* Expected ID signature */
 
#define CHIP_EISA_ID_SIG   0x630E /* Product ID Code for Crystal Chip (CS8900 spec 4.3) */
 
#define EISA_ID_SIG   0x630E /* PnP Vendor ID (same as chip id for Crystal board) */
 
#define PART_NO_SIG   0x4000 /* ID code CS8920 board (PnP Vendor Product code) */
 
#define MONGOOSE_BIT   0x2000 /* PART_NO_SIG + MONGOOSE_BUT => ID of mongoose */
 
#define PRODUCT_ID_ADD   0x0002 /* Address of product ID */
 
#define REG_TYPE_MASK   0x001F
 
#define ERSE_WR_ENBL   0x00F0
 
#define ERSE_WR_DISABLE   0x0000
 
#define RX_BUF_CFG   0x0003
 
#define RX_CONTROL   0x0005
 
#define TX_CFG   0x0007
 
#define TX_COMMAND   0x0009
 
#define BUF_CFG   0x000B
 
#define LINE_CONTROL   0x0013
 
#define SELF_CONTROL   0x0015
 
#define BUS_CONTROL   0x0017
 
#define TEST_CONTROL   0x0019
 
#define RX_EVENT   0x0004
 
#define TX_EVENT   0x0008
 
#define BUF_EVENT   0x000C
 
#define RX_MISS_COUNT   0x0010
 
#define TX_COL_COUNT   0x0012
 
#define LINE_STATUS   0x0014
 
#define SELF_STATUS   0x0016
 
#define BUS_STATUS   0x0018
 
#define TDR   0x001C
 
#define SKIP_1   0x0040
 
#define RX_STREAM_ENBL   0x0080
 
#define RX_OK_ENBL   0x0100
 
#define RX_DMA_ONLY   0x0200
 
#define AUTO_RX_DMA   0x0400
 
#define BUFFER_CRC   0x0800
 
#define RX_CRC_ERROR_ENBL   0x1000
 
#define RX_RUNT_ENBL   0x2000
 
#define RX_EXTRA_DATA_ENBL   0x4000
 
#define RX_IA_HASH_ACCEPT   0x0040
 
#define RX_PROM_ACCEPT   0x0080
 
#define RX_OK_ACCEPT   0x0100
 
#define RX_MULTCAST_ACCEPT   0x0200
 
#define RX_IA_ACCEPT   0x0400
 
#define RX_BROADCAST_ACCEPT   0x0800
 
#define RX_BAD_CRC_ACCEPT   0x1000
 
#define RX_RUNT_ACCEPT   0x2000
 
#define RX_EXTRA_DATA_ACCEPT   0x4000
 
#define RX_ALL_ACCEPT   (RX_PROM_ACCEPT|RX_BAD_CRC_ACCEPT|RX_RUNT_ACCEPT|RX_EXTRA_DATA_ACCEPT)
 
#define DEF_RX_ACCEPT   (RX_IA_ACCEPT | RX_BROADCAST_ACCEPT | RX_OK_ACCEPT)
 
#define TX_LOST_CRS_ENBL   0x0040
 
#define TX_SQE_ERROR_ENBL   0x0080
 
#define TX_OK_ENBL   0x0100
 
#define TX_LATE_COL_ENBL   0x0200
 
#define TX_JBR_ENBL   0x0400
 
#define TX_ANY_COL_ENBL   0x0800
 
#define TX_16_COL_ENBL   0x8000
 
#define TX_START_4_BYTES   0x0000
 
#define TX_START_64_BYTES   0x0040
 
#define TX_START_128_BYTES   0x0080
 
#define TX_START_ALL_BYTES   0x00C0
 
#define TX_FORCE   0x0100
 
#define TX_ONE_COL   0x0200
 
#define TX_TWO_PART_DEFF_DISABLE   0x0400
 
#define TX_NO_CRC   0x1000
 
#define TX_RUNT   0x2000
 
#define GENERATE_SW_INTERRUPT   0x0040
 
#define RX_DMA_ENBL   0x0080
 
#define READY_FOR_TX_ENBL   0x0100
 
#define TX_UNDERRUN_ENBL   0x0200
 
#define RX_MISS_ENBL   0x0400
 
#define RX_128_BYTE_ENBL   0x0800
 
#define TX_COL_COUNT_OVRFLOW_ENBL   0x1000
 
#define RX_MISS_COUNT_OVRFLOW_ENBL   0x2000
 
#define RX_DEST_MATCH_ENBL   0x8000
 
#define SERIAL_RX_ON   0x0040
 
#define SERIAL_TX_ON   0x0080
 
#define AUI_ONLY   0x0100
 
#define AUTO_AUI_10BASET   0x0200
 
#define MODIFIED_BACKOFF   0x0800
 
#define NO_AUTO_POLARITY   0x1000
 
#define TWO_PART_DEFDIS   0x2000
 
#define LOW_RX_SQUELCH   0x4000
 
#define POWER_ON_RESET   0x0040
 
#define SW_STOP   0x0100
 
#define SLEEP_ON   0x0200
 
#define AUTO_WAKEUP   0x0400
 
#define HCB0_ENBL   0x1000
 
#define HCB1_ENBL   0x2000
 
#define HCB0   0x4000
 
#define HCB1   0x8000
 
#define RESET_RX_DMA   0x0040
 
#define MEMORY_ON   0x0400
 
#define DMA_BURST_MODE   0x0800
 
#define IO_CHANNEL_READY_ON   0x1000
 
#define RX_DMA_SIZE_64K   0x2000
 
#define ENABLE_IRQ   0x8000
 
#define LINK_OFF   0x0080
 
#define ENDEC_LOOPBACK   0x0200
 
#define AUI_LOOPBACK   0x0400
 
#define BACKOFF_OFF   0x0800
 
#define FAST_TEST   0x8000
 
#define RX_IA_HASHED   0x0040
 
#define RX_DRIBBLE   0x0080
 
#define RX_OK   0x0100
 
#define RX_HASHED   0x0200
 
#define RX_IA   0x0400
 
#define RX_BROADCAST   0x0800
 
#define RX_CRC_ERROR   0x1000
 
#define RX_RUNT   0x2000
 
#define RX_EXTRA_DATA   0x4000
 
#define HASH_INDEX_MASK   0x0FC00
 
#define TX_LOST_CRS   0x0040
 
#define TX_SQE_ERROR   0x0080
 
#define TX_OK   0x0100
 
#define TX_LATE_COL   0x0200
 
#define TX_JBR   0x0400
 
#define TX_16_COL   0x8000
 
#define TX_SEND_OK_BITS   (TX_OK|TX_LOST_CRS)
 
#define TX_COL_COUNT_MASK   0x7800
 
#define SW_INTERRUPT   0x0040
 
#define RX_DMA   0x0080
 
#define READY_FOR_TX   0x0100
 
#define TX_UNDERRUN   0x0200
 
#define RX_MISS   0x0400
 
#define RX_128_BYTE   0x0800
 
#define TX_COL_OVRFLW   0x1000
 
#define RX_MISS_OVRFLW   0x2000
 
#define RX_DEST_MATCH   0x8000
 
#define LINK_OK   0x0080
 
#define AUI_ON   0x0100
 
#define TENBASET_ON   0x0200
 
#define POLARITY_OK   0x1000
 
#define CRS_OK   0x4000
 
#define ACTIVE_33V   0x0040
 
#define INIT_DONE   0x0080
 
#define SI_BUSY   0x0100
 
#define EEPROM_PRESENT   0x0200
 
#define EEPROM_OK   0x0400
 
#define EL_PRESENT   0x0800
 
#define EE_SIZE_64   0x1000
 
#define TX_BID_ERROR   0x0080
 
#define READY_FOR_TX_NOW   0x0100
 
#define RE_NEG_NOW   0x0040
 
#define ALLOW_FDX   0x0080
 
#define AUTO_NEG_ENABLE   0x0100
 
#define NLP_ENABLE   0x0200
 
#define FORCE_FDX   0x8000
 
#define AUTO_NEG_BITS   (FORCE_FDX|NLP_ENABLE|AUTO_NEG_ENABLE)
 
#define AUTO_NEG_MASK   (FORCE_FDX|NLP_ENABLE|AUTO_NEG_ENABLE|ALLOW_FDX|RE_NEG_NOW)
 
#define AUTO_NEG_BUSY   0x0080
 
#define FLP_LINK   0x0100
 
#define FLP_LINK_GOOD   0x0800
 
#define LINK_FAULT   0x1000
 
#define HDX_ACTIVE   0x4000
 
#define FDX_ACTIVE   0x8000
 
#define ISQ_RECEIVER_EVENT   0x04
 
#define ISQ_TRANSMITTER_EVENT   0x08
 
#define ISQ_BUFFER_EVENT   0x0c
 
#define ISQ_RX_MISS_EVENT   0x10
 
#define ISQ_TX_COL_EVENT   0x12
 
#define ISQ_EVENT_MASK   0x003F /* ISQ mask to find out type of event */
 
#define ISQ_HIST   16 /* small history buffer */
 
#define AUTOINCREMENT   0x8000 /* Bit mask to set bit-15 for autoincrement */
 
#define TXRXBUFSIZE   0x0600
 
#define RXDMABUFSIZE   0x8000
 
#define RXDMASIZE   0x4000
 
#define TXRX_LENGTH_MASK   0x07FF
 
#define RCV_WITH_RXON   1 /* Set SerRx ON */
 
#define RCV_COUNTS   2 /* Use Framecnt1 */
 
#define RCV_PONG   4 /* Pong respondent */
 
#define RCV_DONG   8 /* Dong operation */
 
#define RCV_POLLING   0x10 /* Poll RxEvent */
 
#define RCV_ISQ   0x20 /* Use ISQ, int */
 
#define RCV_AUTO_DMA   0x100 /* Set AutoRxDMAE */
 
#define RCV_DMA   0x200 /* Set RxDMA only */
 
#define RCV_DMA_ALL   0x400 /* Copy all DMA'ed */
 
#define RCV_FIXED_DATA   0x800 /* Every frame same */
 
#define RCV_IO   0x1000 /* Use ISA IO only */
 
#define RCV_MEMORY   0x2000 /* Use ISA Memory */
 
#define RAM_SIZE   0x1000 /* The card has 4k bytes or RAM */
 
#define PKT_START   PP_TxFrame /* Start of packet RAM */
 
#define RX_FRAME_PORT   0x0000
 
#define TX_FRAME_PORT   RX_FRAME_PORT
 
#define TX_CMD_PORT   0x0004
 
#define TX_NOW   0x0000 /* Tx packet after 5 bytes copied */
 
#define TX_AFTER_381   0x0020 /* Tx packet after 381 bytes copied */
 
#define TX_AFTER_ALL   0x00C0 /* Tx packet after all bytes copied */
 
#define TX_LEN_PORT   0x0006
 
#define ISQ_PORT   0x0008
 
#define ADD_PORT   0x000A
 
#define DATA_PORT   0x000C
 
#define EEPROM_WRITE_EN   0x00F0
 
#define EEPROM_WRITE_DIS   0x0000
 
#define EEPROM_WRITE_CMD   0x0100
 
#define EEPROM_READ_CMD   0x0200
 
#define RBUF_EVENT_LOW   0 /* Low byte of RxEvent - status of received frame */
 
#define RBUF_EVENT_HIGH   1 /* High byte of RxEvent - status of received frame */
 
#define RBUF_LEN_LOW   2 /* Length of received data - low byte */
 
#define RBUF_LEN_HI   3 /* Length of received data - high byte */
 
#define RBUF_HEAD_LEN   4 /* Length of this header */
 
#define CHIP_READ   0x1 /* Used to mark state of the repins code (chip or dma) */
 
#define DMA_READ   0x2 /* Used to mark state of the repins code (chip or dma) */
 
#define BIOS_START_SEG   0x0c000
 
#define BIOS_OFFSET_INC   0x0200
 
#define BIOS_LAST_OFFSET   0x0fc00
 
#define ISA_CNF_OFFSET   0x6
 
#define TX_CTL_OFFSET   (ISA_CNF_OFFSET + 8) /* 8900 eeprom */
 
#define AUTO_NEG_CNF_OFFSET   (ISA_CNF_OFFSET + 8) /* 8920 eeprom */
 
#define EE_FORCE_FDX   0x8000
 
#define EE_NLP_ENABLE   0x0200
 
#define EE_AUTO_NEG_ENABLE   0x0100
 
#define EE_ALLOW_FDX   0x0080
 
#define EE_AUTO_NEG_CNF_MASK   (EE_FORCE_FDX|EE_NLP_ENABLE|EE_AUTO_NEG_ENABLE|EE_ALLOW_FDX)
 
#define IMM_BIT   0x0040 /* ignore missing media */
 
#define ADAPTER_CNF_OFFSET   (AUTO_NEG_CNF_OFFSET + 2)
 
#define A_CNF_10B_T   0x0001
 
#define A_CNF_AUI   0x0002
 
#define A_CNF_10B_2   0x0004
 
#define A_CNF_MEDIA_TYPE   0x0060
 
#define A_CNF_MEDIA_AUTO   0x0000
 
#define A_CNF_MEDIA_10B_T   0x0020
 
#define A_CNF_MEDIA_AUI   0x0040
 
#define A_CNF_MEDIA_10B_2   0x0060
 
#define A_CNF_DC_DC_POLARITY   0x0080
 
#define A_CNF_NO_AUTO_POLARITY   0x2000
 
#define A_CNF_LOW_RX_SQUELCH   0x4000
 
#define A_CNF_EXTND_10B_2   0x8000
 
#define PACKET_PAGE_OFFSET   0x8
 
#define INT_NO_MASK   0x000F
 
#define DMA_NO_MASK   0x0070
 
#define ISA_DMA_SIZE   0x0200
 
#define ISA_AUTO_RxDMA   0x0400
 
#define ISA_RxDMA   0x0800
 
#define DMA_BURST   0x1000
 
#define STREAM_TRANSFER   0x2000
 
#define ANY_ISA_DMA   (ISA_AUTO_RxDMA | ISA_RxDMA)
 
#define DMA_BASE   0x00 /* DMA controller base */
 
#define DMA_BASE_2   0x0C0 /* DMA controller base */
 
#define DMA_STAT   0x0D0 /* DMA controller status register */
 
#define DMA_MASK   0x0D4 /* DMA controller mask register */
 
#define DMA_MODE   0x0D6 /* DMA controller mode register */
 
#define DMA_RESETFF   0x0D8 /* DMA controller first/last flip flop */
 
#define DMA_DISABLE   0x04 /* Disable channel n */
 
#define DMA_ENABLE   0x00 /* Enable channel n */
 
#define DMA_RX_MODE   0x14
 
#define DMA_TX_MODE   0x18
 
#define DMA_SIZE   (16*1024) /* Size of dma buffer - 16k */
 
#define CS8900   0x0000
 
#define CS8920   0x4000
 
#define CS8920M   0x6000
 
#define REVISON_BITS   0x1F00
 
#define EEVER_NUMBER   0x12
 
#define CHKSUM_LEN   0x14
 
#define CHKSUM_VAL   0x0000
 
#define START_EEPROM_DATA   0x001c /* Offset into eeprom for start of data */
 
#define IRQ_MAP_EEPROM_DATA   0x0046 /* Offset into eeprom for the IRQ map */
 
#define IRQ_MAP_LEN   0x0004 /* No of bytes to read for the IRQ map */
 
#define PNP_IRQ_FRMT   0x0022 /* PNP small item IRQ format */
 
#define CS8900_IRQ_MAP   0x1c20 /* This IRQ map is fixed */
 
#define CS8920_NO_INTS   0x0F /* Max CS8920 interrupt select # */
 
#define PNP_ADD_PORT   0x0279
 
#define PNP_WRITE_PORT   0x0A79
 
#define GET_PNP_ISA_STRUCT   0x40
 
#define PNP_ISA_STRUCT_LEN   0x06
 
#define PNP_CSN_CNT_OFF   0x01
 
#define PNP_RD_PORT_OFF   0x02
 
#define PNP_FUNCTION_OK   0x00
 
#define PNP_WAKE   0x03
 
#define PNP_RSRC_DATA   0x04
 
#define PNP_RSRC_READY   0x01
 
#define PNP_STATUS   0x05
 
#define PNP_ACTIVATE   0x30
 
#define PNP_CNF_IO_H   0x60
 
#define PNP_CNF_IO_L   0x61
 
#define PNP_CNF_INT   0x70
 
#define PNP_CNF_DMA   0x74
 
#define PNP_CNF_MEM   0x48
 

Functions

 FILE_LICENCE (GPL2_ONLY)
 Per an email message from Russ Nelson nelso.nosp@m.n@cr.nosp@m.ynwr..nosp@m.com on 18 March 2008 this file is now licensed under GPL Version 2. More...
 

Macro Definition Documentation

◆ PP_ChipID

#define PP_ChipID   0x0000 /* offset 0h -> Corp -ID */

Definition at line 37 of file cs89x0.h.

◆ PP_ISAIOB

#define PP_ISAIOB   0x0020 /* IO base address */

Definition at line 41 of file cs89x0.h.

◆ PP_CS8900_ISAINT

#define PP_CS8900_ISAINT   0x0022 /* ISA interrupt select */

Definition at line 42 of file cs89x0.h.

◆ PP_CS8920_ISAINT

#define PP_CS8920_ISAINT   0x0370 /* ISA interrupt select */

Definition at line 43 of file cs89x0.h.

◆ PP_CS8900_ISADMA

#define PP_CS8900_ISADMA   0x0024 /* ISA Rec DMA channel */

Definition at line 44 of file cs89x0.h.

◆ PP_CS8920_ISADMA

#define PP_CS8920_ISADMA   0x0374 /* ISA Rec DMA channel */

Definition at line 45 of file cs89x0.h.

◆ PP_ISASOF

#define PP_ISASOF   0x0026 /* ISA DMA offset */

Definition at line 46 of file cs89x0.h.

◆ PP_DmaFrameCnt

#define PP_DmaFrameCnt   0x0028 /* ISA DMA Frame count */

Definition at line 47 of file cs89x0.h.

◆ PP_DmaByteCnt

#define PP_DmaByteCnt   0x002A /* ISA DMA Byte count */

Definition at line 48 of file cs89x0.h.

◆ PP_CS8900_ISAMemB

#define PP_CS8900_ISAMemB   0x002C /* Memory base */

Definition at line 49 of file cs89x0.h.

◆ PP_CS8920_ISAMemB

#define PP_CS8920_ISAMemB   0x0348 /* */

Definition at line 50 of file cs89x0.h.

◆ PP_ISABootBase

#define PP_ISABootBase   0x0030 /* Boot Prom base */

Definition at line 52 of file cs89x0.h.

◆ PP_ISABootMask

#define PP_ISABootMask   0x0034 /* Boot Prom Mask */

Definition at line 53 of file cs89x0.h.

◆ PP_EECMD

#define PP_EECMD   0x0040 /* NVR Interface Command register */

Definition at line 56 of file cs89x0.h.

◆ PP_EEData

#define PP_EEData   0x0042 /* NVR Interface Data Register */

Definition at line 57 of file cs89x0.h.

◆ PP_DebugReg

#define PP_DebugReg   0x0044 /* Debug Register */

Definition at line 58 of file cs89x0.h.

◆ PP_RxCFG

#define PP_RxCFG   0x0102 /* Rx Bus config */

Definition at line 60 of file cs89x0.h.

◆ PP_RxCTL

#define PP_RxCTL   0x0104 /* Receive Control Register */

Definition at line 61 of file cs89x0.h.

◆ PP_TxCFG

#define PP_TxCFG   0x0106 /* Transmit Config Register */

Definition at line 62 of file cs89x0.h.

◆ PP_TxCMD

#define PP_TxCMD   0x0108 /* Transmit Command Register */

Definition at line 63 of file cs89x0.h.

◆ PP_BufCFG

#define PP_BufCFG   0x010A /* Bus configuration Register */

Definition at line 64 of file cs89x0.h.

◆ PP_LineCTL

#define PP_LineCTL   0x0112 /* Line Config Register */

Definition at line 65 of file cs89x0.h.

◆ PP_SelfCTL

#define PP_SelfCTL   0x0114 /* Self Command Register */

Definition at line 66 of file cs89x0.h.

◆ PP_BusCTL

#define PP_BusCTL   0x0116 /* ISA bus control Register */

Definition at line 67 of file cs89x0.h.

◆ PP_TestCTL

#define PP_TestCTL   0x0118 /* Test Register */

Definition at line 68 of file cs89x0.h.

◆ PP_AutoNegCTL

#define PP_AutoNegCTL   0x011C /* Auto Negotiation Ctrl */

Definition at line 69 of file cs89x0.h.

◆ PP_ISQ

#define PP_ISQ   0x0120 /* Interrupt Status */

Definition at line 71 of file cs89x0.h.

◆ PP_RxEvent

#define PP_RxEvent   0x0124 /* Rx Event Register */

Definition at line 72 of file cs89x0.h.

◆ PP_TxEvent

#define PP_TxEvent   0x0128 /* Tx Event Register */

Definition at line 73 of file cs89x0.h.

◆ PP_BufEvent

#define PP_BufEvent   0x012C /* Bus Event Register */

Definition at line 74 of file cs89x0.h.

◆ PP_RxMiss

#define PP_RxMiss   0x0130 /* Receive Miss Count */

Definition at line 75 of file cs89x0.h.

◆ PP_TxCol

#define PP_TxCol   0x0132 /* Transmit Collision Count */

Definition at line 76 of file cs89x0.h.

◆ PP_LineST

#define PP_LineST   0x0134 /* Line State Register */

Definition at line 77 of file cs89x0.h.

◆ PP_SelfST

#define PP_SelfST   0x0136 /* Self State register */

Definition at line 78 of file cs89x0.h.

◆ PP_BusST

#define PP_BusST   0x0138 /* Bus Status */

Definition at line 79 of file cs89x0.h.

◆ PP_TDR

#define PP_TDR   0x013C /* Time Domain Reflectometry */

Definition at line 80 of file cs89x0.h.

◆ PP_AutoNegST

#define PP_AutoNegST   0x013E /* Auto Neg Status */

Definition at line 81 of file cs89x0.h.

◆ PP_TxCommand

#define PP_TxCommand   0x0144 /* Tx Command */

Definition at line 82 of file cs89x0.h.

◆ PP_TxLength

#define PP_TxLength   0x0146 /* Tx Length */

Definition at line 83 of file cs89x0.h.

◆ PP_LAF

#define PP_LAF   0x0150 /* Hash Table */

Definition at line 84 of file cs89x0.h.

◆ PP_IA

#define PP_IA   0x0158 /* Physical Address Register */

Definition at line 85 of file cs89x0.h.

◆ PP_RxStatus

#define PP_RxStatus   0x0400 /* Receive start of frame */

Definition at line 87 of file cs89x0.h.

◆ PP_RxLength

#define PP_RxLength   0x0402 /* Receive Length of frame */

Definition at line 88 of file cs89x0.h.

◆ PP_RxFrame

#define PP_RxFrame   0x0404 /* Receive frame pointer */

Definition at line 89 of file cs89x0.h.

◆ PP_TxFrame

#define PP_TxFrame   0x0A00 /* Transmit frame pointer */

Definition at line 90 of file cs89x0.h.

◆ DEFAULTIOBASE

#define DEFAULTIOBASE   0x0300

Definition at line 94 of file cs89x0.h.

◆ FIRST_IO

#define FIRST_IO   0x020C /* First I/O port to check */

Definition at line 95 of file cs89x0.h.

◆ LAST_IO

#define LAST_IO   0x037C /* Last I/O port to check (+10h) */

Definition at line 96 of file cs89x0.h.

◆ ADD_MASK

#define ADD_MASK   0x3000 /* Mask it use of the ADD_PORT register */

Definition at line 97 of file cs89x0.h.

◆ ADD_SIG

#define ADD_SIG   0x3000 /* Expected ID signature */

Definition at line 98 of file cs89x0.h.

◆ CHIP_EISA_ID_SIG

#define CHIP_EISA_ID_SIG   0x630E /* Product ID Code for Crystal Chip (CS8900 spec 4.3) */

Definition at line 100 of file cs89x0.h.

◆ EISA_ID_SIG

#define EISA_ID_SIG   0x630E /* PnP Vendor ID (same as chip id for Crystal board) */

Definition at line 107 of file cs89x0.h.

◆ PART_NO_SIG

#define PART_NO_SIG   0x4000 /* ID code CS8920 board (PnP Vendor Product code) */

Definition at line 108 of file cs89x0.h.

◆ MONGOOSE_BIT

#define MONGOOSE_BIT   0x2000 /* PART_NO_SIG + MONGOOSE_BUT => ID of mongoose */

Definition at line 109 of file cs89x0.h.

◆ PRODUCT_ID_ADD

#define PRODUCT_ID_ADD   0x0002 /* Address of product ID */

Definition at line 112 of file cs89x0.h.

◆ REG_TYPE_MASK

#define REG_TYPE_MASK   0x001F

Definition at line 115 of file cs89x0.h.

◆ ERSE_WR_ENBL

#define ERSE_WR_ENBL   0x00F0

Definition at line 118 of file cs89x0.h.

◆ ERSE_WR_DISABLE

#define ERSE_WR_DISABLE   0x0000

Definition at line 119 of file cs89x0.h.

◆ RX_BUF_CFG

#define RX_BUF_CFG   0x0003

Definition at line 122 of file cs89x0.h.

◆ RX_CONTROL

#define RX_CONTROL   0x0005

Definition at line 123 of file cs89x0.h.

◆ TX_CFG

#define TX_CFG   0x0007

Definition at line 124 of file cs89x0.h.

◆ TX_COMMAND

#define TX_COMMAND   0x0009

Definition at line 125 of file cs89x0.h.

◆ BUF_CFG

#define BUF_CFG   0x000B

Definition at line 126 of file cs89x0.h.

◆ LINE_CONTROL

#define LINE_CONTROL   0x0013

Definition at line 127 of file cs89x0.h.

◆ SELF_CONTROL

#define SELF_CONTROL   0x0015

Definition at line 128 of file cs89x0.h.

◆ BUS_CONTROL

#define BUS_CONTROL   0x0017

Definition at line 129 of file cs89x0.h.

◆ TEST_CONTROL

#define TEST_CONTROL   0x0019

Definition at line 130 of file cs89x0.h.

◆ RX_EVENT

#define RX_EVENT   0x0004

Definition at line 133 of file cs89x0.h.

◆ TX_EVENT

#define TX_EVENT   0x0008

Definition at line 134 of file cs89x0.h.

◆ BUF_EVENT

#define BUF_EVENT   0x000C

Definition at line 135 of file cs89x0.h.

◆ RX_MISS_COUNT

#define RX_MISS_COUNT   0x0010

Definition at line 136 of file cs89x0.h.

◆ TX_COL_COUNT

#define TX_COL_COUNT   0x0012

Definition at line 137 of file cs89x0.h.

◆ LINE_STATUS

#define LINE_STATUS   0x0014

Definition at line 138 of file cs89x0.h.

◆ SELF_STATUS

#define SELF_STATUS   0x0016

Definition at line 139 of file cs89x0.h.

◆ BUS_STATUS

#define BUS_STATUS   0x0018

Definition at line 140 of file cs89x0.h.

◆ TDR

#define TDR   0x001C

Definition at line 141 of file cs89x0.h.

◆ SKIP_1

#define SKIP_1   0x0040

Definition at line 144 of file cs89x0.h.

◆ RX_STREAM_ENBL

#define RX_STREAM_ENBL   0x0080

Definition at line 145 of file cs89x0.h.

◆ RX_OK_ENBL

#define RX_OK_ENBL   0x0100

Definition at line 146 of file cs89x0.h.

◆ RX_DMA_ONLY

#define RX_DMA_ONLY   0x0200

Definition at line 147 of file cs89x0.h.

◆ AUTO_RX_DMA

#define AUTO_RX_DMA   0x0400

Definition at line 148 of file cs89x0.h.

◆ BUFFER_CRC

#define BUFFER_CRC   0x0800

Definition at line 149 of file cs89x0.h.

◆ RX_CRC_ERROR_ENBL

#define RX_CRC_ERROR_ENBL   0x1000

Definition at line 150 of file cs89x0.h.

◆ RX_RUNT_ENBL

#define RX_RUNT_ENBL   0x2000

Definition at line 151 of file cs89x0.h.

◆ RX_EXTRA_DATA_ENBL

#define RX_EXTRA_DATA_ENBL   0x4000

Definition at line 152 of file cs89x0.h.

◆ RX_IA_HASH_ACCEPT

#define RX_IA_HASH_ACCEPT   0x0040

Definition at line 155 of file cs89x0.h.

◆ RX_PROM_ACCEPT

#define RX_PROM_ACCEPT   0x0080

Definition at line 156 of file cs89x0.h.

◆ RX_OK_ACCEPT

#define RX_OK_ACCEPT   0x0100

Definition at line 157 of file cs89x0.h.

◆ RX_MULTCAST_ACCEPT

#define RX_MULTCAST_ACCEPT   0x0200

Definition at line 158 of file cs89x0.h.

◆ RX_IA_ACCEPT

#define RX_IA_ACCEPT   0x0400

Definition at line 159 of file cs89x0.h.

◆ RX_BROADCAST_ACCEPT

#define RX_BROADCAST_ACCEPT   0x0800

Definition at line 160 of file cs89x0.h.

◆ RX_BAD_CRC_ACCEPT

#define RX_BAD_CRC_ACCEPT   0x1000

Definition at line 161 of file cs89x0.h.

◆ RX_RUNT_ACCEPT

#define RX_RUNT_ACCEPT   0x2000

Definition at line 162 of file cs89x0.h.

◆ RX_EXTRA_DATA_ACCEPT

#define RX_EXTRA_DATA_ACCEPT   0x4000

Definition at line 163 of file cs89x0.h.

◆ RX_ALL_ACCEPT

Definition at line 164 of file cs89x0.h.

◆ DEF_RX_ACCEPT

#define DEF_RX_ACCEPT   (RX_IA_ACCEPT | RX_BROADCAST_ACCEPT | RX_OK_ACCEPT)

Definition at line 166 of file cs89x0.h.

◆ TX_LOST_CRS_ENBL

#define TX_LOST_CRS_ENBL   0x0040

Definition at line 169 of file cs89x0.h.

◆ TX_SQE_ERROR_ENBL

#define TX_SQE_ERROR_ENBL   0x0080

Definition at line 170 of file cs89x0.h.

◆ TX_OK_ENBL

#define TX_OK_ENBL   0x0100

Definition at line 171 of file cs89x0.h.

◆ TX_LATE_COL_ENBL

#define TX_LATE_COL_ENBL   0x0200

Definition at line 172 of file cs89x0.h.

◆ TX_JBR_ENBL

#define TX_JBR_ENBL   0x0400

Definition at line 173 of file cs89x0.h.

◆ TX_ANY_COL_ENBL

#define TX_ANY_COL_ENBL   0x0800

Definition at line 174 of file cs89x0.h.

◆ TX_16_COL_ENBL

#define TX_16_COL_ENBL   0x8000

Definition at line 175 of file cs89x0.h.

◆ TX_START_4_BYTES

#define TX_START_4_BYTES   0x0000

Definition at line 178 of file cs89x0.h.

◆ TX_START_64_BYTES

#define TX_START_64_BYTES   0x0040

Definition at line 179 of file cs89x0.h.

◆ TX_START_128_BYTES

#define TX_START_128_BYTES   0x0080

Definition at line 180 of file cs89x0.h.

◆ TX_START_ALL_BYTES

#define TX_START_ALL_BYTES   0x00C0

Definition at line 181 of file cs89x0.h.

◆ TX_FORCE

#define TX_FORCE   0x0100

Definition at line 182 of file cs89x0.h.

◆ TX_ONE_COL

#define TX_ONE_COL   0x0200

Definition at line 183 of file cs89x0.h.

◆ TX_TWO_PART_DEFF_DISABLE

#define TX_TWO_PART_DEFF_DISABLE   0x0400

Definition at line 184 of file cs89x0.h.

◆ TX_NO_CRC

#define TX_NO_CRC   0x1000

Definition at line 185 of file cs89x0.h.

◆ TX_RUNT

#define TX_RUNT   0x2000

Definition at line 186 of file cs89x0.h.

◆ GENERATE_SW_INTERRUPT

#define GENERATE_SW_INTERRUPT   0x0040

Definition at line 189 of file cs89x0.h.

◆ RX_DMA_ENBL

#define RX_DMA_ENBL   0x0080

Definition at line 190 of file cs89x0.h.

◆ READY_FOR_TX_ENBL

#define READY_FOR_TX_ENBL   0x0100

Definition at line 191 of file cs89x0.h.

◆ TX_UNDERRUN_ENBL

#define TX_UNDERRUN_ENBL   0x0200

Definition at line 192 of file cs89x0.h.

◆ RX_MISS_ENBL

#define RX_MISS_ENBL   0x0400

Definition at line 193 of file cs89x0.h.

◆ RX_128_BYTE_ENBL

#define RX_128_BYTE_ENBL   0x0800

Definition at line 194 of file cs89x0.h.

◆ TX_COL_COUNT_OVRFLOW_ENBL

#define TX_COL_COUNT_OVRFLOW_ENBL   0x1000

Definition at line 195 of file cs89x0.h.

◆ RX_MISS_COUNT_OVRFLOW_ENBL

#define RX_MISS_COUNT_OVRFLOW_ENBL   0x2000

Definition at line 196 of file cs89x0.h.

◆ RX_DEST_MATCH_ENBL

#define RX_DEST_MATCH_ENBL   0x8000

Definition at line 197 of file cs89x0.h.

◆ SERIAL_RX_ON

#define SERIAL_RX_ON   0x0040

Definition at line 200 of file cs89x0.h.

◆ SERIAL_TX_ON

#define SERIAL_TX_ON   0x0080

Definition at line 201 of file cs89x0.h.

◆ AUI_ONLY

#define AUI_ONLY   0x0100

Definition at line 202 of file cs89x0.h.

◆ AUTO_AUI_10BASET

#define AUTO_AUI_10BASET   0x0200

Definition at line 203 of file cs89x0.h.

◆ MODIFIED_BACKOFF

#define MODIFIED_BACKOFF   0x0800

Definition at line 204 of file cs89x0.h.

◆ NO_AUTO_POLARITY

#define NO_AUTO_POLARITY   0x1000

Definition at line 205 of file cs89x0.h.

◆ TWO_PART_DEFDIS

#define TWO_PART_DEFDIS   0x2000

Definition at line 206 of file cs89x0.h.

◆ LOW_RX_SQUELCH

#define LOW_RX_SQUELCH   0x4000

Definition at line 207 of file cs89x0.h.

◆ POWER_ON_RESET

#define POWER_ON_RESET   0x0040

Definition at line 210 of file cs89x0.h.

◆ SW_STOP

#define SW_STOP   0x0100

Definition at line 211 of file cs89x0.h.

◆ SLEEP_ON

#define SLEEP_ON   0x0200

Definition at line 212 of file cs89x0.h.

◆ AUTO_WAKEUP

#define AUTO_WAKEUP   0x0400

Definition at line 213 of file cs89x0.h.

◆ HCB0_ENBL

#define HCB0_ENBL   0x1000

Definition at line 214 of file cs89x0.h.

◆ HCB1_ENBL

#define HCB1_ENBL   0x2000

Definition at line 215 of file cs89x0.h.

◆ HCB0

#define HCB0   0x4000

Definition at line 216 of file cs89x0.h.

◆ HCB1

#define HCB1   0x8000

Definition at line 217 of file cs89x0.h.

◆ RESET_RX_DMA

#define RESET_RX_DMA   0x0040

Definition at line 220 of file cs89x0.h.

◆ MEMORY_ON

#define MEMORY_ON   0x0400

Definition at line 221 of file cs89x0.h.

◆ DMA_BURST_MODE

#define DMA_BURST_MODE   0x0800

Definition at line 222 of file cs89x0.h.

◆ IO_CHANNEL_READY_ON

#define IO_CHANNEL_READY_ON   0x1000

Definition at line 223 of file cs89x0.h.

◆ RX_DMA_SIZE_64K

#define RX_DMA_SIZE_64K   0x2000

Definition at line 224 of file cs89x0.h.

◆ ENABLE_IRQ

#define ENABLE_IRQ   0x8000

Definition at line 225 of file cs89x0.h.

◆ LINK_OFF

#define LINK_OFF   0x0080

Definition at line 228 of file cs89x0.h.

◆ ENDEC_LOOPBACK

#define ENDEC_LOOPBACK   0x0200

Definition at line 229 of file cs89x0.h.

◆ AUI_LOOPBACK

#define AUI_LOOPBACK   0x0400

Definition at line 230 of file cs89x0.h.

◆ BACKOFF_OFF

#define BACKOFF_OFF   0x0800

Definition at line 231 of file cs89x0.h.

◆ FAST_TEST

#define FAST_TEST   0x8000

Definition at line 232 of file cs89x0.h.

◆ RX_IA_HASHED

#define RX_IA_HASHED   0x0040

Definition at line 235 of file cs89x0.h.

◆ RX_DRIBBLE

#define RX_DRIBBLE   0x0080

Definition at line 236 of file cs89x0.h.

◆ RX_OK

#define RX_OK   0x0100

Definition at line 237 of file cs89x0.h.

◆ RX_HASHED

#define RX_HASHED   0x0200

Definition at line 238 of file cs89x0.h.

◆ RX_IA

#define RX_IA   0x0400

Definition at line 239 of file cs89x0.h.

◆ RX_BROADCAST

#define RX_BROADCAST   0x0800

Definition at line 240 of file cs89x0.h.

◆ RX_CRC_ERROR

#define RX_CRC_ERROR   0x1000

Definition at line 241 of file cs89x0.h.

◆ RX_RUNT

#define RX_RUNT   0x2000

Definition at line 242 of file cs89x0.h.

◆ RX_EXTRA_DATA

#define RX_EXTRA_DATA   0x4000

Definition at line 243 of file cs89x0.h.

◆ HASH_INDEX_MASK

#define HASH_INDEX_MASK   0x0FC00

Definition at line 245 of file cs89x0.h.

◆ TX_LOST_CRS

#define TX_LOST_CRS   0x0040

Definition at line 248 of file cs89x0.h.

◆ TX_SQE_ERROR

#define TX_SQE_ERROR   0x0080

Definition at line 249 of file cs89x0.h.

◆ TX_OK

#define TX_OK   0x0100

Definition at line 250 of file cs89x0.h.

◆ TX_LATE_COL

#define TX_LATE_COL   0x0200

Definition at line 251 of file cs89x0.h.

◆ TX_JBR

#define TX_JBR   0x0400

Definition at line 252 of file cs89x0.h.

◆ TX_16_COL

#define TX_16_COL   0x8000

Definition at line 253 of file cs89x0.h.

◆ TX_SEND_OK_BITS

#define TX_SEND_OK_BITS   (TX_OK|TX_LOST_CRS)

Definition at line 254 of file cs89x0.h.

◆ TX_COL_COUNT_MASK

#define TX_COL_COUNT_MASK   0x7800

Definition at line 255 of file cs89x0.h.

◆ SW_INTERRUPT

#define SW_INTERRUPT   0x0040

Definition at line 258 of file cs89x0.h.

◆ RX_DMA

#define RX_DMA   0x0080

Definition at line 259 of file cs89x0.h.

◆ READY_FOR_TX

#define READY_FOR_TX   0x0100

Definition at line 260 of file cs89x0.h.

◆ TX_UNDERRUN

#define TX_UNDERRUN   0x0200

Definition at line 261 of file cs89x0.h.

◆ RX_MISS

#define RX_MISS   0x0400

Definition at line 262 of file cs89x0.h.

◆ RX_128_BYTE

#define RX_128_BYTE   0x0800

Definition at line 263 of file cs89x0.h.

◆ TX_COL_OVRFLW

#define TX_COL_OVRFLW   0x1000

Definition at line 264 of file cs89x0.h.

◆ RX_MISS_OVRFLW

#define RX_MISS_OVRFLW   0x2000

Definition at line 265 of file cs89x0.h.

◆ RX_DEST_MATCH

#define RX_DEST_MATCH   0x8000

Definition at line 266 of file cs89x0.h.

◆ LINK_OK

#define LINK_OK   0x0080

Definition at line 269 of file cs89x0.h.

◆ AUI_ON

#define AUI_ON   0x0100

Definition at line 270 of file cs89x0.h.

◆ TENBASET_ON

#define TENBASET_ON   0x0200

Definition at line 271 of file cs89x0.h.

◆ POLARITY_OK

#define POLARITY_OK   0x1000

Definition at line 272 of file cs89x0.h.

◆ CRS_OK

#define CRS_OK   0x4000

Definition at line 273 of file cs89x0.h.

◆ ACTIVE_33V

#define ACTIVE_33V   0x0040

Definition at line 276 of file cs89x0.h.

◆ INIT_DONE

#define INIT_DONE   0x0080

Definition at line 277 of file cs89x0.h.

◆ SI_BUSY

#define SI_BUSY   0x0100

Definition at line 278 of file cs89x0.h.

◆ EEPROM_PRESENT

#define EEPROM_PRESENT   0x0200

Definition at line 279 of file cs89x0.h.

◆ EEPROM_OK

#define EEPROM_OK   0x0400

Definition at line 280 of file cs89x0.h.

◆ EL_PRESENT

#define EL_PRESENT   0x0800

Definition at line 281 of file cs89x0.h.

◆ EE_SIZE_64

#define EE_SIZE_64   0x1000

Definition at line 282 of file cs89x0.h.

◆ TX_BID_ERROR

#define TX_BID_ERROR   0x0080

Definition at line 285 of file cs89x0.h.

◆ READY_FOR_TX_NOW

#define READY_FOR_TX_NOW   0x0100

Definition at line 286 of file cs89x0.h.

◆ RE_NEG_NOW

#define RE_NEG_NOW   0x0040

Definition at line 289 of file cs89x0.h.

◆ ALLOW_FDX

#define ALLOW_FDX   0x0080

Definition at line 290 of file cs89x0.h.

◆ AUTO_NEG_ENABLE

#define AUTO_NEG_ENABLE   0x0100

Definition at line 291 of file cs89x0.h.

◆ NLP_ENABLE

#define NLP_ENABLE   0x0200

Definition at line 292 of file cs89x0.h.

◆ FORCE_FDX

#define FORCE_FDX   0x8000

Definition at line 293 of file cs89x0.h.

◆ AUTO_NEG_BITS

#define AUTO_NEG_BITS   (FORCE_FDX|NLP_ENABLE|AUTO_NEG_ENABLE)

Definition at line 294 of file cs89x0.h.

◆ AUTO_NEG_MASK

Definition at line 295 of file cs89x0.h.

◆ AUTO_NEG_BUSY

#define AUTO_NEG_BUSY   0x0080

Definition at line 298 of file cs89x0.h.

◆ FLP_LINK

#define FLP_LINK   0x0100

Definition at line 299 of file cs89x0.h.

◆ FLP_LINK_GOOD

#define FLP_LINK_GOOD   0x0800

Definition at line 300 of file cs89x0.h.

◆ LINK_FAULT

#define LINK_FAULT   0x1000

Definition at line 301 of file cs89x0.h.

◆ HDX_ACTIVE

#define HDX_ACTIVE   0x4000

Definition at line 302 of file cs89x0.h.

◆ FDX_ACTIVE

#define FDX_ACTIVE   0x8000

Definition at line 303 of file cs89x0.h.

◆ ISQ_RECEIVER_EVENT

#define ISQ_RECEIVER_EVENT   0x04

Definition at line 306 of file cs89x0.h.

◆ ISQ_TRANSMITTER_EVENT

#define ISQ_TRANSMITTER_EVENT   0x08

Definition at line 307 of file cs89x0.h.

◆ ISQ_BUFFER_EVENT

#define ISQ_BUFFER_EVENT   0x0c

Definition at line 308 of file cs89x0.h.

◆ ISQ_RX_MISS_EVENT

#define ISQ_RX_MISS_EVENT   0x10

Definition at line 309 of file cs89x0.h.

◆ ISQ_TX_COL_EVENT

#define ISQ_TX_COL_EVENT   0x12

Definition at line 310 of file cs89x0.h.

◆ ISQ_EVENT_MASK

#define ISQ_EVENT_MASK   0x003F /* ISQ mask to find out type of event */

Definition at line 312 of file cs89x0.h.

◆ ISQ_HIST

#define ISQ_HIST   16 /* small history buffer */

Definition at line 313 of file cs89x0.h.

◆ AUTOINCREMENT

#define AUTOINCREMENT   0x8000 /* Bit mask to set bit-15 for autoincrement */

Definition at line 314 of file cs89x0.h.

◆ TXRXBUFSIZE

#define TXRXBUFSIZE   0x0600

Definition at line 316 of file cs89x0.h.

◆ RXDMABUFSIZE

#define RXDMABUFSIZE   0x8000

Definition at line 317 of file cs89x0.h.

◆ RXDMASIZE

#define RXDMASIZE   0x4000

Definition at line 318 of file cs89x0.h.

◆ TXRX_LENGTH_MASK

#define TXRX_LENGTH_MASK   0x07FF

Definition at line 319 of file cs89x0.h.

◆ RCV_WITH_RXON

#define RCV_WITH_RXON   1 /* Set SerRx ON */

Definition at line 322 of file cs89x0.h.

◆ RCV_COUNTS

#define RCV_COUNTS   2 /* Use Framecnt1 */

Definition at line 323 of file cs89x0.h.

◆ RCV_PONG

#define RCV_PONG   4 /* Pong respondent */

Definition at line 324 of file cs89x0.h.

◆ RCV_DONG

#define RCV_DONG   8 /* Dong operation */

Definition at line 325 of file cs89x0.h.

◆ RCV_POLLING

#define RCV_POLLING   0x10 /* Poll RxEvent */

Definition at line 326 of file cs89x0.h.

◆ RCV_ISQ

#define RCV_ISQ   0x20 /* Use ISQ, int */

Definition at line 327 of file cs89x0.h.

◆ RCV_AUTO_DMA

#define RCV_AUTO_DMA   0x100 /* Set AutoRxDMAE */

Definition at line 328 of file cs89x0.h.

◆ RCV_DMA

#define RCV_DMA   0x200 /* Set RxDMA only */

Definition at line 329 of file cs89x0.h.

◆ RCV_DMA_ALL

#define RCV_DMA_ALL   0x400 /* Copy all DMA'ed */

Definition at line 330 of file cs89x0.h.

◆ RCV_FIXED_DATA

#define RCV_FIXED_DATA   0x800 /* Every frame same */

Definition at line 331 of file cs89x0.h.

◆ RCV_IO

#define RCV_IO   0x1000 /* Use ISA IO only */

Definition at line 332 of file cs89x0.h.

◆ RCV_MEMORY

#define RCV_MEMORY   0x2000 /* Use ISA Memory */

Definition at line 333 of file cs89x0.h.

◆ RAM_SIZE

#define RAM_SIZE   0x1000 /* The card has 4k bytes or RAM */

Definition at line 335 of file cs89x0.h.

◆ PKT_START

#define PKT_START   PP_TxFrame /* Start of packet RAM */

Definition at line 336 of file cs89x0.h.

◆ RX_FRAME_PORT

#define RX_FRAME_PORT   0x0000

Definition at line 338 of file cs89x0.h.

◆ TX_FRAME_PORT

#define TX_FRAME_PORT   RX_FRAME_PORT

Definition at line 339 of file cs89x0.h.

◆ TX_CMD_PORT

#define TX_CMD_PORT   0x0004

Definition at line 340 of file cs89x0.h.

◆ TX_NOW

#define TX_NOW   0x0000 /* Tx packet after 5 bytes copied */

Definition at line 341 of file cs89x0.h.

◆ TX_AFTER_381

#define TX_AFTER_381   0x0020 /* Tx packet after 381 bytes copied */

Definition at line 342 of file cs89x0.h.

◆ TX_AFTER_ALL

#define TX_AFTER_ALL   0x00C0 /* Tx packet after all bytes copied */

Definition at line 343 of file cs89x0.h.

◆ TX_LEN_PORT

#define TX_LEN_PORT   0x0006

Definition at line 344 of file cs89x0.h.

◆ ISQ_PORT

#define ISQ_PORT   0x0008

Definition at line 345 of file cs89x0.h.

◆ ADD_PORT

#define ADD_PORT   0x000A

Definition at line 346 of file cs89x0.h.

◆ DATA_PORT

#define DATA_PORT   0x000C

Definition at line 347 of file cs89x0.h.

◆ EEPROM_WRITE_EN

#define EEPROM_WRITE_EN   0x00F0

Definition at line 349 of file cs89x0.h.

◆ EEPROM_WRITE_DIS

#define EEPROM_WRITE_DIS   0x0000

Definition at line 350 of file cs89x0.h.

◆ EEPROM_WRITE_CMD

#define EEPROM_WRITE_CMD   0x0100

Definition at line 351 of file cs89x0.h.

◆ EEPROM_READ_CMD

#define EEPROM_READ_CMD   0x0200

Definition at line 352 of file cs89x0.h.

◆ RBUF_EVENT_LOW

#define RBUF_EVENT_LOW   0 /* Low byte of RxEvent - status of received frame */

Definition at line 356 of file cs89x0.h.

◆ RBUF_EVENT_HIGH

#define RBUF_EVENT_HIGH   1 /* High byte of RxEvent - status of received frame */

Definition at line 357 of file cs89x0.h.

◆ RBUF_LEN_LOW

#define RBUF_LEN_LOW   2 /* Length of received data - low byte */

Definition at line 358 of file cs89x0.h.

◆ RBUF_LEN_HI

#define RBUF_LEN_HI   3 /* Length of received data - high byte */

Definition at line 359 of file cs89x0.h.

◆ RBUF_HEAD_LEN

#define RBUF_HEAD_LEN   4 /* Length of this header */

Definition at line 360 of file cs89x0.h.

◆ CHIP_READ

#define CHIP_READ   0x1 /* Used to mark state of the repins code (chip or dma) */

Definition at line 362 of file cs89x0.h.

◆ DMA_READ

#define DMA_READ   0x2 /* Used to mark state of the repins code (chip or dma) */

Definition at line 363 of file cs89x0.h.

◆ BIOS_START_SEG

#define BIOS_START_SEG   0x0c000

Definition at line 372 of file cs89x0.h.

◆ BIOS_OFFSET_INC

#define BIOS_OFFSET_INC   0x0200

Definition at line 373 of file cs89x0.h.

◆ BIOS_LAST_OFFSET

#define BIOS_LAST_OFFSET   0x0fc00

Definition at line 376 of file cs89x0.h.

◆ ISA_CNF_OFFSET

#define ISA_CNF_OFFSET   0x6

Definition at line 379 of file cs89x0.h.

◆ TX_CTL_OFFSET

#define TX_CTL_OFFSET   (ISA_CNF_OFFSET + 8) /* 8900 eeprom */

Definition at line 380 of file cs89x0.h.

◆ AUTO_NEG_CNF_OFFSET

#define AUTO_NEG_CNF_OFFSET   (ISA_CNF_OFFSET + 8) /* 8920 eeprom */

Definition at line 381 of file cs89x0.h.

◆ EE_FORCE_FDX

#define EE_FORCE_FDX   0x8000

Definition at line 387 of file cs89x0.h.

◆ EE_NLP_ENABLE

#define EE_NLP_ENABLE   0x0200

Definition at line 388 of file cs89x0.h.

◆ EE_AUTO_NEG_ENABLE

#define EE_AUTO_NEG_ENABLE   0x0100

Definition at line 389 of file cs89x0.h.

◆ EE_ALLOW_FDX

#define EE_ALLOW_FDX   0x0080

Definition at line 390 of file cs89x0.h.

◆ EE_AUTO_NEG_CNF_MASK

#define EE_AUTO_NEG_CNF_MASK   (EE_FORCE_FDX|EE_NLP_ENABLE|EE_AUTO_NEG_ENABLE|EE_ALLOW_FDX)

Definition at line 391 of file cs89x0.h.

◆ IMM_BIT

#define IMM_BIT   0x0040 /* ignore missing media */

Definition at line 393 of file cs89x0.h.

◆ ADAPTER_CNF_OFFSET

#define ADAPTER_CNF_OFFSET   (AUTO_NEG_CNF_OFFSET + 2)

Definition at line 395 of file cs89x0.h.

◆ A_CNF_10B_T

#define A_CNF_10B_T   0x0001

Definition at line 396 of file cs89x0.h.

◆ A_CNF_AUI

#define A_CNF_AUI   0x0002

Definition at line 397 of file cs89x0.h.

◆ A_CNF_10B_2

#define A_CNF_10B_2   0x0004

Definition at line 398 of file cs89x0.h.

◆ A_CNF_MEDIA_TYPE

#define A_CNF_MEDIA_TYPE   0x0060

Definition at line 399 of file cs89x0.h.

◆ A_CNF_MEDIA_AUTO

#define A_CNF_MEDIA_AUTO   0x0000

Definition at line 400 of file cs89x0.h.

◆ A_CNF_MEDIA_10B_T

#define A_CNF_MEDIA_10B_T   0x0020

Definition at line 401 of file cs89x0.h.

◆ A_CNF_MEDIA_AUI

#define A_CNF_MEDIA_AUI   0x0040

Definition at line 402 of file cs89x0.h.

◆ A_CNF_MEDIA_10B_2

#define A_CNF_MEDIA_10B_2   0x0060

Definition at line 403 of file cs89x0.h.

◆ A_CNF_DC_DC_POLARITY

#define A_CNF_DC_DC_POLARITY   0x0080

Definition at line 404 of file cs89x0.h.

◆ A_CNF_NO_AUTO_POLARITY

#define A_CNF_NO_AUTO_POLARITY   0x2000

Definition at line 405 of file cs89x0.h.

◆ A_CNF_LOW_RX_SQUELCH

#define A_CNF_LOW_RX_SQUELCH   0x4000

Definition at line 406 of file cs89x0.h.

◆ A_CNF_EXTND_10B_2

#define A_CNF_EXTND_10B_2   0x8000

Definition at line 407 of file cs89x0.h.

◆ PACKET_PAGE_OFFSET

#define PACKET_PAGE_OFFSET   0x8

Definition at line 409 of file cs89x0.h.

◆ INT_NO_MASK

#define INT_NO_MASK   0x000F

Definition at line 412 of file cs89x0.h.

◆ DMA_NO_MASK

#define DMA_NO_MASK   0x0070

Definition at line 413 of file cs89x0.h.

◆ ISA_DMA_SIZE

#define ISA_DMA_SIZE   0x0200

Definition at line 414 of file cs89x0.h.

◆ ISA_AUTO_RxDMA

#define ISA_AUTO_RxDMA   0x0400

Definition at line 415 of file cs89x0.h.

◆ ISA_RxDMA

#define ISA_RxDMA   0x0800

Definition at line 416 of file cs89x0.h.

◆ DMA_BURST

#define DMA_BURST   0x1000

Definition at line 417 of file cs89x0.h.

◆ STREAM_TRANSFER

#define STREAM_TRANSFER   0x2000

Definition at line 418 of file cs89x0.h.

◆ ANY_ISA_DMA

#define ANY_ISA_DMA   (ISA_AUTO_RxDMA | ISA_RxDMA)

Definition at line 419 of file cs89x0.h.

◆ DMA_BASE

#define DMA_BASE   0x00 /* DMA controller base */

Definition at line 422 of file cs89x0.h.

◆ DMA_BASE_2

#define DMA_BASE_2   0x0C0 /* DMA controller base */

Definition at line 423 of file cs89x0.h.

◆ DMA_STAT

#define DMA_STAT   0x0D0 /* DMA controller status register */

Definition at line 425 of file cs89x0.h.

◆ DMA_MASK

#define DMA_MASK   0x0D4 /* DMA controller mask register */

Definition at line 426 of file cs89x0.h.

◆ DMA_MODE

#define DMA_MODE   0x0D6 /* DMA controller mode register */

Definition at line 427 of file cs89x0.h.

◆ DMA_RESETFF

#define DMA_RESETFF   0x0D8 /* DMA controller first/last flip flop */

Definition at line 428 of file cs89x0.h.

◆ DMA_DISABLE

#define DMA_DISABLE   0x04 /* Disable channel n */

Definition at line 431 of file cs89x0.h.

◆ DMA_ENABLE

#define DMA_ENABLE   0x00 /* Enable channel n */

Definition at line 432 of file cs89x0.h.

◆ DMA_RX_MODE

#define DMA_RX_MODE   0x14

Definition at line 434 of file cs89x0.h.

◆ DMA_TX_MODE

#define DMA_TX_MODE   0x18

Definition at line 436 of file cs89x0.h.

◆ DMA_SIZE

#define DMA_SIZE   (16*1024) /* Size of dma buffer - 16k */

Definition at line 438 of file cs89x0.h.

◆ CS8900

#define CS8900   0x0000

Definition at line 440 of file cs89x0.h.

◆ CS8920

#define CS8920   0x4000

Definition at line 441 of file cs89x0.h.

◆ CS8920M

#define CS8920M   0x6000

Definition at line 442 of file cs89x0.h.

◆ REVISON_BITS

#define REVISON_BITS   0x1F00

Definition at line 443 of file cs89x0.h.

◆ EEVER_NUMBER

#define EEVER_NUMBER   0x12

Definition at line 444 of file cs89x0.h.

◆ CHKSUM_LEN

#define CHKSUM_LEN   0x14

Definition at line 445 of file cs89x0.h.

◆ CHKSUM_VAL

#define CHKSUM_VAL   0x0000

Definition at line 446 of file cs89x0.h.

◆ START_EEPROM_DATA

#define START_EEPROM_DATA   0x001c /* Offset into eeprom for start of data */

Definition at line 447 of file cs89x0.h.

◆ IRQ_MAP_EEPROM_DATA

#define IRQ_MAP_EEPROM_DATA   0x0046 /* Offset into eeprom for the IRQ map */

Definition at line 448 of file cs89x0.h.

◆ IRQ_MAP_LEN

#define IRQ_MAP_LEN   0x0004 /* No of bytes to read for the IRQ map */

Definition at line 449 of file cs89x0.h.

◆ PNP_IRQ_FRMT

#define PNP_IRQ_FRMT   0x0022 /* PNP small item IRQ format */

Definition at line 450 of file cs89x0.h.

◆ CS8900_IRQ_MAP

#define CS8900_IRQ_MAP   0x1c20 /* This IRQ map is fixed */

Definition at line 451 of file cs89x0.h.

◆ CS8920_NO_INTS

#define CS8920_NO_INTS   0x0F /* Max CS8920 interrupt select # */

Definition at line 453 of file cs89x0.h.

◆ PNP_ADD_PORT

#define PNP_ADD_PORT   0x0279

Definition at line 455 of file cs89x0.h.

◆ PNP_WRITE_PORT

#define PNP_WRITE_PORT   0x0A79

Definition at line 456 of file cs89x0.h.

◆ GET_PNP_ISA_STRUCT

#define GET_PNP_ISA_STRUCT   0x40

Definition at line 458 of file cs89x0.h.

◆ PNP_ISA_STRUCT_LEN

#define PNP_ISA_STRUCT_LEN   0x06

Definition at line 459 of file cs89x0.h.

◆ PNP_CSN_CNT_OFF

#define PNP_CSN_CNT_OFF   0x01

Definition at line 460 of file cs89x0.h.

◆ PNP_RD_PORT_OFF

#define PNP_RD_PORT_OFF   0x02

Definition at line 461 of file cs89x0.h.

◆ PNP_FUNCTION_OK

#define PNP_FUNCTION_OK   0x00

Definition at line 462 of file cs89x0.h.

◆ PNP_WAKE

#define PNP_WAKE   0x03

Definition at line 463 of file cs89x0.h.

◆ PNP_RSRC_DATA

#define PNP_RSRC_DATA   0x04

Definition at line 464 of file cs89x0.h.

◆ PNP_RSRC_READY

#define PNP_RSRC_READY   0x01

Definition at line 465 of file cs89x0.h.

◆ PNP_STATUS

#define PNP_STATUS   0x05

Definition at line 466 of file cs89x0.h.

◆ PNP_ACTIVATE

#define PNP_ACTIVATE   0x30

Definition at line 467 of file cs89x0.h.

◆ PNP_CNF_IO_H

#define PNP_CNF_IO_H   0x60

Definition at line 468 of file cs89x0.h.

◆ PNP_CNF_IO_L

#define PNP_CNF_IO_L   0x61

Definition at line 469 of file cs89x0.h.

◆ PNP_CNF_INT

#define PNP_CNF_INT   0x70

Definition at line 470 of file cs89x0.h.

◆ PNP_CNF_DMA

#define PNP_CNF_DMA   0x74

Definition at line 471 of file cs89x0.h.

◆ PNP_CNF_MEM

#define PNP_CNF_MEM   0x48

Definition at line 472 of file cs89x0.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_ONLY  )

Per an email message from Russ Nelson nelso.nosp@m.n@cr.nosp@m.ynwr..nosp@m.com on 18 March 2008 this file is now licensed under GPL Version 2.

From: Russ Nelson nelso.nosp@m.n@cr.nosp@m.ynwr..nosp@m.com Date: Tue, 18 Mar 2008 12:42:00 -0400 Subject: Re: [Etherboot-developers] cs89x0 driver in etherboot – quote from email As copyright holder, if I say it doesn't conflict with the GPL, then it doesn't conflict with the GPL.

However, there's no point in causing people's brains to overheat, so yes, I grant permission for the code to be relicensed under the GPLv2. Please make sure that this change in licensing makes its way upstream. -russ – quote from email