Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
de620.h File Reference

Go to the source code of this file.

Macros

#define CS0   0x08 /* 1->0 command strobe */
 
#define ICEN   0x04 /* 0=enable DL3520 host interface */
 
#define DS0   0x02 /* 1->0 data strobe 0 */
 
#define DS1   0x01 /* 1->0 data strobe 1 */
 
#define WDIR   0x20 /* general 0=read 1=write */
 
#define RDIR   0x00 /* (not 100% confirm ) */
 
#define PS2WDIR   0x00 /* ps/2 mode 1=read, 0=write */
 
#define PS2RDIR   0x20
 
#define IRQEN   0x10 /* 1 = enable printer IRQ line */
 
#define SELECTIN   0x08 /* 1 = select printer */
 
#define INITP   0x04 /* 0 = initial printer */
 
#define AUTOFEED   0x02 /* 1 = printer auto form feed */
 
#define STROBE   0x01 /* 0->1 data strobe */
 
#define RESET   0x08
 
#define NIS0   0x20 /* 0 = BNC, 1 = UTP */
 
#define NCTL0   0x10
 
#define W_DUMMY   0x00 /* DIC reserved command */
 
#define W_CR   0x20 /* DIC write command register */
 
#define W_NPR   0x40 /* DIC write Next Page Register */
 
#define W_TBR   0x60 /* DIC write Tx Byte Count 1 reg */
 
#define W_RSA   0x80 /* DIC write Remote Start Addr 1 */
 
#define EMPTY   0x80 /* 1 = receive buffer empty */
 
#define INTLEVEL   0x40 /* 1 = interrupt level is high */
 
#define TXBF1   0x20 /* 1 = transmit buffer 1 is in use */
 
#define TXBF0   0x10 /* 1 = transmit buffer 0 is in use */
 
#define READY   0x08 /* 1 = h/w ready to accept cmd/data */
 
#define W_RSA1   0xa0 /* write remote start address 1 */
 
#define W_RSA0   0xa1 /* write remote start address 0 */
 
#define W_NPRF   0xa2 /* write next page register NPR15-NPR8 */
 
#define W_DFR   0xa3 /* write delay factor register */
 
#define W_CPR   0xa4 /* write current page register */
 
#define W_SPR   0xa5 /* write start page register */
 
#define W_EPR   0xa6 /* write end page register */
 
#define W_SCR   0xa7 /* write system configuration register */
 
#define W_TCR   0xa8 /* write Transceiver Configuration reg */
 
#define W_EIP   0xa9 /* write EEPM Interface port */
 
#define W_PAR0   0xaa /* write physical address register 0 */
 
#define W_PAR1   0xab /* write physical address register 1 */
 
#define W_PAR2   0xac /* write physical address register 2 */
 
#define W_PAR3   0xad /* write physical address register 3 */
 
#define W_PAR4   0xae /* write physical address register 4 */
 
#define W_PAR5   0xaf /* write physical address register 5 */
 
#define R_STS   0xc0 /* read status register */
 
#define R_CPR   0xc1 /* read current page register */
 
#define R_BPR   0xc2 /* read boundary page register */
 
#define R_TDR   0xc3 /* read time domain reflectometry reg */
 
#define EEDI   0x80 /* EEPM DO pin */
 
#define TXSUC   0x40 /* tx success */
 
#define T16   0x20 /* tx fail 16 times */
 
#define TS1   0x40 /* 0=Tx success, 1=T16 */
 
#define TS0   0x20 /* 0=Tx success, 1=T16 */
 
#define RXGOOD   0x10 /* rx a good packet */
 
#define RXCRC   0x08 /* rx a CRC error packet */
 
#define RXSHORT   0x04 /* rx a short packet */
 
#define COLS   0x02 /* coaxial collision status */
 
#define LNKS   0x01 /* UTP link status */
 
#define CLEAR   0x10 /* reset part of hardware */
 
#define NOPER   0x08 /* No Operation */
 
#define RNOP   0x08
 
#define RRA   0x06 /* After RR then auto-advance NPR & BPR(=NPR-1) */
 
#define RRN   0x04 /* Normal Remote Read mode */
 
#define RW1   0x02 /* Remote Write tx buffer 1 ( page 6 - 11 ) */
 
#define RW0   0x00 /* Remote Write tx buffer 0 ( page 0 - 5 ) */
 
#define TXEN   0x01 /* 0->1 tx enable */
 
#define TESTON   0x80 /* test host data transfer reliability */
 
#define SLEEP   0x40 /* sleep mode */
 
#define FASTMODE   0x20 /* fast mode for intel 82360SL fast mode */
 
#define BYTEMODE   0x10 /* byte mode */
 
#define NIBBLEMODE   0x00 /* nibble mode */
 
#define IRQINV   0x08 /* turn off IRQ line inverter */
 
#define IRQNML   0x00 /* turn on IRQ line inverter */
 
#define INTON   0x04
 
#define AUTOFFSET   0x02 /* auto shift address to TPR+12 */
 
#define AUTOTX   0x01 /* auto tx when leave RW mode */
 
#define JABBER   0x80 /* generate jabber condition */
 
#define TXSUCINT   0x40 /* enable tx success interrupt */
 
#define T16INT   0x20 /* enable T16 interrupt */
 
#define RXERRPKT   0x10 /* accept CRC error or short packet */
 
#define EXTERNALB2   0x0C /* external loopback 2 */
 
#define EXTERNALB1   0x08 /* external loopback 1 */
 
#define INTERNALB   0x04 /* internal loopback */
 
#define NMLOPERATE   0x00 /* normal operation */
 
#define RXPBM   0x03 /* rx physical, broadcast, multicast */
 
#define RXPB   0x02 /* rx physical, broadcast */
 
#define RXALL   0x01 /* rx all packet */
 
#define RXOFF   0x00 /* rx disable */
 

Macro Definition Documentation

#define AUTOFEED   0x02 /* 1 = printer auto form feed */

Definition at line 21 of file de620.h.

#define AUTOFFSET   0x02 /* auto shift address to TPR+12 */

Definition at line 102 of file de620.h.

#define AUTOTX   0x01 /* auto tx when leave RW mode */

Definition at line 103 of file de620.h.

#define BYTEMODE   0x10 /* byte mode */

Definition at line 96 of file de620.h.

#define CLEAR   0x10 /* reset part of hardware */

Definition at line 79 of file de620.h.

#define COLS   0x02 /* coaxial collision status */

Definition at line 75 of file de620.h.

#define CS0   0x08 /* 1->0 command strobe */

Definition at line 8 of file de620.h.

#define DS0   0x02 /* 1->0 data strobe 0 */

Definition at line 10 of file de620.h.

#define DS1   0x01 /* 1->0 data strobe 1 */

Definition at line 11 of file de620.h.

#define EEDI   0x80 /* EEPM DO pin */

Definition at line 67 of file de620.h.

#define EMPTY   0x80 /* 1 = receive buffer empty */

Definition at line 36 of file de620.h.

#define EXTERNALB1   0x08 /* external loopback 1 */

Definition at line 111 of file de620.h.

#define EXTERNALB2   0x0C /* external loopback 2 */

Definition at line 110 of file de620.h.

#define FASTMODE   0x20 /* fast mode for intel 82360SL fast mode */

Definition at line 95 of file de620.h.

#define ICEN   0x04 /* 0=enable DL3520 host interface */

Definition at line 9 of file de620.h.

#define INITP   0x04 /* 0 = initial printer */

Definition at line 20 of file de620.h.

#define INTERNALB   0x04 /* internal loopback */

Definition at line 112 of file de620.h.

#define INTLEVEL   0x40 /* 1 = interrupt level is high */

Definition at line 37 of file de620.h.

#define INTON   0x04

Definition at line 101 of file de620.h.

#define IRQEN   0x10 /* 1 = enable printer IRQ line */

Definition at line 18 of file de620.h.

#define IRQINV   0x08 /* turn off IRQ line inverter */

Definition at line 99 of file de620.h.

#define IRQNML   0x00 /* turn on IRQ line inverter */

Definition at line 100 of file de620.h.

#define JABBER   0x80 /* generate jabber condition */

Definition at line 106 of file de620.h.

#define LNKS   0x01 /* UTP link status */

Definition at line 76 of file de620.h.

#define NCTL0   0x10

Definition at line 26 of file de620.h.

#define NIBBLEMODE   0x00 /* nibble mode */

Definition at line 98 of file de620.h.

#define NIS0   0x20 /* 0 = BNC, 1 = UTP */

Definition at line 25 of file de620.h.

#define NMLOPERATE   0x00 /* normal operation */

Definition at line 113 of file de620.h.

#define NOPER   0x08 /* No Operation */

Definition at line 80 of file de620.h.

#define PS2RDIR   0x20

Definition at line 16 of file de620.h.

#define PS2WDIR   0x00 /* ps/2 mode 1=read, 0=write */

Definition at line 15 of file de620.h.

#define R_BPR   0xc2 /* read boundary page register */

Definition at line 63 of file de620.h.

#define R_CPR   0xc1 /* read current page register */

Definition at line 62 of file de620.h.

#define R_STS   0xc0 /* read status register */

Definition at line 61 of file de620.h.

#define R_TDR   0xc3 /* read time domain reflectometry reg */

Definition at line 64 of file de620.h.

#define RDIR   0x00 /* (not 100% confirm ) */

Definition at line 14 of file de620.h.

#define READY   0x08 /* 1 = h/w ready to accept cmd/data */

Definition at line 40 of file de620.h.

#define RESET   0x08

Definition at line 24 of file de620.h.

#define RNOP   0x08

Definition at line 81 of file de620.h.

#define RRA   0x06 /* After RR then auto-advance NPR & BPR(=NPR-1) */

Definition at line 82 of file de620.h.

#define RRN   0x04 /* Normal Remote Read mode */

Definition at line 83 of file de620.h.

#define RW0   0x00 /* Remote Write tx buffer 0 ( page 0 - 5 ) */

Definition at line 85 of file de620.h.

#define RW1   0x02 /* Remote Write tx buffer 1 ( page 6 - 11 ) */

Definition at line 84 of file de620.h.

#define RXALL   0x01 /* rx all packet */

Definition at line 116 of file de620.h.

#define RXCRC   0x08 /* rx a CRC error packet */

Definition at line 73 of file de620.h.

#define RXERRPKT   0x10 /* accept CRC error or short packet */

Definition at line 109 of file de620.h.

#define RXGOOD   0x10 /* rx a good packet */

Definition at line 72 of file de620.h.

#define RXOFF   0x00 /* rx disable */

Definition at line 117 of file de620.h.

#define RXPB   0x02 /* rx physical, broadcast */

Definition at line 115 of file de620.h.

#define RXPBM   0x03 /* rx physical, broadcast, multicast */

Definition at line 114 of file de620.h.

#define RXSHORT   0x04 /* rx a short packet */

Definition at line 74 of file de620.h.

#define SELECTIN   0x08 /* 1 = select printer */

Definition at line 19 of file de620.h.

#define SLEEP   0x40 /* sleep mode */

Definition at line 90 of file de620.h.

#define STROBE   0x01 /* 0->1 data strobe */

Definition at line 22 of file de620.h.

#define T16   0x20 /* tx fail 16 times */

Definition at line 69 of file de620.h.

#define T16INT   0x20 /* enable T16 interrupt */

Definition at line 108 of file de620.h.

#define TESTON   0x80 /* test host data transfer reliability */

Definition at line 89 of file de620.h.

#define TS0   0x20 /* 0=Tx success, 1=T16 */

Definition at line 71 of file de620.h.

#define TS1   0x40 /* 0=Tx success, 1=T16 */

Definition at line 70 of file de620.h.

#define TXBF0   0x10 /* 1 = transmit buffer 0 is in use */

Definition at line 39 of file de620.h.

#define TXBF1   0x20 /* 1 = transmit buffer 1 is in use */

Definition at line 38 of file de620.h.

#define TXEN   0x01 /* 0->1 tx enable */

Definition at line 86 of file de620.h.

#define TXSUC   0x40 /* tx success */

Definition at line 68 of file de620.h.

#define TXSUCINT   0x40 /* enable tx success interrupt */

Definition at line 107 of file de620.h.

#define W_CPR   0xa4 /* write current page register */

Definition at line 47 of file de620.h.

#define W_CR   0x20 /* DIC write command register */

Definition at line 30 of file de620.h.

#define W_DFR   0xa3 /* write delay factor register */

Definition at line 46 of file de620.h.

#define W_DUMMY   0x00 /* DIC reserved command */

Definition at line 29 of file de620.h.

#define W_EIP   0xa9 /* write EEPM Interface port */

Definition at line 52 of file de620.h.

#define W_EPR   0xa6 /* write end page register */

Definition at line 49 of file de620.h.

#define W_NPR   0x40 /* DIC write Next Page Register */

Definition at line 31 of file de620.h.

#define W_NPRF   0xa2 /* write next page register NPR15-NPR8 */

Definition at line 45 of file de620.h.

#define W_PAR0   0xaa /* write physical address register 0 */

Definition at line 53 of file de620.h.

#define W_PAR1   0xab /* write physical address register 1 */

Definition at line 54 of file de620.h.

#define W_PAR2   0xac /* write physical address register 2 */

Definition at line 55 of file de620.h.

#define W_PAR3   0xad /* write physical address register 3 */

Definition at line 56 of file de620.h.

#define W_PAR4   0xae /* write physical address register 4 */

Definition at line 57 of file de620.h.

#define W_PAR5   0xaf /* write physical address register 5 */

Definition at line 58 of file de620.h.

#define W_RSA   0x80 /* DIC write Remote Start Addr 1 */

Definition at line 33 of file de620.h.

#define W_RSA0   0xa1 /* write remote start address 0 */

Definition at line 44 of file de620.h.

#define W_RSA1   0xa0 /* write remote start address 1 */

Definition at line 43 of file de620.h.

#define W_SCR   0xa7 /* write system configuration register */

Definition at line 50 of file de620.h.

#define W_SPR   0xa5 /* write start page register */

Definition at line 48 of file de620.h.

#define W_TBR   0x60 /* DIC write Tx Byte Count 1 reg */

Definition at line 32 of file de620.h.

#define W_TCR   0xa8 /* write Transceiver Configuration reg */

Definition at line 51 of file de620.h.

#define WDIR   0x20 /* general 0=read 1=write */

Definition at line 13 of file de620.h.