1 | /* |
2 | * MACHINE GENERATED: DO NOT EDIT |
3 | * |
4 | * devsw.c, from "GENERIC" |
5 | */ |
6 | |
7 | #include <sys/param.h> |
8 | #include <sys/conf.h> |
9 | |
10 | /* device switch table for block device */ |
11 | extern const struct bdevsw wd_bdevsw; |
12 | extern const struct bdevsw swap_bdevsw; |
13 | extern const struct bdevsw fd_bdevsw; |
14 | extern const struct bdevsw sd_bdevsw; |
15 | extern const struct bdevsw st_bdevsw; |
16 | extern const struct bdevsw cd_bdevsw; |
17 | extern const struct bdevsw vnd_bdevsw; |
18 | extern const struct bdevsw ccd_bdevsw; |
19 | extern const struct bdevsw md_bdevsw; |
20 | extern const struct bdevsw raid_bdevsw; |
21 | extern const struct bdevsw ld_bdevsw; |
22 | extern const struct bdevsw cgd_bdevsw; |
23 | extern const struct bdevsw fss_bdevsw; |
24 | extern const struct bdevsw dk_bdevsw; |
25 | |
26 | const struct bdevsw *bdevsw0[] = { |
27 | &wd_bdevsw, // 0 |
28 | &swap_bdevsw, // 1 |
29 | &fd_bdevsw, // 2 |
30 | NULL, // 3 |
31 | &sd_bdevsw, // 4 |
32 | &st_bdevsw, // 5 |
33 | &cd_bdevsw, // 6 |
34 | NULL, // 7 |
35 | NULL, // 8 |
36 | NULL, // 9 |
37 | NULL, // 10 |
38 | NULL, // 11 |
39 | NULL, // 12 |
40 | NULL, // 13 |
41 | &vnd_bdevsw, // 14 |
42 | NULL, // 15 |
43 | &ccd_bdevsw, // 16 |
44 | &md_bdevsw, // 17 |
45 | &raid_bdevsw, // 18 |
46 | &ld_bdevsw, // 19 |
47 | &cgd_bdevsw, // 20 |
48 | NULL, // 21 |
49 | NULL, // 22 |
50 | NULL, // 23 |
51 | NULL, // 24 |
52 | NULL, // 25 |
53 | NULL, // 26 |
54 | NULL, // 27 |
55 | NULL, // 28 |
56 | NULL, // 29 |
57 | NULL, // 30 |
58 | NULL, // 31 |
59 | NULL, // 32 |
60 | NULL, // 33 |
61 | NULL, // 34 |
62 | NULL, // 35 |
63 | NULL, // 36 |
64 | NULL, // 37 |
65 | NULL, // 38 |
66 | NULL, // 39 |
67 | NULL, // 40 |
68 | NULL, // 41 |
69 | NULL, // 42 |
70 | NULL, // 43 |
71 | NULL, // 44 |
72 | NULL, // 45 |
73 | NULL, // 46 |
74 | NULL, // 47 |
75 | NULL, // 48 |
76 | NULL, // 49 |
77 | NULL, // 50 |
78 | NULL, // 51 |
79 | NULL, // 52 |
80 | NULL, // 53 |
81 | NULL, // 54 |
82 | NULL, // 55 |
83 | NULL, // 56 |
84 | NULL, // 57 |
85 | NULL, // 58 |
86 | NULL, // 59 |
87 | NULL, // 60 |
88 | NULL, // 61 |
89 | NULL, // 62 |
90 | NULL, // 63 |
91 | NULL, // 64 |
92 | NULL, // 65 |
93 | NULL, // 66 |
94 | NULL, // 67 |
95 | NULL, // 68 |
96 | NULL, // 69 |
97 | NULL, // 70 |
98 | NULL, // 71 |
99 | NULL, // 72 |
100 | NULL, // 73 |
101 | NULL, // 74 |
102 | NULL, // 75 |
103 | NULL, // 76 |
104 | NULL, // 77 |
105 | NULL, // 78 |
106 | NULL, // 79 |
107 | NULL, // 80 |
108 | NULL, // 81 |
109 | NULL, // 82 |
110 | NULL, // 83 |
111 | NULL, // 84 |
112 | NULL, // 85 |
113 | NULL, // 86 |
114 | NULL, // 87 |
115 | NULL, // 88 |
116 | NULL, // 89 |
117 | NULL, // 90 |
118 | NULL, // 91 |
119 | NULL, // 92 |
120 | NULL, // 93 |
121 | NULL, // 94 |
122 | NULL, // 95 |
123 | NULL, // 96 |
124 | NULL, // 97 |
125 | NULL, // 98 |
126 | NULL, // 99 |
127 | NULL, // 100 |
128 | NULL, // 101 |
129 | NULL, // 102 |
130 | NULL, // 103 |
131 | NULL, // 104 |
132 | NULL, // 105 |
133 | NULL, // 106 |
134 | NULL, // 107 |
135 | NULL, // 108 |
136 | NULL, // 109 |
137 | NULL, // 110 |
138 | NULL, // 111 |
139 | NULL, // 112 |
140 | NULL, // 113 |
141 | NULL, // 114 |
142 | NULL, // 115 |
143 | NULL, // 116 |
144 | NULL, // 117 |
145 | NULL, // 118 |
146 | NULL, // 119 |
147 | NULL, // 120 |
148 | NULL, // 121 |
149 | NULL, // 122 |
150 | NULL, // 123 |
151 | NULL, // 124 |
152 | NULL, // 125 |
153 | NULL, // 126 |
154 | NULL, // 127 |
155 | NULL, // 128 |
156 | NULL, // 129 |
157 | NULL, // 130 |
158 | NULL, // 131 |
159 | NULL, // 132 |
160 | NULL, // 133 |
161 | NULL, // 134 |
162 | NULL, // 135 |
163 | NULL, // 136 |
164 | NULL, // 137 |
165 | NULL, // 138 |
166 | NULL, // 139 |
167 | NULL, // 140 |
168 | NULL, // 141 |
169 | NULL, // 142 |
170 | NULL, // 143 |
171 | NULL, // 144 |
172 | NULL, // 145 |
173 | NULL, // 146 |
174 | NULL, // 147 |
175 | NULL, // 148 |
176 | NULL, // 149 |
177 | NULL, // 150 |
178 | NULL, // 151 |
179 | NULL, // 152 |
180 | NULL, // 153 |
181 | NULL, // 154 |
182 | NULL, // 155 |
183 | NULL, // 156 |
184 | NULL, // 157 |
185 | NULL, // 158 |
186 | NULL, // 159 |
187 | NULL, // 160 |
188 | NULL, // 161 |
189 | NULL, // 162 |
190 | &fss_bdevsw, // 163 |
191 | NULL, // 164 |
192 | NULL, // 165 |
193 | NULL, // 166 |
194 | NULL, // 167 |
195 | &dk_bdevsw, // 168 |
196 | NULL, // 169 |
197 | NULL, // 170 |
198 | NULL, // 171 |
199 | NULL, // 172 |
200 | NULL, // 173 |
201 | NULL, // 174 |
202 | NULL, // 175 |
203 | NULL, // 176 |
204 | NULL, // 177 |
205 | NULL, // 178 |
206 | NULL, // 179 |
207 | NULL, // 180 |
208 | NULL, // 181 |
209 | NULL, // 182 |
210 | NULL, // 183 |
211 | NULL, // 184 |
212 | NULL, // 185 |
213 | NULL, // 186 |
214 | NULL, // 187 |
215 | NULL, // 188 |
216 | NULL, // 189 |
217 | NULL, // 190 |
218 | NULL, // 191 |
219 | NULL, // 192 |
220 | NULL, // 193 |
221 | NULL, // 194 |
222 | NULL, // 195 |
223 | NULL, // 196 |
224 | NULL, // 197 |
225 | NULL, // 198 |
226 | NULL, // 199 |
227 | NULL, // 200 |
228 | NULL, // 201 |
229 | NULL, // 202 |
230 | NULL, // 203 |
231 | NULL, // 204 |
232 | NULL, // 205 |
233 | NULL, // 206 |
234 | NULL, // 207 |
235 | NULL, // 208 |
236 | }; |
237 | |
238 | const struct bdevsw **bdevsw = bdevsw0; |
239 | const int sys_bdevsws = __arraycount(bdevsw0); |
240 | int max_bdevsws = __arraycount(bdevsw0); |
241 | |
242 | /* device switch table for character device */ |
243 | extern const struct cdevsw cons_cdevsw; |
244 | extern const struct cdevsw ctty_cdevsw; |
245 | extern const struct cdevsw mem_cdevsw; |
246 | extern const struct cdevsw wd_cdevsw; |
247 | extern const struct cdevsw swap_cdevsw; |
248 | extern const struct cdevsw pts_cdevsw; |
249 | extern const struct cdevsw ptc_cdevsw; |
250 | extern const struct cdevsw log_cdevsw; |
251 | extern const struct cdevsw com_cdevsw; |
252 | extern const struct cdevsw fd_cdevsw; |
253 | extern const struct cdevsw sd_cdevsw; |
254 | extern const struct cdevsw st_cdevsw; |
255 | extern const struct cdevsw cd_cdevsw; |
256 | extern const struct cdevsw lpt_cdevsw; |
257 | extern const struct cdevsw ch_cdevsw; |
258 | extern const struct cdevsw ccd_cdevsw; |
259 | extern const struct cdevsw ss_cdevsw; |
260 | extern const struct cdevsw uk_cdevsw; |
261 | extern const struct cdevsw filedesc_cdevsw; |
262 | extern const struct cdevsw bpf_cdevsw; |
263 | extern const struct cdevsw md_cdevsw; |
264 | extern const struct cdevsw cy_cdevsw; |
265 | extern const struct cdevsw tun_cdevsw; |
266 | extern const struct cdevsw vnd_cdevsw; |
267 | extern const struct cdevsw audio_cdevsw; |
268 | extern const struct cdevsw ipl_cdevsw; |
269 | extern const struct cdevsw rnd_cdevsw; |
270 | extern const struct cdevsw wsdisplay_cdevsw; |
271 | extern const struct cdevsw wskbd_cdevsw; |
272 | extern const struct cdevsw wsmouse_cdevsw; |
273 | extern const struct cdevsw usb_cdevsw; |
274 | extern const struct cdevsw uhid_cdevsw; |
275 | extern const struct cdevsw ulpt_cdevsw; |
276 | extern const struct cdevsw midi_cdevsw; |
277 | extern const struct cdevsw sequencer_cdevsw; |
278 | extern const struct cdevsw vcoda_cdevsw; |
279 | extern const struct cdevsw scsibus_cdevsw; |
280 | extern const struct cdevsw raid_cdevsw; |
281 | extern const struct cdevsw esh_cdevsw; |
282 | extern const struct cdevsw ugen_cdevsw; |
283 | extern const struct cdevsw wsmux_cdevsw; |
284 | extern const struct cdevsw ucom_cdevsw; |
285 | extern const struct cdevsw sysmon_cdevsw; |
286 | extern const struct cdevsw ld_cdevsw; |
287 | extern const struct cdevsw urio_cdevsw; |
288 | extern const struct cdevsw bktr_cdevsw; |
289 | extern const struct cdevsw cz_cdevsw; |
290 | extern const struct cdevsw ses_cdevsw; |
291 | extern const struct cdevsw iop_cdevsw; |
292 | extern const struct cdevsw mlx_cdevsw; |
293 | extern const struct cdevsw clockctl_cdevsw; |
294 | extern const struct cdevsw cgd_cdevsw; |
295 | extern const struct cdevsw agp_cdevsw; |
296 | extern const struct cdevsw pci_cdevsw; |
297 | extern const struct cdevsw irframe_cdevsw; |
298 | extern const struct cdevsw ksyms_cdevsw; |
299 | extern const struct cdevsw wsfont_cdevsw; |
300 | extern const struct cdevsw mly_cdevsw; |
301 | extern const struct cdevsw joy_cdevsw; |
302 | extern const struct cdevsw cir_cdevsw; |
303 | extern const struct cdevsw radio_cdevsw; |
304 | extern const struct cdevsw dpt_cdevsw; |
305 | extern const struct cdevsw twe_cdevsw; |
306 | extern const struct cdevsw nsmb_cdevsw; |
307 | extern const struct cdevsw crypto_cdevsw; |
308 | extern const struct cdevsw fss_cdevsw; |
309 | extern const struct cdevsw ptm_cdevsw; |
310 | extern const struct cdevsw atabus_cdevsw; |
311 | extern const struct cdevsw drvctl_cdevsw; |
312 | extern const struct cdevsw dk_cdevsw; |
313 | extern const struct cdevsw tap_cdevsw; |
314 | extern const struct cdevsw veriexec_cdevsw; |
315 | extern const struct cdevsw fw_cdevsw; |
316 | extern const struct cdevsw ucycom_cdevsw; |
317 | extern const struct cdevsw gpio_cdevsw; |
318 | extern const struct cdevsw utoppy_cdevsw; |
319 | extern const struct cdevsw bthub_cdevsw; |
320 | extern const struct cdevsw amr_cdevsw; |
321 | extern const struct cdevsw lockstat_cdevsw; |
322 | extern const struct cdevsw putter_cdevsw; |
323 | extern const struct cdevsw drm_cdevsw; |
324 | extern const struct cdevsw bio_cdevsw; |
325 | extern const struct cdevsw twa_cdevsw; |
326 | extern const struct cdevsw cpuctl_cdevsw; |
327 | extern const struct cdevsw pad_cdevsw; |
328 | extern const struct cdevsw video_cdevsw; |
329 | extern const struct cdevsw hdaudio_cdevsw; |
330 | extern const struct cdevsw uhso_cdevsw; |
331 | extern const struct cdevsw dtv_cdevsw; |
332 | extern const struct cdevsw iic_cdevsw; |
333 | extern const struct cdevsw tpm_cdevsw; |
334 | extern const struct cdevsw mfi_cdevsw; |
335 | extern const struct cdevsw nvme_cdevsw; |
336 | |
337 | const struct cdevsw *cdevsw0[] = { |
338 | &cons_cdevsw, // 0 |
339 | &ctty_cdevsw, // 1 |
340 | &mem_cdevsw, // 2 |
341 | &wd_cdevsw, // 3 |
342 | &swap_cdevsw, // 4 |
343 | &pts_cdevsw, // 5 |
344 | &ptc_cdevsw, // 6 |
345 | &log_cdevsw, // 7 |
346 | &com_cdevsw, // 8 |
347 | &fd_cdevsw, // 9 |
348 | NULL, // 10 |
349 | NULL, // 11 |
350 | NULL, // 12 |
351 | &sd_cdevsw, // 13 |
352 | &st_cdevsw, // 14 |
353 | &cd_cdevsw, // 15 |
354 | &lpt_cdevsw, // 16 |
355 | &ch_cdevsw, // 17 |
356 | &ccd_cdevsw, // 18 |
357 | &ss_cdevsw, // 19 |
358 | &uk_cdevsw, // 20 |
359 | NULL, // 21 |
360 | &filedesc_cdevsw, // 22 |
361 | &bpf_cdevsw, // 23 |
362 | &md_cdevsw, // 24 |
363 | NULL, // 25 |
364 | NULL, // 26 |
365 | NULL, // 27 |
366 | NULL, // 28 |
367 | NULL, // 29 |
368 | NULL, // 30 |
369 | NULL, // 31 |
370 | NULL, // 32 |
371 | NULL, // 33 |
372 | NULL, // 34 |
373 | NULL, // 35 |
374 | NULL, // 36 |
375 | NULL, // 37 |
376 | &cy_cdevsw, // 38 |
377 | NULL, // 39 |
378 | &tun_cdevsw, // 40 |
379 | &vnd_cdevsw, // 41 |
380 | &audio_cdevsw, // 42 |
381 | NULL, // 43 |
382 | &ipl_cdevsw, // 44 |
383 | NULL, // 45 |
384 | &rnd_cdevsw, // 46 |
385 | &wsdisplay_cdevsw, // 47 |
386 | &wskbd_cdevsw, // 48 |
387 | &wsmouse_cdevsw, // 49 |
388 | NULL, // 50 |
389 | NULL, // 51 |
390 | NULL, // 52 |
391 | NULL, // 53 |
392 | NULL, // 54 |
393 | &usb_cdevsw, // 55 |
394 | &uhid_cdevsw, // 56 |
395 | &ulpt_cdevsw, // 57 |
396 | &midi_cdevsw, // 58 |
397 | &sequencer_cdevsw, // 59 |
398 | &vcoda_cdevsw, // 60 |
399 | &scsibus_cdevsw, // 61 |
400 | &raid_cdevsw, // 62 |
401 | &esh_cdevsw, // 63 |
402 | &ugen_cdevsw, // 64 |
403 | &wsmux_cdevsw, // 65 |
404 | &ucom_cdevsw, // 66 |
405 | &sysmon_cdevsw, // 67 |
406 | NULL, // 68 |
407 | &ld_cdevsw, // 69 |
408 | &urio_cdevsw, // 70 |
409 | &bktr_cdevsw, // 71 |
410 | NULL, // 72 |
411 | &cz_cdevsw, // 73 |
412 | &ses_cdevsw, // 74 |
413 | NULL, // 75 |
414 | &iop_cdevsw, // 76 |
415 | NULL, // 77 |
416 | &mlx_cdevsw, // 78 |
417 | &clockctl_cdevsw, // 79 |
418 | NULL, // 80 |
419 | &cgd_cdevsw, // 81 |
420 | &agp_cdevsw, // 82 |
421 | &pci_cdevsw, // 83 |
422 | &irframe_cdevsw, // 84 |
423 | &ksyms_cdevsw, // 85 |
424 | &wsfont_cdevsw, // 86 |
425 | &mly_cdevsw, // 87 |
426 | NULL, // 88 |
427 | &joy_cdevsw, // 89 |
428 | &cir_cdevsw, // 90 |
429 | &radio_cdevsw, // 91 |
430 | NULL, // 92 |
431 | NULL, // 93 |
432 | NULL, // 94 |
433 | NULL, // 95 |
434 | &dpt_cdevsw, // 96 |
435 | &twe_cdevsw, // 97 |
436 | &nsmb_cdevsw, // 98 |
437 | NULL, // 99 |
438 | NULL, // 100 |
439 | NULL, // 101 |
440 | NULL, // 102 |
441 | NULL, // 103 |
442 | NULL, // 104 |
443 | NULL, // 105 |
444 | NULL, // 106 |
445 | NULL, // 107 |
446 | NULL, // 108 |
447 | NULL, // 109 |
448 | NULL, // 110 |
449 | NULL, // 111 |
450 | NULL, // 112 |
451 | NULL, // 113 |
452 | NULL, // 114 |
453 | NULL, // 115 |
454 | NULL, // 116 |
455 | NULL, // 117 |
456 | NULL, // 118 |
457 | NULL, // 119 |
458 | NULL, // 120 |
459 | NULL, // 121 |
460 | NULL, // 122 |
461 | NULL, // 123 |
462 | NULL, // 124 |
463 | NULL, // 125 |
464 | NULL, // 126 |
465 | NULL, // 127 |
466 | NULL, // 128 |
467 | NULL, // 129 |
468 | NULL, // 130 |
469 | NULL, // 131 |
470 | NULL, // 132 |
471 | NULL, // 133 |
472 | NULL, // 134 |
473 | NULL, // 135 |
474 | NULL, // 136 |
475 | NULL, // 137 |
476 | NULL, // 138 |
477 | NULL, // 139 |
478 | NULL, // 140 |
479 | NULL, // 141 |
480 | NULL, // 142 |
481 | NULL, // 143 |
482 | NULL, // 144 |
483 | NULL, // 145 |
484 | NULL, // 146 |
485 | NULL, // 147 |
486 | NULL, // 148 |
487 | NULL, // 149 |
488 | NULL, // 150 |
489 | NULL, // 151 |
490 | NULL, // 152 |
491 | NULL, // 153 |
492 | NULL, // 154 |
493 | NULL, // 155 |
494 | NULL, // 156 |
495 | NULL, // 157 |
496 | NULL, // 158 |
497 | NULL, // 159 |
498 | &crypto_cdevsw, // 160 |
499 | NULL, // 161 |
500 | NULL, // 162 |
501 | &fss_cdevsw, // 163 |
502 | NULL, // 164 |
503 | &ptm_cdevsw, // 165 |
504 | &atabus_cdevsw, // 166 |
505 | &drvctl_cdevsw, // 167 |
506 | &dk_cdevsw, // 168 |
507 | &tap_cdevsw, // 169 |
508 | &veriexec_cdevsw, // 170 |
509 | &fw_cdevsw, // 171 |
510 | &ucycom_cdevsw, // 172 |
511 | &gpio_cdevsw, // 173 |
512 | &utoppy_cdevsw, // 174 |
513 | &bthub_cdevsw, // 175 |
514 | &amr_cdevsw, // 176 |
515 | &lockstat_cdevsw, // 177 |
516 | &putter_cdevsw, // 178 |
517 | NULL, // 179 |
518 | &drm_cdevsw, // 180 |
519 | &bio_cdevsw, // 181 |
520 | NULL, // 182 |
521 | NULL, // 183 |
522 | NULL, // 184 |
523 | NULL, // 185 |
524 | NULL, // 186 |
525 | &twa_cdevsw, // 187 |
526 | &cpuctl_cdevsw, // 188 |
527 | &pad_cdevsw, // 189 |
528 | NULL, // 190 |
529 | NULL, // 191 |
530 | NULL, // 192 |
531 | &video_cdevsw, // 193 |
532 | NULL, // 194 |
533 | &hdaudio_cdevsw, // 195 |
534 | &uhso_cdevsw, // 196 |
535 | NULL, // 197 |
536 | NULL, // 198 |
537 | NULL, // 199 |
538 | &dtv_cdevsw, // 200 |
539 | &iic_cdevsw, // 201 |
540 | NULL, // 202 |
541 | NULL, // 203 |
542 | &tpm_cdevsw, // 204 |
543 | &mfi_cdevsw, // 205 |
544 | NULL, // 206 |
545 | NULL, // 207 |
546 | NULL, // 208 |
547 | NULL, // 209 |
548 | NULL, // 210 |
549 | NULL, // 211 |
550 | NULL, // 212 |
551 | NULL, // 213 |
552 | NULL, // 214 |
553 | NULL, // 215 |
554 | NULL, // 216 |
555 | NULL, // 217 |
556 | NULL, // 218 |
557 | NULL, // 219 |
558 | NULL, // 220 |
559 | NULL, // 221 |
560 | NULL, // 222 |
561 | NULL, // 223 |
562 | NULL, // 224 |
563 | NULL, // 225 |
564 | NULL, // 226 |
565 | NULL, // 227 |
566 | NULL, // 228 |
567 | NULL, // 229 |
568 | NULL, // 230 |
569 | NULL, // 231 |
570 | NULL, // 232 |
571 | NULL, // 233 |
572 | NULL, // 234 |
573 | NULL, // 235 |
574 | NULL, // 236 |
575 | NULL, // 237 |
576 | NULL, // 238 |
577 | NULL, // 239 |
578 | NULL, // 240 |
579 | NULL, // 241 |
580 | NULL, // 242 |
581 | NULL, // 243 |
582 | NULL, // 244 |
583 | NULL, // 245 |
584 | NULL, // 246 |
585 | NULL, // 247 |
586 | NULL, // 248 |
587 | NULL, // 249 |
588 | NULL, // 250 |
589 | NULL, // 251 |
590 | NULL, // 252 |
591 | NULL, // 253 |
592 | NULL, // 254 |
593 | NULL, // 255 |
594 | NULL, // 256 |
595 | NULL, // 257 |
596 | NULL, // 258 |
597 | NULL, // 259 |
598 | NULL, // 260 |
599 | NULL, // 261 |
600 | NULL, // 262 |
601 | NULL, // 263 |
602 | NULL, // 264 |
603 | NULL, // 265 |
604 | NULL, // 266 |
605 | NULL, // 267 |
606 | NULL, // 268 |
607 | NULL, // 269 |
608 | NULL, // 270 |
609 | NULL, // 271 |
610 | NULL, // 272 |
611 | NULL, // 273 |
612 | NULL, // 274 |
613 | NULL, // 275 |
614 | NULL, // 276 |
615 | NULL, // 277 |
616 | NULL, // 278 |
617 | NULL, // 279 |
618 | NULL, // 280 |
619 | NULL, // 281 |
620 | NULL, // 282 |
621 | NULL, // 283 |
622 | NULL, // 284 |
623 | NULL, // 285 |
624 | NULL, // 286 |
625 | NULL, // 287 |
626 | NULL, // 288 |
627 | NULL, // 289 |
628 | NULL, // 290 |
629 | NULL, // 291 |
630 | NULL, // 292 |
631 | NULL, // 293 |
632 | NULL, // 294 |
633 | NULL, // 295 |
634 | NULL, // 296 |
635 | NULL, // 297 |
636 | NULL, // 298 |
637 | NULL, // 299 |
638 | NULL, // 300 |
639 | NULL, // 301 |
640 | NULL, // 302 |
641 | NULL, // 303 |
642 | NULL, // 304 |
643 | NULL, // 305 |
644 | NULL, // 306 |
645 | NULL, // 307 |
646 | NULL, // 308 |
647 | NULL, // 309 |
648 | NULL, // 310 |
649 | NULL, // 311 |
650 | NULL, // 312 |
651 | NULL, // 313 |
652 | NULL, // 314 |
653 | NULL, // 315 |
654 | NULL, // 316 |
655 | NULL, // 317 |
656 | NULL, // 318 |
657 | NULL, // 319 |
658 | NULL, // 320 |
659 | NULL, // 321 |
660 | NULL, // 322 |
661 | NULL, // 323 |
662 | NULL, // 324 |
663 | NULL, // 325 |
664 | NULL, // 326 |
665 | NULL, // 327 |
666 | NULL, // 328 |
667 | NULL, // 329 |
668 | NULL, // 330 |
669 | NULL, // 331 |
670 | NULL, // 332 |
671 | NULL, // 333 |
672 | NULL, // 334 |
673 | NULL, // 335 |
674 | NULL, // 336 |
675 | NULL, // 337 |
676 | NULL, // 338 |
677 | NULL, // 339 |
678 | NULL, // 340 |
679 | &nvme_cdevsw, // 341 |
680 | }; |
681 | |
682 | const struct cdevsw **cdevsw = cdevsw0; |
683 | const int sys_cdevsws = __arraycount(cdevsw0); |
684 | int max_cdevsws = __arraycount(cdevsw0); |
685 | |
686 | /* device conversion table */ |
687 | struct devsw_conv devsw_conv0[] = { |
688 | { "crypto" , -1, 160, DEVNODE_SINGLE, 0, { 0, 0 }}, |
689 | { "pf" , -1, 161, DEVNODE_SINGLE, 0, { 0, 0 }}, |
690 | { "fss" , 163, 163, DEVNODE_VECTOR, 0, { 4, 0 }}, |
691 | { "pps" , -1, 164, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
692 | { "ptm" , -1, 165, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
693 | { "atabus" , -1, 166, DEVNODE_VECTOR, 0, { 4, 0 }}, |
694 | { "drvctl" , -1, 167, DEVNODE_SINGLE, 0, { 0, 0 }}, |
695 | { "dk" , 168, 168, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
696 | { "tap" , -1, 169, DEVNODE_VECTOR, 0, { 4, 0 }}, |
697 | { "veriexec" , -1, 170, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
698 | { "fw" , -1, 171, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
699 | { "ucycom" , -1, 172, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
700 | { "gpio" , -1, 173, DEVNODE_VECTOR, DEVNODE_FLAG_LINKZERO, { 8, 0 }}, |
701 | { "utoppy" , -1, 174, DEVNODE_VECTOR, 0, { 2, 0 }}, |
702 | { "bthub" , -1, 175, DEVNODE_SINGLE, 0, { 0, 0 }}, |
703 | { "amr" , -1, 176, DEVNODE_VECTOR, 0, { 1, 0 }}, |
704 | { "lockstat" , -1, 177, DEVNODE_SINGLE, 0, { 0, 0 }}, |
705 | { "putter" , -1, 178, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
706 | { "srt" , -1, 179, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
707 | { "drm" , -1, 180, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
708 | { "bio" , -1, 181, DEVNODE_SINGLE, 0, { 0, 0 }}, |
709 | { "altmem" , 182, 182, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
710 | { "twa" , -1, 187, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
711 | { "cpuctl" , -1, 188, DEVNODE_SINGLE, 0, { 0, 0 }}, |
712 | { "pad" , -1, 189, DEVNODE_VECTOR, DEVNODE_FLAG_LINKZERO, { 4, 0 }}, |
713 | { "zfs" , 190, 190, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
714 | { "tprof" , -1, 191, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
715 | { "isv" , -1, 192, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
716 | { "video" , -1, 193, DEVNODE_VECTOR, 0, { 4, 0 }}, |
717 | { "dm" , 169, 194, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
718 | { "hdaudio" , -1, 195, DEVNODE_VECTOR, 0, { 4, 0 }}, |
719 | { "uhso" , -1, 196, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
720 | { "rumpblk" , 197, 197, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
721 | { "npf" , -1, 198, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
722 | { "flash" , 199, 199, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
723 | { "dtv" , -1, 200, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
724 | { "iic" , -1, 201, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
725 | { "filemon" , -1, 202, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
726 | { "iscsi" , -1, 203, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
727 | { "tpm" , -1, 204, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
728 | { "mfi" , -1, 205, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
729 | { "seeprom" , -1, 206, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
730 | { "dtrace" , -1, 207, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
731 | { "spiflash" , 208, 208, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
732 | { "lua" , -1, 209, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
733 | { "hdmicec" , -1, 340, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
734 | { "nvme" , -1, 341, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
735 | { "cons" , -1, 0, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
736 | { "ctty" , -1, 1, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
737 | { "mem" , -1, 2, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
738 | { "wd" , 0, 3, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
739 | { "swap" , 1, 4, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
740 | { "pts" , -1, 5, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
741 | { "ptc" , -1, 6, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
742 | { "log" , -1, 7, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
743 | { "com" , -1, 8, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
744 | { "fd" , 2, 9, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
745 | { "wt" , 3, 10, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
746 | { "pc" , -1, 12, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
747 | { "sd" , 4, 13, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
748 | { "st" , 5, 14, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
749 | { "cd" , 6, 15, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
750 | { "lpt" , -1, 16, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
751 | { "ch" , -1, 17, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
752 | { "ccd" , 16, 18, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
753 | { "ss" , -1, 19, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
754 | { "uk" , -1, 20, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
755 | { "filedesc" , -1, 22, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
756 | { "bpf" , -1, 23, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
757 | { "md" , 17, 24, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
758 | { "spkr" , -1, 27, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
759 | { "cy" , -1, 38, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
760 | { "mcd" , 7, 39, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
761 | { "tun" , -1, 40, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
762 | { "vnd" , 14, 41, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
763 | { "audio" , -1, 42, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
764 | { "svr4_net" , -1, 43, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
765 | { "ipl" , -1, 44, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
766 | { "satlink" , -1, 45, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
767 | { "rnd" , -1, 46, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
768 | { "wsdisplay" , -1, 47, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
769 | { "wskbd" , -1, 48, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
770 | { "wsmouse" , -1, 49, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
771 | { "isdn" , -1, 50, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
772 | { "isdnctl" , -1, 51, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
773 | { "isdnbchan" , -1, 52, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
774 | { "isdntrc" , -1, 53, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
775 | { "isdntel" , -1, 54, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
776 | { "usb" , -1, 55, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
777 | { "uhid" , -1, 56, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
778 | { "ulpt" , -1, 57, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
779 | { "midi" , -1, 58, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
780 | { "sequencer" , -1, 59, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
781 | { "vcoda" , -1, 60, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
782 | { "scsibus" , -1, 61, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
783 | { "raid" , 18, 62, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
784 | { "esh" , -1, 63, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
785 | { "ugen" , -1, 64, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
786 | { "wsmux" , -1, 65, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
787 | { "ucom" , -1, 66, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
788 | { "sysmon" , -1, 67, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
789 | { "ld" , 19, 69, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
790 | { "urio" , -1, 70, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
791 | { "bktr" , -1, 71, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
792 | { "cz" , -1, 73, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
793 | { "ses" , -1, 74, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
794 | { "uscanner" , -1, 75, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
795 | { "iop" , -1, 76, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
796 | { "altq" , -1, 77, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
797 | { "mlx" , -1, 78, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
798 | { "clockctl" , -1, 79, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
799 | { "cgd" , 20, 81, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
800 | { "agp" , -1, 82, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
801 | { "pci" , -1, 83, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
802 | { "irframe" , -1, 84, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
803 | { "ksyms" , -1, 85, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
804 | { "wsfont" , -1, 86, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
805 | { "mly" , -1, 87, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
806 | { "dpti" , -1, 88, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
807 | { "joy" , -1, 89, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
808 | { "cir" , -1, 90, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
809 | { "radio" , -1, 91, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
810 | { "kttcp" , -1, 92, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
811 | { "dpt" , -1, 96, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
812 | { "twe" , -1, 97, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
813 | { "nsmb" , -1, 98, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
814 | { "xenevt" , -1, 141, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
815 | { "xbd" , 142, 142, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
816 | { "xencons" , -1, 143, DEVNODE_DONTBOTHER, 0, { 0, 0 }}, |
817 | }; |
818 | |
819 | struct devsw_conv *devsw_conv = devsw_conv0; |
820 | int max_devsw_convs = __arraycount(devsw_conv0); |
821 | |
822 | const dev_t swapdev = makedev(1, 0); |
823 | const dev_t zerodev = makedev(2, DEV_ZERO); |
824 | |
825 | /* mem_no is only used in iskmemdev() */ |
826 | const int mem_no = 2; |
827 | |