Go to the documentation of this file.
35 #define ARCNET_TOTAL_SIZE 8
38 #ifdef CONFIG_SA1100_CT6001
45 #define _INTMASK (ioaddr+BUS_ALIGN*0)
46 #define _STATUS (ioaddr+BUS_ALIGN*0)
47 #define _COMMAND (ioaddr+BUS_ALIGN*1)
48 #define _DIAGSTAT (ioaddr+BUS_ALIGN*1)
49 #define _ADDR_HI (ioaddr+BUS_ALIGN*2)
50 #define _ADDR_LO (ioaddr+BUS_ALIGN*3)
51 #define _MEMDATA (ioaddr+BUS_ALIGN*4)
52 #define _SUBADR (ioaddr+BUS_ALIGN*5)
53 #define _CONFIG (ioaddr+BUS_ALIGN*6)
54 #define _XREG (ioaddr+BUS_ALIGN*7)
58 #define RDDATAflag 0x80
61 #define NEWNXTIDflag 0x02
68 #define PROMISCset 0x10
73 #define SUB_TENTATIVE 0
81 #define SUB_DMACOUNT 6
83 #define SET_SUBADR(x) do { \
86 lp->config = (lp->config & ~0x03) | (x); \
100 #define ARCRESET { outb(lp->config | 0x80, _CONFIG); \
102 outb(lp->config , _CONFIG); \
104 #define ARCRESET0 { outb(0x18 | 0x80, _CONFIG); \
106 outb(0x18 , _CONFIG); \
109 #define ASTATUS() inb(_STATUS)
110 #define ADIAGSTATUS() inb(_DIAGSTAT)
111 #define ACOMMAND(cmd) outb((cmd),_COMMAND)
112 #define AINTMASK(msk) outb((msk),_INTMASK)
114 #define SETCONF outb(lp->config, _CONFIG)