1/* $FreeBSD: head/sys/dev/usb/usb_hub.c 208010 2010-05-12 22:44:57Z 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);
173
174static void
175uhub_intr_callback(struct usb_xfer *xfer, usb_error_t error)
176{
177 struct uhub_softc *sc = usbd_xfer_softc(xfer);
178
179 switch (USB_GET_STATE(xfer)) {
180 case USB_ST_TRANSFERRED:
--- 1962 unchanged lines hidden ---
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);
173
174static void
175uhub_intr_callback(struct usb_xfer *xfer, usb_error_t error)
176{
177 struct uhub_softc *sc = usbd_xfer_softc(xfer);
178
179 switch (USB_GET_STATE(xfer)) {
180 case USB_ST_TRANSFERRED:
--- 1962 unchanged lines hidden ---