Lines Matching +full:bam +full:- +full:v1

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
107 return ("Intel 631XESB/632XESB/3100 USB controller USB-1");
110 return ("Intel 631XESB/632XESB/3100 USB controller USB-2");
113 return ("Intel 631XESB/632XESB/3100 USB controller USB-3");
116 return ("Intel 631XESB/632XESB/3100 USB controller USB-4");
131 return ("Intel 82801BA/BAM (ICH2) USB controller USB-A");
134 return ("Intel 82801BA/BAM (ICH2) USB controller USB-B");
137 return ("Intel 82801CA/CAM (ICH3) USB controller USB-A");
140 return ("Intel 82801CA/CAM (ICH3) USB controller USB-B");
143 return ("Intel 82801CA/CAM (ICH3) USB controller USB-C");
146 return ("Intel 82801DB (ICH4) USB controller USB-A");
149 return ("Intel 82801DB (ICH4) USB controller USB-B");
152 return ("Intel 82801DB (ICH4) USB controller USB-C");
155 return ("Intel 82801EB (ICH5) USB controller USB-A");
158 return ("Intel 82801EB (ICH5) USB controller USB-B");
161 return ("Intel 82801EB (ICH5) USB controller USB-C");
164 return ("Intel 82801EB (ICH5) USB controller USB-D");
167 return ("Intel 6300ESB USB controller USB-A");
170 return ("Intel 6300ESB USB controller USB-B");
173 return ("Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-A");
176 return ("Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-B");
179 return ("Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-C");
182 return ("Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-D");
185 return ("Intel 82801G (ICH7) USB controller USB-A");
187 return ("Intel 82801G (ICH7) USB controller USB-B");
189 return ("Intel 82801G (ICH7) USB controller USB-C");
191 return ("Intel 82801G (ICH7) USB controller USB-D");
194 return ("Intel 82801H (ICH8) USB controller USB-A");
196 return ("Intel 82801H (ICH8) USB controller USB-B");
198 return ("Intel 82801H (ICH8) USB controller USB-C");
200 return ("Intel 82801H (ICH8) USB controller USB-D");
202 return ("Intel 82801H (ICH8) USB controller USB-E");
216 return ("Intel 82801JI (ICH10) USB controller USB-A");
218 return ("Intel 82801JI (ICH10) USB controller USB-B");
220 return ("Intel 82801JI (ICH10) USB controller USB-C");
222 return ("Intel 82801JI (ICH10) USB controller USB-D");
224 return ("Intel 82801JI (ICH10) USB controller USB-E");
226 return ("Intel 82801JI (ICH10) USB controller USB-F");
228 return ("Intel 82801JD (ICH10) USB controller USB-A");
230 return ("Intel 82801JD (ICH10) USB controller USB-B");
232 return ("Intel 82801JD (ICH10) USB controller USB-C");
234 return ("Intel 82801JD (ICH10) USB controller USB-D");
236 return ("Intel 82801JD (ICH10) USB controller USB-E");
238 return ("Intel 82801JD (ICH10) USB controller USB-F");
256 return ("Zhaoxin ZX-100/ZX-200/ZX-E USB controller");
291 sc->sc_bus.parent = self;
292 sc->sc_bus.devices = sc->sc_devices;
293 sc->sc_bus.devices_max = UHCI_MAX_DEVICES;
294 sc->sc_bus.dma_bits = 32;
297 if (usb_bus_mem_alloc_all(&sc->sc_bus, USB_GET_DMA_TAG(self),
301 sc->sc_dev = self;
306 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_IOPORT, &rid,
308 if (!sc->sc_io_res) {
312 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res);
313 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res);
314 sc->sc_io_size = rman_get_size(sc->sc_io_res);
317 bus_space_write_2(sc->sc_io_tag, sc->sc_io_hdl, UHCI_INTR, 0);
320 sc->sc_irq_res = bus_alloc_resource_any(self, SYS_RES_IRQ, &rid,
322 if (sc->sc_irq_res == NULL) {
326 sc->sc_bus.bdev = device_add_child(self, "usbus", DEVICE_UNIT_ANY);
327 if (!sc->sc_bus.bdev) {
331 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus);
337 device_set_desc(sc->sc_bus.bdev, uhci_pci_match(self));
340 sprintf(sc->sc_vendor, "Intel");
343 sprintf(sc->sc_vendor, "HP");
346 sprintf(sc->sc_vendor, "VIA");
349 sprintf(sc->sc_vendor, "VMware");
352 sprintf(sc->sc_vendor, "Zhaoxin");
359 sprintf(sc->sc_vendor, "(0x%04x)", pci_get_vendor(self));
364 sc->sc_bus.usbrev = USB_REV_PRE_1_0;
367 sc->sc_bus.usbrev = USB_REV_1_0;
371 device_printf(self, "USB revision is unknown. Assuming v1.1.\n");
372 sc->sc_bus.usbrev = USB_REV_1_1;
376 err = bus_setup_intr(self, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE,
377 NULL, (driver_intr_t *)uhci_interrupt, sc, &sc->sc_intr_hdl);
381 sc->sc_intr_hdl = NULL;
400 err = device_probe_and_attach(sc->sc_bus.bdev);
425 if (sc->sc_io_res) {
426 USB_BUS_LOCK(&sc->sc_bus);
431 USB_BUS_UNLOCK(&sc->sc_bus);
435 if (sc->sc_irq_res && sc->sc_intr_hdl) {
436 int err = bus_teardown_intr(self, sc->sc_irq_res, sc->sc_intr_hdl);
443 sc->sc_intr_hdl = NULL;
445 if (sc->sc_irq_res) {
446 bus_release_resource(self, SYS_RES_IRQ, 0, sc->sc_irq_res);
447 sc->sc_irq_res = NULL;
449 if (sc->sc_io_res) {
451 sc->sc_io_res);
452 sc->sc_io_res = NULL;
454 usb_bus_mem_free_all(&sc->sc_bus, &uhci_iterate_hw_softc);