aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dma-debug.c
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2009-12-20 06:04:08 -0500
committerJaroslav Kysela <perex@perex.cz>2009-12-20 06:04:08 -0500
commit440b004cf953bec2bc8cd91c64ae707fd7e25327 (patch)
treea84ce240e80936b330da3bc7f5d2084a8d4d4e47 /lib/dma-debug.c
parent77623f62a919e729a5884c53c27a53b8a53ecb14 (diff)
ALSA: hda/realtek: Remove extra .capsrc_nids initialization for ALC889_INTEL
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'lib/dma-debug.c')
0 files changed, 0 insertions, 0 deletions
pan class="hl opt">, OTG_STATE_A_PERIPHERAL, OTG_STATE_A_WAIT_VFALL, OTG_STATE_A_VBUS_ERR, }; /* * the otg driver needs to interact with both device side and host side * usb controllers. it decides which controller is active at a given * moment, using the transceiver, ID signal, HNP and sometimes static * configuration information (including "board isn't wired for otg"). */ struct otg_transceiver { struct device *dev; const char *label; u8 default_a; enum usb_otg_state state; struct usb_bus *host; struct usb_gadget *gadget; /* to pass extra port status to the root hub */ u16 port_status; u16 port_change; /* bind/unbind the host controller */ int (*set_host)(struct otg_transceiver *otg, struct usb_bus *host); /* bind/unbind the peripheral controller */ int (*set_peripheral)(struct otg_transceiver *otg, struct usb_gadget *gadget); /* effective for B devices, ignored for A-peripheral */ int (*set_power)(struct otg_transceiver *otg, unsigned mA); /* for non-OTG B devices: set transceiver into suspend mode */ int (*set_suspend)(struct otg_transceiver *otg, int suspend); /* for B devices only: start session with A-Host */ int (*start_srp)(struct otg_transceiver *otg); /* start or continue HNP role switch */ int (*start_hnp)(struct otg_transceiver *otg); }; /* for board-specific init logic */ extern int otg_set_transceiver(struct otg_transceiver *); /* for usb host and peripheral controller drivers */ extern struct otg_transceiver *otg_get_transceiver(void); static inline int otg_start_hnp(struct otg_transceiver *otg) { return otg->start_hnp(otg); } /* for HCDs */ static inline int otg_set_host(struct otg_transceiver *otg, struct usb_bus *host) { return otg->set_host(otg, host); } /* for usb peripheral controller drivers */ static inline int otg_set_peripheral(struct otg_transceiver *otg, struct usb_gadget *periph) { return otg->set_peripheral(otg, periph); } static inline int otg_set_power(struct otg_transceiver *otg, unsigned mA) { return otg->set_power(otg, mA); } static inline int otg_set_suspend(struct otg_transceiver *otg, int suspend) { if (otg->set_suspend != NULL) return otg->set_suspend(otg, suspend); else return 0; } static inline int otg_start_srp(struct otg_transceiver *otg) { return otg->start_srp(otg); } /* for OTG controller drivers (and maybe other stuff) */ extern int usb_bus_start_enum(struct usb_bus *bus, unsigned port_num);