usb_hub.c (187171) | usb_hub.c (187173) |
---|---|
1/* $FreeBSD: head/sys/dev/usb2/core/usb2_hub.c 187171 2009-01-13 19:02:50Z thompsa $ */ | 1/* $FreeBSD: head/sys/dev/usb2/core/usb2_hub.c 187173 2009-01-13 19:03:12Z 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: --- 1414 unchanged lines hidden (view full) --- 1424 [UE_INTERRUPT] = USB_HW_POWER_INTERRUPT, 1425 [UE_ISOCHRONOUS] = USB_HW_POWER_ISOC, 1426 }; 1427 struct usb2_device *udev; 1428 uint8_t needs_explore; 1429 uint8_t needs_hw_power; 1430 uint8_t xfer_type; 1431 | 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: --- 1414 unchanged lines hidden (view full) --- 1424 [UE_INTERRUPT] = USB_HW_POWER_INTERRUPT, 1425 [UE_ISOCHRONOUS] = USB_HW_POWER_ISOC, 1426 }; 1427 struct usb2_device *udev; 1428 uint8_t needs_explore; 1429 uint8_t needs_hw_power; 1430 uint8_t xfer_type; 1431 |
1432 udev = xfer->udev; | 1432 udev = xfer->xroot->udev; |
1433 1434 if (udev->device_index == USB_ROOT_HUB_ADDR) { 1435 /* no power save for root HUB */ 1436 return; 1437 } 1438 USB_BUS_LOCK(udev->bus); 1439 1440 xfer_type = xfer->pipe->edesc->bmAttributes & UE_XFERTYPE; --- 395 unchanged lines hidden --- | 1433 1434 if (udev->device_index == USB_ROOT_HUB_ADDR) { 1435 /* no power save for root HUB */ 1436 return; 1437 } 1438 USB_BUS_LOCK(udev->bus); 1439 1440 xfer_type = xfer->pipe->edesc->bmAttributes & UE_XFERTYPE; --- 395 unchanged lines hidden --- |