Changeset 32fb6bce in mainline for uspace/drv/bus/usb/ehci/hc.h
- Timestamp:
- 2017-12-18T22:50:21Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7f70d1c
- Parents:
- 1ea0bbf
- git-author:
- Ondřej Hlavatý <aearsis@…> (2017-12-18 22:04:50)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2017-12-18 22:50:21)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/hc.h
r1ea0bbf r32fb6bce 55 55 /** Main EHCI driver structure */ 56 56 typedef struct hc { 57 /* Common device header */ 58 hc_device_t base; 59 57 60 /** Memory mapped CAPS register area */ 58 61 ehci_caps_regs_t *caps; … … 85 88 } hc_t; 86 89 87 int hc_init(hc_t *instance, hcd_t *hcd, const hw_res_list_parsed_t *hw_res); 88 int hc_start(hc_t *instance, bool interrupts); 89 void hc_fini(hc_t *instance); 90 static inline hc_t *hcd_to_hc(hc_device_t *hcd) 91 { 92 assert(hcd); 93 return (hc_t *) hcd; 94 } 90 95 91 void hc_enqueue_endpoint(hc_t * instance, const endpoint_t *ep);92 void hc_dequeue_endpoint(hc_t * instance, const endpoint_t *ep);96 void hc_enqueue_endpoint(hc_t *, const endpoint_t *); 97 void hc_dequeue_endpoint(hc_t *, const endpoint_t *); 93 98 94 int ehci_hc_gen_irq_code(irq_code_t *code, hcd_t *hcd, const hw_res_list_parsed_t *hw_res); 99 /* Boottime operations */ 100 int hc_add(hc_device_t *, const hw_res_list_parsed_t *); 101 int hc_start(hc_device_t *); 102 int hc_gen_irq_code(irq_code_t *, hc_device_t *, const hw_res_list_parsed_t *); 103 int hc_gone(hc_device_t *); 95 104 96 void ehci_hc_interrupt(hcd_t *hcd, uint32_t status); 97 int ehci_hc_status(hcd_t *hcd, uint32_t *status); 98 int ehci_hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch); 105 /** Runtime operations */ 106 void ehci_hc_interrupt(bus_t *, uint32_t); 107 int ehci_hc_status(bus_t *, uint32_t *); 108 int ehci_hc_schedule(usb_transfer_batch_t *); 109 99 110 #endif 100 111 /**
Note:
See TracChangeset
for help on using the changeset viewer.