Lines Matching +full:serial +full:- +full:id
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Maybe this should handle DIO-II later?
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
47 dio_id id; member
78 dio_id id; /* Device ID or DIO_WILDCARD */ member
90 int (*probe)(struct dio_dev *z, const struct dio_device_id *id);
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.
101 #define DIO_IDOFF 0x01 /* primary device ID */
103 #define DIO_SECIDOFF 0x15 /* secondary device ID */
104 #define DIOII_SIZEOFF 0x101 /* device size, DIO-II only */
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 */
139 * int as PRIMARY ID & (SECONDARY ID << 8).
141 * and everybody else just sets ID fields equal to the DIO_ID_FOO value.
144 /* macro to determine whether a given primary ID requires a secondary ID byte */
145 #define DIO_NEEDSSECID(id) ((id) == DIO_ID_FBUFFER) argument
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"
163 #define DIO_ID_FHPIB 0x08 /* 98625A/98625B fast HP-IB */
165 #define DIO_ID_NHPIB 0x01 /* 98624A HP-IB (normal ie slow) */
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 :-> */
196 #define DIO_ID_MISC8 0x1a /* quad-wide card */
197 #define DIO_DESC_MISC8 "quad-wide card"
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"
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"
233 #define DIO_ID2_XGENESIS 0x0b /* "x-genesis"; no NetBSD support */
234 #define DIO_DESC2_XGENESIS "\"x-genesis\" 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()