Lines Matching +full:a +full:- +full:display
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Maybe this should handle DIO-II later?
18 /* The DIO boards in a system are distinguished by 'select codes' which
19 * range from 0-63 (DIO) and 132-255 (DIO-II).
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.
27 * DIO-II boards are at 0x1000000 + (sc - 132) * 0x400000
28 * which is address range [0x1000000-0x20000000) -- too big to map completely,
29 * so currently we just don't handle DIO-II boards. It wouldn't be hard to
92 …void (*remove)(struct dio_dev *z); /* Device removed (NULL if not a hot-plug capable driver…
98 /* DIO/DIO-II boards all have the following 8bit registers.
104 #define DIOII_SIZEOFF 0x101 /* device size, DIO-II only */
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 */
115 /* Highest valid select code. If we add DIO-II support this should become
119 #define DIOII_SCBASE 132 /* lowest DIO-II select code */
130 /* find the size of a DIO-II board's address space.
135 /* general purpose macro for both DIO and DIO-II */
138 /* The hardware has primary and secondary IDs; we encode these in a single
144 /* macro to determine whether a given primary ID requires a secondary ID byte */
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"
170 #define DIO_DESC_SCSI1 "98265A SCSI1"
172 #define DIO_DESC_SCSI2 "98265A SCSI2"
174 #define DIO_DESC_SCSI3 "98265A SCSI3"
176 #define DIO_DESC_FBUFFER "bitmapped display"
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"
184 #define DIO_ID_MISC2 0x09 /* 98287A keyboard */
185 #define DIO_DESC_MISC2 "98287A keyboard"
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 */
195 #define DIO_DESC_MISC7 "237 display"
196 #define DIO_ID_MISC8 0x1a /* quad-wide card */
197 #define DIO_DESC_MISC8 "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"
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"
216 #define DIO_DESC2_GATORBOX "98700/98710 \"gatorbox\" display"
218 #define DIO_DESC2_TOPCAT "98544/98545/98547 \"topcat\" display"
220 #define DIO_DESC2_RENAISSANCE "98720/98721 \"renaissance\" display"
222 #define DIO_DESC2_LRCATSEYE "low-res catseye display"
224 #define DIO_DESC2_HRCCATSEYE "high-res color catseye display"
226 #define DIO_DESC2_HRMCATSEYE "high-res mono catseye display"
228 #define DIO_DESC2_DAVINCI "98730/98731 \"davinci\" display"
230 #define DIO_DESC2_XXXCATSEYE "catseye display"
232 #define DIO_DESC2_HYPERION "A1096A \"hyperion\" display"
233 #define DIO_ID2_XGENESIS 0x0b /* "x-genesis"; no NetBSD support */
234 #define DIO_DESC2_XGENESIS "\"x-genesis\" display"
236 #define DIO_DESC2_TIGER "\"tiger\" display"
237 #define DIO_ID2_YGENESIS 0x0d /* "y-genesis"; no NetBSD support */
238 #define DIO_DESC2_YGENESIS "\"y-genesis\" display"
247 /* New-style probing */
251 #define dio_resource_start(d) ((d)->resource.start)
252 #define dio_resource_end(d) ((d)->resource.end)
253 #define dio_resource_len(d) (resource_size(&(d)->resource))
254 #define dio_resource_flags(d) ((d)->resource.flags)
261 /* Similar to the helpers above, these manipulate per-dio_dev
262 * driver-specific data. They are really just a wrapper around
267 return dev_get_drvdata(&d->dev); in dio_get_drvdata()
272 dev_set_drvdata(&d->dev, data); in dio_set_drvdata()