1/* $FreeBSD: head/sys/dev/usb/usb_hub.c 212122 2010-09-01 23:47:53Z thompsa $ */ |
2/*- 3 * Copyright (c) 1998 The NetBSD Foundation, Inc. All rights reserved. 4 * Copyright (c) 1998 Lennart Augustsson. All rights reserved. 5 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: --- 155 unchanged lines hidden (view full) --- 165static driver_t uhub_driver = { 166 .name = "uhub", 167 .methods = uhub_methods, 168 .size = sizeof(struct uhub_softc) 169}; 170 171DRIVER_MODULE(uhub, usbus, uhub_driver, uhub_devclass, 0, 0); 172DRIVER_MODULE(uhub, uhub, uhub_driver, uhub_devclass, NULL, 0); |
173MODULE_VERSION(uhub, 1); |
174 175static void 176uhub_intr_callback(struct usb_xfer *xfer, usb_error_t error) 177{ 178 struct uhub_softc *sc = usbd_xfer_softc(xfer); 179 180 switch (USB_GET_STATE(xfer)) { 181 case USB_ST_TRANSFERRED: --- 1962 unchanged lines hidden --- |