Lines Matching +full:0 +full:a

18 /* The DIO boards in a system are distinguished by 'select codes' which 
19 * range from 0-63 (DIO) and 132-255 (DIO-II).
21 * 0x600000 + sc * 0x10000
22 * So DIO cards cover [0x600000-0x800000); the areas [0x200000-0x400000) and
23 * [0x800000-0x1000000) are for additional space required by things
24 * like framebuffers. [0x400000-0x600000) is for miscellaneous internal I/O.
26 * at 0xf0000000 on bootup.
27 * DIO-II boards are at 0x1000000 + (sc - 132) * 0x400000
28 * which is address range [0x1000000-0x20000000) -- too big to map completely,
92 …void (*remove)(struct dio_dev *z); /* Device removed (NULL if not a hot-plug capable driver…
101 #define DIO_IDOFF 0x01 /* primary device ID */
102 #define DIO_IPLOFF 0x03 /* interrupt priority level */
103 #define DIO_SECIDOFF 0x15 /* secondary device ID */
104 #define DIOII_SIZEOFF 0x101 /* device size, DIO-II only */
105 #define DIO_VIRADDRBASE 0xf0000000UL /* vir addr where IOspace is mapped */
107 #define DIO_BASE 0x600000 /* start of DIO space */
108 #define DIO_END 0x1000000 /* end of DIO space */
109 #define DIO_DEVSIZE 0x10000 /* size of a DIO device */
111 #define DIOII_BASE 0x01000000 /* start of DIO-II space */
112 #define DIOII_END 0x20000000 /* end of DIO-II space */
113 #define DIOII_DEVSIZE 0x00400000 /* size of a DIO-II device */
128 #define DIO_IPL(baseaddr) (((in_8((baseaddr) + DIO_IPLOFF) >> 4) & 0x03) + 3)
130 /* find the size of a DIO-II board's address space.
133 #define DIOII_SIZE(baseaddr) ((in_8((baseaddr) + DIOII_SIZEOFF) + 1) * 0x100000)
138 /* The hardware has primary and secondary IDs; we encode these in a single
143 #define DIO_ENCODE_ID(pr,sec) ((((int)sec & 0xff) << 8) | ((int)pr & 0xff))
144 /* macro to determine whether a given primary ID requires a secondary ID byte */
146 #define DIO_WILDCARD 0xff
148 /* Now a whole slew of macros giving device IDs and descriptive strings: */
149 #define DIO_ID_DCA0 0x02 /* 98644A serial */
150 #define DIO_DESC_DCA0 "98644A DCA0 serial"
151 #define DIO_ID_DCA0REM 0x82 /* 98644A serial */
152 #define DIO_DESC_DCA0REM "98644A DCA0REM serial"
153 #define DIO_ID_DCA1 0x42 /* 98644A serial */
154 #define DIO_DESC_DCA1 "98644A DCA1 serial"
155 #define DIO_ID_DCA1REM 0xc2 /* 98644A serial */
156 #define DIO_DESC_DCA1REM "98644A DCA1REM serial"
157 #define DIO_ID_DCM 0x05 /* 98642A serial MUX */
158 #define DIO_DESC_DCM "98642A DCM serial MUX"
159 #define DIO_ID_DCMREM 0x85 /* 98642A serial MUX */
160 #define DIO_DESC_DCMREM "98642A DCMREM serial MUX"
161 #define DIO_ID_LAN 0x15 /* 98643A LAN */
162 #define DIO_DESC_LAN "98643A LANCE ethernet"
163 #define DIO_ID_FHPIB 0x08 /* 98625A/98625B fast HP-IB */
164 #define DIO_DESC_FHPIB "98625A/98625B fast HPIB"
165 #define DIO_ID_NHPIB 0x01 /* 98624A HP-IB (normal ie slow) */
166 #define DIO_DESC_NHPIB "98624A HPIB"
167 #define DIO_ID_SCSI0 0x07 /* 98265A SCSI */
168 #define DIO_DESC_SCSI0 "98265A SCSI0"
169 #define DIO_ID_SCSI1 0x27 /* ditto */
170 #define DIO_DESC_SCSI1 "98265A SCSI1"
171 #define DIO_ID_SCSI2 0x47 /* ditto */
172 #define DIO_DESC_SCSI2 "98265A SCSI2"
173 #define DIO_ID_SCSI3 0x67 /* ditto */
174 #define DIO_DESC_SCSI3 "98265A SCSI3"
175 #define DIO_ID_FBUFFER 0x39 /* framebuffer: flavour is distinguished by secondary ID */
177 /* the NetBSD kernel source is a bit unsure as to what these next IDs actually do :-> */
178 #define DIO_ID_MISC0 0x03 /* 98622A */
179 #define DIO_DESC_MISC0 "98622A"
180 #define DIO_ID_MISC1 0x04 /* 98623A */
181 #define DIO_DESC_MISC1 "98623A"
182 #define DIO_ID_PARALLEL 0x06 /* internal parallel */
184 #define DIO_ID_MISC2 0x09 /* 98287A keyboard */
185 #define DIO_DESC_MISC2 "98287A keyboard"
186 #define DIO_ID_MISC3 0x0a /* HP98635A FP accelerator */
188 #define DIO_ID_MISC4 0x0b /* timer */
190 #define DIO_ID_MISC5 0x12 /* 98640A */
191 #define DIO_DESC_MISC5 "98640A"
192 #define DIO_ID_MISC6 0x16 /* 98659A */
193 #define DIO_DESC_MISC6 "98659A"
194 #define DIO_ID_MISC7 0x19 /* 237 display */
196 #define DIO_ID_MISC8 0x1a /* quad-wide card */
198 #define DIO_ID_MISC9 0x1b /* 98253A */
199 #define DIO_DESC_MISC9 "98253A"
200 #define DIO_ID_MISC10 0x1c /* 98627A */
201 #define DIO_DESC_MISC10 "98253A"
202 #define DIO_ID_MISC11 0x1d /* 98633A */
203 #define DIO_DESC_MISC11 "98633A"
204 #define DIO_ID_MISC12 0x1e /* 98259A */
205 #define DIO_DESC_MISC12 "98259A"
206 #define DIO_ID_MISC13 0x1f /* 8741 */
208 #define DIO_ID_VME 0x31 /* 98577A VME adapter */
209 #define DIO_DESC_VME "98577A VME adapter"
210 #define DIO_ID_DCL 0x34 /* 98628A serial */
211 #define DIO_DESC_DCL "98628A DCL serial"
212 #define DIO_ID_DCLREM 0xb4 /* 98628A serial */
213 #define DIO_DESC_DCLREM "98628A DCLREM serial"
215 #define DIO_ID2_GATORBOX 0x01 /* 98700/98710 "gatorbox" */
217 #define DIO_ID2_TOPCAT 0x02 /* 98544/98545/98547 "topcat" */
219 #define DIO_ID2_RENAISSANCE 0x04 /* 98720/98721 "renaissance" */
221 #define DIO_ID2_LRCATSEYE 0x05 /* lowres "catseye" */
223 #define DIO_ID2_HRCCATSEYE 0x06 /* highres colour "catseye" */
225 #define DIO_ID2_HRMCATSEYE 0x07 /* highres mono "catseye" */
227 #define DIO_ID2_DAVINCI 0x08 /* 98730/98731 "davinci" */
229 #define DIO_ID2_XXXCATSEYE 0x09 /* "catseye" */
231 #define DIO_ID2_HYPERION 0x0e /* A1096A "hyperion" */
233 #define DIO_ID2_XGENESIS 0x0b /* "x-genesis"; no NetBSD support */
235 #define DIO_ID2_TIGER 0x0c /* "tiger"; no NetBSD support */
237 #define DIO_ID2_YGENESIS 0x0d /* "y-genesis"; no NetBSD support */
262 * driver-specific data. They are really just a wrapper around