usb_controller.h (215846) | usb_controller.h (228483) |
---|---|
1/* $FreeBSD: head/sys/dev/usb/usb_controller.h 215846 2010-11-25 22:56:26Z weongyo $ */ | 1/* $FreeBSD: head/sys/dev/usb/usb_controller.h 228483 2011-12-14 00:28:54Z hselasky $ */ |
2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 51 unchanged lines hidden (view full) --- 61 void (*endpoint_init) (struct usb_device *, 62 struct usb_endpoint_descriptor *, struct usb_endpoint *); 63 void (*xfer_setup) (struct usb_setup_params *); 64 void (*xfer_unsetup) (struct usb_xfer *); 65 void (*get_dma_delay) (struct usb_device *, uint32_t *); 66 void (*device_suspend) (struct usb_device *); 67 void (*device_resume) (struct usb_device *); 68 void (*set_hw_power) (struct usb_bus *); | 2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 51 unchanged lines hidden (view full) --- 61 void (*endpoint_init) (struct usb_device *, 62 struct usb_endpoint_descriptor *, struct usb_endpoint *); 63 void (*xfer_setup) (struct usb_setup_params *); 64 void (*xfer_unsetup) (struct usb_xfer *); 65 void (*get_dma_delay) (struct usb_device *, uint32_t *); 66 void (*device_suspend) (struct usb_device *); 67 void (*device_resume) (struct usb_device *); 68 void (*set_hw_power) (struct usb_bus *); |
69 | 69 void (*set_hw_power_sleep) (struct usb_bus *, uint32_t); |
70 /* 71 * The following flag is set if one or more control transfers are 72 * active: 73 */ 74#define USB_HW_POWER_CONTROL 0x01 75 /* 76 * The following flag is set if one or more bulk transfers are 77 * active: --- 9 unchanged lines hidden (view full) --- 87 * are active: 88 */ 89#define USB_HW_POWER_ISOC 0x08 90 /* 91 * The following flag is set if one or more non-root-HUB devices 92 * are present on the given USB bus: 93 */ 94#define USB_HW_POWER_NON_ROOT_HUB 0x10 | 70 /* 71 * The following flag is set if one or more control transfers are 72 * active: 73 */ 74#define USB_HW_POWER_CONTROL 0x01 75 /* 76 * The following flag is set if one or more bulk transfers are 77 * active: --- 9 unchanged lines hidden (view full) --- 87 * are active: 88 */ 89#define USB_HW_POWER_ISOC 0x08 90 /* 91 * The following flag is set if one or more non-root-HUB devices 92 * are present on the given USB bus: 93 */ 94#define USB_HW_POWER_NON_ROOT_HUB 0x10 |
95 /* 96 * The following flag is set if we are suspending 97 */ 98#define USB_HW_POWER_SUSPEND 0x20 99 /* 100 * The following flag is set if we are resuming 101 */ 102#define USB_HW_POWER_RESUME 0x40 103 /* 104 * The following flag is set if we are shutting down 105 */ 106#define USB_HW_POWER_SHUTDOWN 0x60 |
|
95 96 /* USB Device mode only - Mandatory */ 97 98 void (*get_hw_ep_profile) (struct usb_device *udev, const struct usb_hw_ep_profile **ppf, uint8_t ep_addr); 99 void (*set_stall) (struct usb_device *udev, struct usb_xfer *xfer, struct usb_endpoint *ep, uint8_t *did_stall); 100 101 /* USB Device mode mandatory. USB Host mode optional. */ 102 --- 123 unchanged lines hidden --- | 107 108 /* USB Device mode only - Mandatory */ 109 110 void (*get_hw_ep_profile) (struct usb_device *udev, const struct usb_hw_ep_profile **ppf, uint8_t ep_addr); 111 void (*set_stall) (struct usb_device *udev, struct usb_xfer *xfer, struct usb_endpoint *ep, uint8_t *did_stall); 112 113 /* USB Device mode mandatory. USB Host mode optional. */ 114 --- 123 unchanged lines hidden --- |