Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
depca.h File Reference
#include <linux/sockios.h>

Go to the source code of this file.

Data Structures

struct  depca_ioctl
 

Macros

#define DEPCA_NICSR   ioaddr+0x00 /* Network interface CSR */
 
#define DEPCA_RBI   ioaddr+0x02 /* RAM buffer index (2k buffer mode) */
 
#define DEPCA_DATA   ioaddr+0x04 /* LANCE registers' data port */
 
#define DEPCA_ADDR   ioaddr+0x06 /* LANCE registers' address port */
 
#define DEPCA_HBASE   ioaddr+0x08 /* EISA high memory base address reg. */
 
#define DEPCA_PROM   ioaddr+0x0c /* Ethernet address ROM data port */
 
#define DEPCA_CNFG   ioaddr+0x0c /* EISA Configuration port */
 
#define DEPCA_RBSA   ioaddr+0x0e /* RAM buffer starting address (2k buff.) */
 
#define CSR0   0
 
#define CSR1   1
 
#define CSR2   2
 
#define CSR3   3
 
#define TO   0x0100 /* Time Out for remote boot */
 
#define SHE   0x0080 /* SHadow memory Enable */
 
#define BS   0x0040 /* Bank Select */
 
#define BUF   0x0020 /* BUFfer size (1->32k, 0->64k) */
 
#define RBE   0x0010 /* Remote Boot Enable (1->net boot) */
 
#define AAC   0x0008 /* Address ROM Address Counter (1->enable) */
 
#define _128KB   0x0008 /* 128kB Network RAM (1->enable) */
 
#define IM   0x0004 /* Interrupt Mask (1->mask) */
 
#define IEN   0x0002 /* Interrupt tristate ENable (1->enable) */
 
#define LED   0x0001 /* LED control */
 
#define ERR   0x8000 /* Error summary */
 
#define BABL   0x4000 /* Babble transmitter timeout error */
 
#define CERR   0x2000 /* Collision Error */
 
#define MISS   0x1000 /* Missed packet */
 
#define MERR   0x0800 /* Memory Error */
 
#define RINT   0x0400 /* Receiver Interrupt */
 
#define TINT   0x0200 /* Transmit Interrupt */
 
#define IDON   0x0100 /* Initialization Done */
 
#define INTR   0x0080 /* Interrupt Flag */
 
#define INEA   0x0040 /* Interrupt Enable */
 
#define RXON   0x0020 /* Receiver on */
 
#define TXON   0x0010 /* Transmitter on */
 
#define TDMD   0x0008 /* Transmit Demand */
 
#define STOP   0x0004 /* Stop */
 
#define STRT   0x0002 /* Start */
 
#define INIT   0x0001 /* Initialize */
 
#define INTM   0xff00 /* Interrupt Mask */
 
#define INTE   0xfff0 /* Interrupt Enable */
 
#define BSWP   0x0004 /* Byte SWaP */
 
#define ACON   0x0002 /* ALE control */
 
#define BCON   0x0001 /* Byte CONtrol */
 
#define PROM   0x8000 /* Promiscuous Mode */
 
#define EMBA   0x0080 /* Enable Modified Back-off Algorithm */
 
#define INTL   0x0040 /* Internal Loopback */
 
#define DRTY   0x0020 /* Disable Retry */
 
#define COLL   0x0010 /* Force Collision */
 
#define DTCR   0x0008 /* Disable Transmit CRC */
 
#define LOOP   0x0004 /* Loopback */
 
#define DTX   0x0002 /* Disable the Transmitter */
 
#define DRX   0x0001 /* Disable the Receiver */
 
#define R_OWN   0x80000000 /* Owner bit 0 = host, 1 = lance */
 
#define R_ERR   0x4000 /* Error Summary */
 
#define R_FRAM   0x2000 /* Framing Error */
 
#define R_OFLO   0x1000 /* Overflow Error */
 
#define R_CRC   0x0800 /* CRC Error */
 
#define R_BUFF   0x0400 /* Buffer Error */
 
#define R_STP   0x0200 /* Start of Packet */
 
#define R_ENP   0x0100 /* End of Packet */
 
#define T_OWN   0x80000000 /* Owner bit 0 = host, 1 = lance */
 
#define T_ERR   0x4000 /* Error Summary */
 
#define T_ADD_FCS   0x2000 /* More the 1 retry needed to Xmit */
 
#define T_MORE   0x1000 /* >1 retry to transmit packet */
 
#define T_ONE   0x0800 /* 1 try needed to transmit the packet */
 
#define T_DEF   0x0400 /* Deferred */
 
#define T_STP   0x02000000 /* Start of Packet */
 
#define T_ENP   0x01000000 /* End of Packet */
 
#define T_FLAGS   0xff000000 /* TX Flags Field */
 
#define TMD3_BUFF   0x8000 /* BUFFer error */
 
#define TMD3_UFLO   0x4000 /* UnderFLOw error */
 
#define TMD3_RES   0x2000 /* REServed */
 
#define TMD3_LCOL   0x1000 /* Late COLlision */
 
#define TMD3_LCAR   0x0800 /* Loss of CARrier */
 
#define TMD3_RTRY   0x0400 /* ReTRY error */
 
#define TIMEOUT   0x0100 /* 0:2.5 mins, 1: 30 secs */
 
#define REMOTE   0x0080 /* Remote Boot Enable -> 1 */
 
#define IRQ11   0x0040 /* Enable -> 1 */
 
#define IRQ10   0x0020 /* Enable -> 1 */
 
#define IRQ9   0x0010 /* Enable -> 1 */
 
#define IRQ5   0x0008 /* Enable -> 1 */
 
#define BUFF   0x0004 /* 0: 64kB or 128kB, 1: 32kB */
 
#define PADR16   0x0002 /* RAM on 64kB boundary */
 
#define PADR17   0x0001 /* RAM on 128kB boundary */
 
#define HASH_TABLE_LEN   64 /* Bits */
 
#define HASH_BITS   0x003f /* 6 LS bits */
 
#define MASK_INTERRUPTS   1
 
#define UNMASK_INTERRUPTS   0
 
#define EISA_EN   0x0001 /* Enable EISA bus buffers */
 
#define EISA_ID   iobase+0x0080 /* ID long word for EISA card */
 
#define EISA_CTRL   iobase+0x0084 /* Control word for EISA card */
 
#define DEPCA_GET_HWADDR   0x01 /* Get the hardware address */
 
#define DEPCA_SET_HWADDR   0x02 /* Get the hardware address */
 
#define DEPCA_SET_PROM   0x03 /* Set Promiscuous Mode */
 
#define DEPCA_CLR_PROM   0x04 /* Clear Promiscuous Mode */
 
#define DEPCA_SAY_BOO   0x05 /* Say "Boo!" to the kernel log file */
 
#define DEPCA_GET_MCA   0x06 /* Get a multicast address */
 
#define DEPCA_SET_MCA   0x07 /* Set a multicast address */
 
#define DEPCA_CLR_MCA   0x08 /* Clear a multicast address */
 
#define DEPCA_MCA_EN   0x09 /* Enable a multicast address group */
 
#define DEPCA_GET_STATS   0x0a /* Get the driver statistics */
 
#define DEPCA_CLR_STATS   0x0b /* Zero out the driver statistics */
 
#define DEPCA_GET_REG   0x0c /* Get the Register contents */
 
#define DEPCA_SET_REG   0x0d /* Set the Register contents */
 
#define DEPCA_DUMP   0x0f /* Dump the DEPCA Status */
 

Macro Definition Documentation

#define _128KB   0x0008 /* 128kB Network RAM (1->enable) */

Definition at line 40 of file depca.h.

#define AAC   0x0008 /* Address ROM Address Counter (1->enable) */

Definition at line 39 of file depca.h.

#define ACON   0x0002 /* ALE control */

Definition at line 73 of file depca.h.

#define BABL   0x4000 /* Babble transmitter timeout error */

Definition at line 50 of file depca.h.

#define BCON   0x0001 /* Byte CONtrol */

Definition at line 74 of file depca.h.

#define BS   0x0040 /* Bank Select */

Definition at line 36 of file depca.h.

#define BSWP   0x0004 /* Byte SWaP */

Definition at line 72 of file depca.h.

#define BUF   0x0020 /* BUFfer size (1->32k, 0->64k) */

Definition at line 37 of file depca.h.

#define BUFF   0x0004 /* 0: 64kB or 128kB, 1: 32kB */

Definition at line 138 of file depca.h.

#define CERR   0x2000 /* Collision Error */

Definition at line 51 of file depca.h.

#define COLL   0x0010 /* Force Collision */

Definition at line 84 of file depca.h.

#define CSR0   0

Definition at line 25 of file depca.h.

#define CSR1   1

Definition at line 26 of file depca.h.

#define CSR2   2

Definition at line 27 of file depca.h.

#define CSR3   3

Definition at line 28 of file depca.h.

#define DEPCA_ADDR   ioaddr+0x06 /* LANCE registers' address port */

Definition at line 16 of file depca.h.

#define DEPCA_CLR_MCA   0x08 /* Clear a multicast address */

Definition at line 176 of file depca.h.

#define DEPCA_CLR_PROM   0x04 /* Clear Promiscuous Mode */

Definition at line 172 of file depca.h.

#define DEPCA_CLR_STATS   0x0b /* Zero out the driver statistics */

Definition at line 179 of file depca.h.

#define DEPCA_CNFG   ioaddr+0x0c /* EISA Configuration port */

Definition at line 19 of file depca.h.

#define DEPCA_DATA   ioaddr+0x04 /* LANCE registers' data port */

Definition at line 15 of file depca.h.

#define DEPCA_DUMP   0x0f /* Dump the DEPCA Status */

Definition at line 182 of file depca.h.

#define DEPCA_GET_HWADDR   0x01 /* Get the hardware address */

Definition at line 169 of file depca.h.

#define DEPCA_GET_MCA   0x06 /* Get a multicast address */

Definition at line 174 of file depca.h.

#define DEPCA_GET_REG   0x0c /* Get the Register contents */

Definition at line 180 of file depca.h.

#define DEPCA_GET_STATS   0x0a /* Get the driver statistics */

Definition at line 178 of file depca.h.

#define DEPCA_HBASE   ioaddr+0x08 /* EISA high memory base address reg. */

Definition at line 17 of file depca.h.

#define DEPCA_MCA_EN   0x09 /* Enable a multicast address group */

Definition at line 177 of file depca.h.

#define DEPCA_NICSR   ioaddr+0x00 /* Network interface CSR */

Definition at line 13 of file depca.h.

#define DEPCA_PROM   ioaddr+0x0c /* Ethernet address ROM data port */

Definition at line 18 of file depca.h.

#define DEPCA_RBI   ioaddr+0x02 /* RAM buffer index (2k buffer mode) */

Definition at line 14 of file depca.h.

#define DEPCA_RBSA   ioaddr+0x0e /* RAM buffer starting address (2k buff.) */

Definition at line 20 of file depca.h.

#define DEPCA_SAY_BOO   0x05 /* Say "Boo!" to the kernel log file */

Definition at line 173 of file depca.h.

#define DEPCA_SET_HWADDR   0x02 /* Get the hardware address */

Definition at line 170 of file depca.h.

#define DEPCA_SET_MCA   0x07 /* Set a multicast address */

Definition at line 175 of file depca.h.

#define DEPCA_SET_PROM   0x03 /* Set Promiscuous Mode */

Definition at line 171 of file depca.h.

#define DEPCA_SET_REG   0x0d /* Set the Register contents */

Definition at line 181 of file depca.h.

#define DRTY   0x0020 /* Disable Retry */

Definition at line 83 of file depca.h.

#define DRX   0x0001 /* Disable the Receiver */

Definition at line 88 of file depca.h.

#define DTCR   0x0008 /* Disable Transmit CRC */

Definition at line 85 of file depca.h.

#define DTX   0x0002 /* Disable the Transmitter */

Definition at line 87 of file depca.h.

#define EISA_CTRL   iobase+0x0084 /* Control word for EISA card */

Definition at line 153 of file depca.h.

#define EISA_EN   0x0001 /* Enable EISA bus buffers */

Definition at line 151 of file depca.h.

#define EISA_ID   iobase+0x0080 /* ID long word for EISA card */

Definition at line 152 of file depca.h.

#define EMBA   0x0080 /* Enable Modified Back-off Algorithm */

Definition at line 81 of file depca.h.

#define ERR   0x8000 /* Error summary */

Definition at line 49 of file depca.h.

#define HASH_BITS   0x003f /* 6 LS bits */

Definition at line 146 of file depca.h.

#define HASH_TABLE_LEN   64 /* Bits */

Definition at line 145 of file depca.h.

#define IDON   0x0100 /* Initialization Done */

Definition at line 56 of file depca.h.

#define IEN   0x0002 /* Interrupt tristate ENable (1->enable) */

Definition at line 42 of file depca.h.

#define IM   0x0004 /* Interrupt Mask (1->mask) */

Definition at line 41 of file depca.h.

#define INEA   0x0040 /* Interrupt Enable */

Definition at line 58 of file depca.h.

#define INIT   0x0001 /* Initialize */

Definition at line 64 of file depca.h.

#define INTE   0xfff0 /* Interrupt Enable */

Definition at line 66 of file depca.h.

#define INTL   0x0040 /* Internal Loopback */

Definition at line 82 of file depca.h.

#define INTM   0xff00 /* Interrupt Mask */

Definition at line 65 of file depca.h.

#define INTR   0x0080 /* Interrupt Flag */

Definition at line 57 of file depca.h.

#define IRQ10   0x0020 /* Enable -> 1 */

Definition at line 135 of file depca.h.

#define IRQ11   0x0040 /* Enable -> 1 */

Definition at line 134 of file depca.h.

#define IRQ5   0x0008 /* Enable -> 1 */

Definition at line 137 of file depca.h.

#define IRQ9   0x0010 /* Enable -> 1 */

Definition at line 136 of file depca.h.

#define LED   0x0001 /* LED control */

Definition at line 43 of file depca.h.

#define LOOP   0x0004 /* Loopback */

Definition at line 86 of file depca.h.

#define MASK_INTERRUPTS   1

Definition at line 148 of file depca.h.

#define MERR   0x0800 /* Memory Error */

Definition at line 53 of file depca.h.

#define MISS   0x1000 /* Missed packet */

Definition at line 52 of file depca.h.

#define PADR16   0x0002 /* RAM on 64kB boundary */

Definition at line 139 of file depca.h.

#define PADR17   0x0001 /* RAM on 128kB boundary */

Definition at line 140 of file depca.h.

#define PROM   0x8000 /* Promiscuous Mode */

Definition at line 80 of file depca.h.

#define R_BUFF   0x0400 /* Buffer Error */

Definition at line 99 of file depca.h.

#define R_CRC   0x0800 /* CRC Error */

Definition at line 98 of file depca.h.

#define R_ENP   0x0100 /* End of Packet */

Definition at line 101 of file depca.h.

#define R_ERR   0x4000 /* Error Summary */

Definition at line 95 of file depca.h.

#define R_FRAM   0x2000 /* Framing Error */

Definition at line 96 of file depca.h.

#define R_OFLO   0x1000 /* Overflow Error */

Definition at line 97 of file depca.h.

#define R_OWN   0x80000000 /* Owner bit 0 = host, 1 = lance */

Definition at line 94 of file depca.h.

#define R_STP   0x0200 /* Start of Packet */

Definition at line 100 of file depca.h.

#define RBE   0x0010 /* Remote Boot Enable (1->net boot) */

Definition at line 38 of file depca.h.

#define REMOTE   0x0080 /* Remote Boot Enable -> 1 */

Definition at line 133 of file depca.h.

#define RINT   0x0400 /* Receiver Interrupt */

Definition at line 54 of file depca.h.

#define RXON   0x0020 /* Receiver on */

Definition at line 59 of file depca.h.

#define SHE   0x0080 /* SHadow memory Enable */

Definition at line 35 of file depca.h.

#define STOP   0x0004 /* Stop */

Definition at line 62 of file depca.h.

#define STRT   0x0002 /* Start */

Definition at line 63 of file depca.h.

#define T_ADD_FCS   0x2000 /* More the 1 retry needed to Xmit */

Definition at line 109 of file depca.h.

#define T_DEF   0x0400 /* Deferred */

Definition at line 112 of file depca.h.

#define T_ENP   0x01000000 /* End of Packet */

Definition at line 114 of file depca.h.

#define T_ERR   0x4000 /* Error Summary */

Definition at line 108 of file depca.h.

#define T_FLAGS   0xff000000 /* TX Flags Field */

Definition at line 115 of file depca.h.

#define T_MORE   0x1000 /* >1 retry to transmit packet */

Definition at line 110 of file depca.h.

#define T_ONE   0x0800 /* 1 try needed to transmit the packet */

Definition at line 111 of file depca.h.

#define T_OWN   0x80000000 /* Owner bit 0 = host, 1 = lance */

Definition at line 107 of file depca.h.

#define T_STP   0x02000000 /* Start of Packet */

Definition at line 113 of file depca.h.

#define TDMD   0x0008 /* Transmit Demand */

Definition at line 61 of file depca.h.

#define TIMEOUT   0x0100 /* 0:2.5 mins, 1: 30 secs */

Definition at line 132 of file depca.h.

#define TINT   0x0200 /* Transmit Interrupt */

Definition at line 55 of file depca.h.

#define TMD3_BUFF   0x8000 /* BUFFer error */

Definition at line 121 of file depca.h.

#define TMD3_LCAR   0x0800 /* Loss of CARrier */

Definition at line 125 of file depca.h.

#define TMD3_LCOL   0x1000 /* Late COLlision */

Definition at line 124 of file depca.h.

#define TMD3_RES   0x2000 /* REServed */

Definition at line 123 of file depca.h.

#define TMD3_RTRY   0x0400 /* ReTRY error */

Definition at line 126 of file depca.h.

#define TMD3_UFLO   0x4000 /* UnderFLOw error */

Definition at line 122 of file depca.h.

#define TO   0x0100 /* Time Out for remote boot */

Definition at line 34 of file depca.h.

#define TXON   0x0010 /* Transmitter on */

Definition at line 60 of file depca.h.

#define UNMASK_INTERRUPTS   0

Definition at line 149 of file depca.h.