4 * MACHINE GENERATED: DO NOT EDIT
6 * ioconf.c, from "TESTI_ulpt"
11 #include <sys/device.h>
12 #include <sys/mount.h>
15 static const struct cfiattrdata gpibdevcf_iattrdata
= {
18 { "address", "-1", -1 },
21 static const struct cfiattrdata acpibuscf_iattrdata
= {
26 static const struct cfiattrdata caccf_iattrdata
= {
32 static const struct cfiattrdata spicf_iattrdata
= {
35 { "slave", "NULL", 0 },
38 static const struct cfiattrdata radiodevcf_iattrdata
= {
43 static const struct cfiattrdata mlxcf_iattrdata
= {
49 static const struct cfiattrdata ucombuscf_iattrdata
= {
52 { "portno", "-1", -1 },
55 static const struct cfiattrdata videobuscf_iattrdata
= {
60 static const struct cfiattrdata isabuscf_iattrdata
= {
65 static const struct cfiattrdata i2cbuscf_iattrdata
= {
70 static const struct cfiattrdata ata_hlcf_iattrdata
= {
73 { "drive", "-1", -1 },
76 static const struct cfiattrdata depcacf_iattrdata
= {
81 static const struct cfiattrdata ppbuscf_iattrdata
= {
86 static const struct cfiattrdata eisabuscf_iattrdata
= {
91 static const struct cfiattrdata atapicf_iattrdata
= {
96 static const struct cfiattrdata usbroothubifcf_iattrdata
= {
101 static const struct cfiattrdata altmemdevcf_iattrdata
= {
106 static const struct cfiattrdata tcbuscf_iattrdata
= {
111 static const struct cfiattrdata onewirebuscf_iattrdata
= {
116 static const struct cfiattrdata gpiocf_iattrdata
= {
119 { "offset", "-1", -1 },
123 static const struct cfiattrdata cbbuscf_iattrdata
= {
128 static const struct cfiattrdata gpiobuscf_iattrdata
= {
133 static const struct cfiattrdata drmcf_iattrdata
= {
138 static const struct cfiattrdata pckbportcf_iattrdata
= {
141 { "slot", "-1", -1 },
144 static const struct cfiattrdata irbuscf_iattrdata
= {
149 static const struct cfiattrdata aaccf_iattrdata
= {
152 { "unit", "-1", -1 },
155 static const struct cfiattrdata pcibuscf_iattrdata
= {
161 static const struct cfiattrdata usbififcf_iattrdata
= {
164 { "port", "-1", -1 },
165 { "configuration", "-1", -1 },
166 { "interface", "-1", -1 },
167 { "vendor", "-1", -1 },
168 { "product", "-1", -1 },
169 { "release", "-1", -1 },
172 static const struct cfiattrdata upccf_iattrdata
= {
175 { "offset", "-1", -1 },
178 static const struct cfiattrdata iiccf_iattrdata
= {
181 { "addr", "-1", -1 },
182 { "size", "-1", -1 },
185 static const struct cfiattrdata onewirecf_iattrdata
= {
190 static const struct cfiattrdata mcabuscf_iattrdata
= {
195 static const struct cfiattrdata wsdisplaydevcf_iattrdata
= {
198 { "kbdmux", "1", 1 },
201 static const struct cfiattrdata miicf_iattrdata
= {
207 static const struct cfiattrdata cpcbuscf_iattrdata
= {
210 { "addr", "NULL", 0 },
214 static const struct cfiattrdata parportcf_iattrdata
= {
219 static const struct cfiattrdata dbcoolcf_iattrdata
= {
224 static const struct cfiattrdata usbdevifcf_iattrdata
= {
227 { "port", "-1", -1 },
228 { "configuration", "-1", -1 },
229 { "interface", "-1", -1 },
230 { "vendor", "-1", -1 },
231 { "product", "-1", -1 },
232 { "release", "-1", -1 },
235 static const struct cfiattrdata wskbddevcf_iattrdata
= {
238 { "console", "-1", -1 },
242 static const struct cfiattrdata audiobuscf_iattrdata
= {
247 static const struct cfiattrdata btbuscf_iattrdata
= {
252 static const struct cfiattrdata midibuscf_iattrdata
= {
257 static const struct cfiattrdata vmebuscf_iattrdata
= {
262 static const struct cfiattrdata wsemuldisplaydevcf_iattrdata
= {
263 "wsemuldisplaydev", 2,
265 { "console", "-1", -1 },
266 { "kbdmux", "1", 1 },
269 static const struct cfiattrdata uhidbuscf_iattrdata
= {
272 { "reportid", "-1", -1 },
275 static const struct cfiattrdata icpcf_iattrdata
= {
278 { "unit", "-1", -1 },
281 static const struct cfiattrdata sdmmcbuscf_iattrdata
= {
286 static const struct cfiattrdata comcf_iattrdata
= {
291 static const struct cfiattrdata spiflashbuscf_iattrdata
= {
296 static const struct cfiattrdata fwbuscf_iattrdata
= {
301 static const struct cfiattrdata pcmciaslotcf_iattrdata
= {
306 static const struct cfiattrdata usbuscf_iattrdata
= {
311 static const struct cfiattrdata wsmousedevcf_iattrdata
= {
317 static const struct cfiattrdata scsicf_iattrdata
= {
320 { "channel", "-1", -1 },
323 static const struct cfiattrdata atacf_iattrdata
= {
326 { "channel", "-1", -1 },
329 static const struct cfiattrdata spibuscf_iattrdata
= {
334 static const struct cfiattrdata pcmciabuscf_iattrdata
= {
337 { "controller", "-1", -1 },
338 { "socket", "-1", -1 },
342 static const struct cfiattrdata
* const usb_attrs
[] = { &usbroothubifcf_iattrdata
, NULL
};
343 CFDRIVER_DECL(usb
, DV_DULL
, usb_attrs
);
345 static const struct cfiattrdata
* const uhub_attrs
[] = { &usbififcf_iattrdata
, &usbdevifcf_iattrdata
, NULL
};
346 CFDRIVER_DECL(uhub
, DV_DULL
, uhub_attrs
);
348 CFDRIVER_DECL(ulpt
, DV_DULL
, NULL
);
350 static const struct cfiattrdata
* const rumpusbhc_attrs
[] = { &usbuscf_iattrdata
, NULL
};
351 CFDRIVER_DECL(rumpusbhc
, DV_DULL
, rumpusbhc_attrs
);
355 extern struct cfattach usb_ca
;
356 extern struct cfattach uroothub_ca
;
357 extern struct cfattach ulpt_ca
;
358 extern struct cfattach rumpusbhc_ca
;
361 static int loc
[6] = {
362 -1, -1, -1, -1, -1, -1,
365 static const struct cfparent pspec1
= {
366 "usbus", "rumpusbhc", DVUNIT_ANY
368 static const struct cfparent pspec2
= {
369 "usbroothubif", "usb", DVUNIT_ANY
371 static const struct cfparent pspec3
= {
372 "usbifif", "uhub", DVUNIT_ANY
375 #define NORM FSTATE_NOTFOUND
376 #define STAR FSTATE_STAR
378 struct cfdata cfdata_ulpt
[] = {
379 /* driver attachment unit state loc flags pspec */
380 /* 0: usb* at rumpusbhc? */
381 { "usb", "usb", 0, STAR
, loc
, 0, &pspec1
},
382 /* 1: uhub* at usb? */
383 { "uhub", "uroothub", 0, STAR
, loc
, 0, &pspec2
},
384 /* 2: ulpt* at uhub? port -1 configuration -1 interface -1 vendor -1 product -1 release -1 */
385 { "ulpt", "ulpt", 0, STAR
, loc
+ 0, 0, &pspec3
},
386 { NULL
, NULL
, 0, 0, NULL
, 0, NULL
}
389 #include "rump_dev_private.h"
390 #include "rump_vfs_private.h"
392 #define FLAWLESSCALL(call) \
395 if ((att_error = call) != 0) \
396 panic("\"%s\" failed", #call); \
397 } while (/*CONSTCOND*/0)
400 rump_device_configuration(void)
402 extern struct cfattach usb_ca
, uhub_ca
, uroothub_ca
, ulpt_ca
;
403 extern struct cdevsw ulpt_cdevsw
;
404 devmajor_t bmaj
, cmaj
;
406 FLAWLESSCALL(config_cfdata_attach(cfdata_ulpt
, 0));
408 FLAWLESSCALL(config_cfdriver_attach(&usb_cd
));
409 FLAWLESSCALL(config_cfattach_attach("usb", &usb_ca
));
411 FLAWLESSCALL(config_cfdriver_attach(&uhub_cd
));
412 FLAWLESSCALL(config_cfattach_attach("uhub", &uhub_ca
));
414 FLAWLESSCALL(config_cfdriver_attach(&ulpt_cd
));
415 FLAWLESSCALL(config_cfattach_attach("ulpt", &ulpt_ca
));
417 FLAWLESSCALL(config_cfattach_attach("uhub", &uroothub_ca
));
420 FLAWLESSCALL(devsw_attach("ulpt", NULL
, &bmaj
, &ulpt_cdevsw
, &cmaj
));
422 FLAWLESSCALL(rump_vfs_makedevnodes(S_IFCHR
, "/dev/ulpt", '0',