Changeset 3dd80f8 in mainline for uspace/drv/bus/usb/xhci/hc.h
- Timestamp:
- 2018-01-24T20:45:40Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 92a7b296
- Parents:
- 4db49344
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/hc.h
r4db49344 r3dd80f8 114 114 typedef struct xhci_device xhci_device_t; 115 115 116 int hc_init_mmio(xhci_hc_t *, const hw_res_list_parsed_t *);117 int hc_init_memory(xhci_hc_t *, ddf_dev_t *);118 int hc_claim(xhci_hc_t *, ddf_dev_t *);119 int hc_irq_code_gen(irq_code_t *, xhci_hc_t *, const hw_res_list_parsed_t *);120 int hc_start(xhci_hc_t *, bool);121 void hc_fini(xhci_hc_t *);116 extern int hc_init_mmio(xhci_hc_t *, const hw_res_list_parsed_t *); 117 extern int hc_init_memory(xhci_hc_t *, ddf_dev_t *); 118 extern int hc_claim(xhci_hc_t *, ddf_dev_t *); 119 extern int hc_irq_code_gen(irq_code_t *, xhci_hc_t *, const hw_res_list_parsed_t *); 120 extern int hc_start(xhci_hc_t *, bool); 121 extern void hc_fini(xhci_hc_t *); 122 122 123 void hc_ring_doorbell(xhci_hc_t *, unsigned, unsigned);124 void hc_ring_ep_doorbell(xhci_endpoint_t *, uint32_t);125 unsigned hc_speed_to_psiv(usb_speed_t);123 extern void hc_ring_doorbell(xhci_hc_t *, unsigned, unsigned); 124 extern void hc_ring_ep_doorbell(xhci_endpoint_t *, uint32_t); 125 extern unsigned hc_speed_to_psiv(usb_speed_t); 126 126 127 int hc_enable_slot(xhci_device_t *);128 int hc_disable_slot(xhci_device_t *);129 int hc_address_device(xhci_device_t *);130 int hc_configure_device(xhci_device_t *);131 int hc_deconfigure_device(xhci_device_t *);132 int hc_add_endpoint(xhci_endpoint_t *);133 int hc_drop_endpoint(xhci_endpoint_t *);134 int hc_update_endpoint(xhci_endpoint_t *);135 int hc_stop_endpoint(xhci_endpoint_t *);136 int hc_reset_endpoint(xhci_endpoint_t *);137 int hc_reset_ring(xhci_endpoint_t *, uint32_t);127 extern int hc_enable_slot(xhci_device_t *); 128 extern int hc_disable_slot(xhci_device_t *); 129 extern int hc_address_device(xhci_device_t *); 130 extern int hc_configure_device(xhci_device_t *); 131 extern int hc_deconfigure_device(xhci_device_t *); 132 extern int hc_add_endpoint(xhci_endpoint_t *); 133 extern int hc_drop_endpoint(xhci_endpoint_t *); 134 extern int hc_update_endpoint(xhci_endpoint_t *); 135 extern int hc_stop_endpoint(xhci_endpoint_t *); 136 extern int hc_reset_endpoint(xhci_endpoint_t *); 137 extern int hc_reset_ring(xhci_endpoint_t *, uint32_t); 138 138 139 int hc_status(bus_t *, uint32_t *);140 void hc_interrupt(bus_t *, uint32_t);139 extern int hc_status(bus_t *, uint32_t *); 140 extern void hc_interrupt(bus_t *, uint32_t); 141 141 142 142 #endif
Note:
See TracChangeset
for help on using the changeset viewer.