aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci.h
diff options
context:
space:
mode:
authorSarah Sharp <sarah.a.sharp@linux.intel.com>2009-04-29 22:05:20 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-06-16 00:44:50 -0400
commit23e3be113f42790736319c049c78e5f9a4394c02 (patch)
treebdbc5fe6350d60202ed04e70a756cade8c92c596 /drivers/usb/host/xhci.h
parent06e7a1487b61e1ae909c4a4c264b4428c55beb7e (diff)
USB: xhci: Avoid global namespace pollution.
Make all globally visible functions start with xhci_ and mark functions as static if they're only called within the same C file. Fix some long lines while we're at it. Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/xhci.h')
-rw-r--r--drivers/usb/host/xhci.h24
1 files changed, 14 insertions, 10 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h
index 13c9166e758a..df8778e1cfc6 100644
--- a/drivers/usb/host/xhci.h
+++ b/drivers/usb/host/xhci.h
@@ -1130,18 +1130,22 @@ int xhci_check_bandwidth(struct usb_hcd *hcd, struct usb_device *udev);
1130void xhci_reset_bandwidth(struct usb_hcd *hcd, struct usb_device *udev); 1130void xhci_reset_bandwidth(struct usb_hcd *hcd, struct usb_device *udev);
1131 1131
1132/* xHCI ring, segment, TRB, and TD functions */ 1132/* xHCI ring, segment, TRB, and TD functions */
1133dma_addr_t trb_virt_to_dma(struct xhci_segment *seg, union xhci_trb *trb); 1133dma_addr_t xhci_trb_virt_to_dma(struct xhci_segment *seg, union xhci_trb *trb);
1134void ring_cmd_db(struct xhci_hcd *xhci); 1134void xhci_ring_cmd_db(struct xhci_hcd *xhci);
1135void *setup_one_noop(struct xhci_hcd *xhci); 1135void *xhci_setup_one_noop(struct xhci_hcd *xhci);
1136void xhci_handle_event(struct xhci_hcd *xhci); 1136void xhci_handle_event(struct xhci_hcd *xhci);
1137void set_hc_event_deq(struct xhci_hcd *xhci); 1137void xhci_set_hc_event_deq(struct xhci_hcd *xhci);
1138int queue_slot_control(struct xhci_hcd *xhci, u32 trb_type, u32 slot_id); 1138int xhci_queue_slot_control(struct xhci_hcd *xhci, u32 trb_type, u32 slot_id);
1139int queue_address_device(struct xhci_hcd *xhci, dma_addr_t in_ctx_ptr, u32 slot_id); 1139int xhci_queue_address_device(struct xhci_hcd *xhci, dma_addr_t in_ctx_ptr,
1140int queue_stop_endpoint(struct xhci_hcd *xhci, int slot_id, 1140 u32 slot_id);
1141int xhci_queue_stop_endpoint(struct xhci_hcd *xhci, int slot_id,
1141 unsigned int ep_index); 1142 unsigned int ep_index);
1142int queue_ctrl_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index); 1143int xhci_queue_ctrl_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb,
1143int queue_bulk_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index); 1144 int slot_id, unsigned int ep_index);
1144int queue_configure_endpoint(struct xhci_hcd *xhci, dma_addr_t in_ctx_ptr, u32 slot_id); 1145int xhci_queue_bulk_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb,
1146 int slot_id, unsigned int ep_index);
1147int xhci_queue_configure_endpoint(struct xhci_hcd *xhci, dma_addr_t in_ctx_ptr,
1148 u32 slot_id);
1145 1149
1146/* xHCI roothub code */ 1150/* xHCI roothub code */
1147int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, 1151int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex,