xref: /openbsd-src/sys/dev/usb/files.usb (revision ce7e0fc6a9d74d25b78fb6ad846387717f5172b6)
1#	$OpenBSD: files.usb,v 1.25 2002/05/09 15:06:29 nate Exp $
2#	$NetBSD: files.usb,v 1.16 2000/02/14 20:29:54 augustss Exp $
3#
4# Config file and device description for machine-independent USB code.
5# Included by ports that need it.  Ports that use it must provide
6# their own "major" declarations for the appropriate devices.
7
8device	usb { }
9attach	usb at usbus
10file	dev/usb/usb.c			usb		needs-flag
11file	dev/usb/usbdi.c			usb
12file	dev/usb/usbdi_util.c		usb
13file	dev/usb/usb_mem.c		usb
14file	dev/usb/usb_subr.c		usb
15file	dev/usb/usb_quirks.c		usb
16
17# Hub driver
18device	uhub { [port = -1], [configuration = -1], [interface = -1],
19               [vendor = -1], [product = -1], [release = -1] }
20attach	uhub at usb
21file	dev/usb/uhub.c			usb
22
23attach	uhub at uhub with uhub_uhub
24
25# Modem and com serial port "bus"
26define	ucombus {[ portno = -1 ]}
27
28# EZ-USB firmware loader
29define	ezload
30file	dev/usb/ezload.c		ezload
31
32# Audio devices
33device	uaudio: audio, auconv, mulaw
34attach	uaudio at uhub
35file	dev/usb/uaudio.c		uaudio
36
37# Modem and com serial port
38device	ucom
39attach	ucom at ucombus
40file	dev/usb/ucom.c			ucom | ucombus	needs-flag
41
42# Generic devices
43device	ugen
44attach	ugen at uhub
45file	dev/usb/ugen.c			ugen		needs-flag
46
47# HID
48# HID "bus"
49define	uhidbus {[ reportid = -1 ]}
50
51# HID processing
52define	hid
53file	dev/usb/hid.c			hid
54
55# HID root device for multiple report IDs
56device	uhidev: hid, uhidbus
57attach	uhidev at uhub
58file	dev/usb/uhidev.c		uhidev
59
60# Generic HID devices
61device	uhid: hid
62attach	uhid at uhidbus
63file	dev/usb/uhid.c			uhid			needs-flag
64
65# Keyboards
66device	ukbd: hid, wskbddev
67attach	ukbd at uhidbus
68file	dev/usb/ukbd.c			ukbd			needs-flag
69file	dev/usb/ukbdmap.c		ukbd
70
71# Mice
72device	ums: hid, wsmousedev
73attach	ums at uhidbus
74file	dev/usb/ums.c			ums
75
76
77# Printers
78device	ulpt
79attach	ulpt at uhub
80file	dev/usb/ulpt.c			ulpt		needs-flag
81
82# Mass storage
83device	umass: scsi, atapi
84attach	umass at uhub
85file	dev/usb/umass.c			umass
86
87# Modems
88device	umodem: ucombus
89attach	umodem at uhub
90file	dev/usb/umodem.c		umodem
91
92# Diamond Multimedia Rio 500
93device	urio
94attach	urio at uhub
95file	dev/usb/urio.c			urio		needs-flag
96
97# Handspring Visor
98device	uvisor: ucombus
99attach	uvisor at uhub
100file	dev/usb/uvisor.c		uvisor
101
102# YAP firmware loader
103device	uyap: ezload
104attach	uyap at uhub
105file	dev/usb/uyap.c			uyap
106
107# Ethernet adapters
108# ADMtek AN986 Pegasus
109device	aue: ether, ifnet, mii, ifmedia
110attach	aue at uhub
111file	dev/usb/if_aue.c		aue
112
113# CATC USB-EL1201A
114device	cue: ether, ifnet, ifmedia
115attach	cue at uhub
116file	dev/usb/if_cue.c		cue
117
118# Kawasaki LSI KL5KUSB101B
119device	kue: ether, ifnet, ifmedia
120attach	kue at uhub
121file	dev/usb/if_kue.c		kue
122
123# Prolific PL2302 host-host
124device	upl: ifnet
125attach	upl at uhub
126file	dev/usb/if_upl.c		upl
127
128# Realtek RTL8150L(M)
129device	url: ether, ifnet, mii
130attach	url at uhub
131file	dev/usb/if_url.c		url
132
133
134# Serial drivers
135# FTDI serial driver
136device	uftdi: ucombus
137attach	uftdi at uhub
138file	dev/usb/uftdi.c			uftdi
139
140# Prolific PL2303 serial driver
141device  uplcom: ucombus
142attach  uplcom at uhub
143file    dev/usb/uplcom.c                uplcom
144
145# Scanners
146device	uscanner
147attach	uscanner at uhub
148file	dev/usb/uscanner.c		uscanner	needs-flag
149
150# Avision SCSI over USB, HP5300
151device	usscanner: scsi
152attach	usscanner at uhub
153file	dev/usb/usscanner.c		usscanner
154