Home
last modified time | relevance | path

Searched refs:hcd_ohci (Results 1 – 25 of 37) sorted by relevance

12

/USBX-v6.2.1/common/usbx_host_controllers/src/
Dux_hcd_ohci_initialize.c96 UX_HCD_OHCI *hcd_ohci; in _ux_hcd_ohci_initialize() local
112 hcd_ohci = _ux_utility_memory_allocate(UX_NO_ALIGN, UX_REGULAR_MEMORY, sizeof(UX_HCD_OHCI)); in _ux_hcd_ohci_initialize()
113 if (hcd_ohci == UX_NULL) in _ux_hcd_ohci_initialize()
117 hcd -> ux_hcd_controller_hardware = (VOID *) hcd_ohci; in _ux_hcd_ohci_initialize()
120 hcd_ohci -> ux_hcd_ohci_hcor = (ULONG *) hcd -> ux_hcd_io; in _ux_hcd_ohci_initialize()
123 hcd_ohci -> ux_hcd_ohci_hcd_owner = hcd; in _ux_hcd_ohci_initialize()
133hcd_ohci -> ux_hcd_ohci_hcca = _ux_utility_memory_allocate(UX_ALIGN_256, UX_CACHE_SAFE_MEMORY, si… in _ux_hcd_ohci_initialize()
134 if (hcd_ohci -> ux_hcd_ohci_hcca == UX_NULL) in _ux_hcd_ohci_initialize()
138hcd_ohci -> ux_hcd_ohci_ed_list = _ux_utility_memory_allocate(UX_ALIGN_16, UX_CACHE_SAFE_MEMORY, … in _ux_hcd_ohci_initialize()
139 if (hcd_ohci -> ux_hcd_ohci_ed_list == UX_NULL) in _ux_hcd_ohci_initialize()
[all …]
Dux_hcd_ohci_entry.c98 UX_HCD_OHCI *hcd_ohci; in _ux_hcd_ohci_entry() local
115 hcd_ohci = (UX_HCD_OHCI *) hcd -> ux_hcd_controller_hardware; in _ux_hcd_ohci_entry()
123 status = _ux_hcd_ohci_controller_disable(hcd_ohci); in _ux_hcd_ohci_entry()
129 status = _ux_hcd_ohci_port_status_get(hcd_ohci, (ULONG) parameter); in _ux_hcd_ohci_entry()
135 status = _ux_hcd_ohci_port_enable(hcd_ohci, (ULONG) parameter); in _ux_hcd_ohci_entry()
141 status = _ux_hcd_ohci_port_disable(hcd_ohci, (ULONG) parameter); in _ux_hcd_ohci_entry()
147 status = _ux_hcd_ohci_power_on_port(hcd_ohci, (ULONG) parameter); in _ux_hcd_ohci_entry()
153 status = _ux_hcd_ohci_power_down_port(hcd_ohci, (ULONG) parameter); in _ux_hcd_ohci_entry()
159 status = _ux_hcd_ohci_port_suspend(hcd_ohci, (ULONG) parameter); in _ux_hcd_ohci_entry()
165 status = _ux_hcd_ohci_port_resume(hcd_ohci, (UINT) parameter); in _ux_hcd_ohci_entry()
[all …]
Dux_hcd_ohci_power_root_hubs.c78 VOID _ux_hcd_ohci_power_root_hubs(UX_HCD_OHCI *hcd_ohci) in _ux_hcd_ohci_power_root_hubs() argument
88 ohci_register_a = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_RH_DESCRIPTOR_A); in _ux_hcd_ohci_power_root_hubs()
93 ohci_register_b = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_RH_DESCRIPTOR_B); in _ux_hcd_ohci_power_root_hubs()
113 for (port_index = 0; port_index < hcd_ohci -> ux_hcd_ohci_nb_root_hubs; port_index++) in _ux_hcd_ohci_power_root_hubs()
119 _ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_RH_STATUS, OHCI_HC_RS_LPSC); in _ux_hcd_ohci_power_root_hubs()
126 for (port_index = 0; port_index < hcd_ohci -> ux_hcd_ohci_nb_root_hubs; port_index++) in _ux_hcd_ohci_power_root_hubs()
132 …ohci_register_port_status = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_in… in _ux_hcd_ohci_power_root_hubs()
135 …_ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_index, ohci_register_port_stat… in _ux_hcd_ohci_power_root_hubs()
143 _ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_RH_STATUS, OHCI_HC_RS_LPSC); in _ux_hcd_ohci_power_root_hubs()
Dux_hcd_ohci_interrupt_handler.c93 UX_HCD_OHCI *hcd_ohci; in _ux_hcd_ohci_interrupt_handler() local
111 hcd_ohci = (UX_HCD_OHCI *) hcd -> ux_hcd_controller_hardware; in _ux_hcd_ohci_interrupt_handler()
118 ohci_register = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_INTERRUPT_STATUS); in _ux_hcd_ohci_interrupt_handler()
126hcd_ohci -> ux_hcd_ohci_done_head = hcd_ohci -> ux_hcd_ohci_hcca -> ux_hcd_ohci_hcca_done_head; in _ux_hcd_ohci_interrupt_handler()
127hcd_ohci -> ux_hcd_ohci_hcca -> ux_hcd_ohci_hcca_done_head = UX_NULL; in _ux_hcd_ohci_interrupt_handler()
135 … _ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_INTERRUPT_DISABLE, OHCI_HC_INT_WDH); in _ux_hcd_ohci_interrupt_handler()
143 _ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_COMMAND_STATUS, OHCI_HC_CS_HCR); in _ux_hcd_ohci_interrupt_handler()
154 … for (port_index = 0; port_index < hcd_ohci -> ux_hcd_ohci_nb_root_hubs; port_index++) in _ux_hcd_ohci_interrupt_handler()
158 …ohci_register_port_status = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_in… in _ux_hcd_ohci_interrupt_handler()
172 … _ux_host_event_flags_set(&hcd_ohci -> ux_hcd_ohci_event_flags_group, UX_OHCI_PRSC_EVENT, UX_OR); in _ux_hcd_ohci_interrupt_handler()
[all …]
Dux_hcd_ohci_asynchronous_endpoint_create.c83 UINT _ux_hcd_ohci_asynchronous_endpoint_create(UX_HCD_OHCI *hcd_ohci, UX_ENDPOINT *endpoint) in _ux_hcd_ohci_asynchronous_endpoint_create() argument
99 ed = _ux_hcd_ohci_ed_obtain(hcd_ohci); in _ux_hcd_ohci_asynchronous_endpoint_create()
104 td = _ux_hcd_ohci_regular_td_obtain(hcd_ohci); in _ux_hcd_ohci_asynchronous_endpoint_create()
143 head_ed = (UX_OHCI_ED *) _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_CONTROL_HEAD_ED); in _ux_hcd_ohci_asynchronous_endpoint_create()
145 …_ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_CONTROL_HEAD_ED, (ULONG) _ux_utility_physical_addres… in _ux_hcd_ohci_asynchronous_endpoint_create()
146 ohci_register = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_CONTROL); in _ux_hcd_ohci_asynchronous_endpoint_create()
148 _ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_CONTROL, ohci_register); in _ux_hcd_ohci_asynchronous_endpoint_create()
154 head_ed = (UX_OHCI_ED *) _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_BULK_HEAD_ED); in _ux_hcd_ohci_asynchronous_endpoint_create()
156 …_ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_BULK_HEAD_ED, (ULONG) _ux_utility_physical_address(e… in _ux_hcd_ohci_asynchronous_endpoint_create()
157 ohci_register = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_CONTROL); in _ux_hcd_ohci_asynchronous_endpoint_create()
[all …]
Dux_hcd_ohci_request_transfer.c79 UINT _ux_hcd_ohci_request_transfer(UX_HCD_OHCI *hcd_ohci, UX_TRANSFER *transfer_request) in _ux_hcd_ohci_request_transfer() argument
99 status = _ux_hcd_ohci_request_control_transfer(hcd_ohci, transfer_request); in _ux_hcd_ohci_request_transfer()
106 status = _ux_hcd_ohci_request_bulk_transfer(hcd_ohci, transfer_request); in _ux_hcd_ohci_request_transfer()
113 status = _ux_hcd_ohci_request_interrupt_transfer(hcd_ohci, transfer_request); in _ux_hcd_ohci_request_transfer()
120 status = _ux_hcd_ohci_request_isochronous_transfer(hcd_ohci, transfer_request); in _ux_hcd_ohci_request_transfer()
Dux_hcd_ohci_port_disable.c75 UINT _ux_hcd_ohci_port_disable(UX_HCD_OHCI *hcd_ohci, ULONG port_index) in _ux_hcd_ohci_port_disable() argument
82 if (hcd_ohci -> ux_hcd_ohci_nb_root_hubs < port_index) in _ux_hcd_ohci_port_disable()
95 …ohci_register_port_status = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_in… in _ux_hcd_ohci_port_disable()
101 …_ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_index, ohci_register_port_stat… in _ux_hcd_ohci_port_disable()
Dux_hcd_ohci_controller_disable.c75 UINT _ux_hcd_ohci_controller_disable(UX_HCD_OHCI *hcd_ohci) in _ux_hcd_ohci_controller_disable() argument
83 hcd = hcd_ohci -> ux_hcd_ohci_hcd_owner; in _ux_hcd_ohci_controller_disable()
87 _ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_CONTROL, ohci_register); in _ux_hcd_ohci_controller_disable()
Dux_hcd_ohci_port_reset.c78 UINT _ux_hcd_ohci_port_reset(UX_HCD_OHCI *hcd_ohci, ULONG port_index) in _ux_hcd_ohci_port_reset() argument
86 if (hcd_ohci -> ux_hcd_ohci_nb_root_hubs < port_index) in _ux_hcd_ohci_port_reset()
100 …ohci_register_port_status = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_in… in _ux_hcd_ohci_port_reset()
116 _ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_index, OHCI_HC_PS_PRS); in _ux_hcd_ohci_port_reset()
119 status = _ux_host_event_flags_get(&hcd_ohci -> ux_hcd_ohci_event_flags_group, in _ux_hcd_ohci_port_reset()
Dux_hcd_ohci_port_enable.c76 UINT _ux_hcd_ohci_port_enable(UX_HCD_OHCI *hcd_ohci, ULONG port_index) in _ux_hcd_ohci_port_enable() argument
83 if (hcd_ohci -> ux_hcd_ohci_nb_root_hubs < port_index) in _ux_hcd_ohci_port_enable()
97 …ohci_register_port_status = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_in… in _ux_hcd_ohci_port_enable()
116 _ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_index, OHCI_HC_PS_PES); in _ux_hcd_ohci_port_enable()
Dux_hcd_ohci_asynchronous_endpoint_destroy.c82 UINT _ux_hcd_ohci_asynchronous_endpoint_destroy(UX_HCD_OHCI *hcd_ohci, UX_ENDPOINT *endpoint) in _ux_hcd_ohci_asynchronous_endpoint_destroy() argument
135 ohci_register = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_CONTROL); in _ux_hcd_ohci_asynchronous_endpoint_destroy()
137 _ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_CONTROL, ohci_register); in _ux_hcd_ohci_asynchronous_endpoint_destroy()
141 _ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_CONTROL_HEAD_ED, (ULONG) next_ed); in _ux_hcd_ohci_asynchronous_endpoint_destroy()
151 ohci_register = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_CONTROL); in _ux_hcd_ohci_asynchronous_endpoint_destroy()
153 _ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_CONTROL, ohci_register); in _ux_hcd_ohci_asynchronous_endpoint_destroy()
157 _ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_BULK_HEAD_ED, (ULONG) next_ed); in _ux_hcd_ohci_asynchronous_endpoint_destroy()
Dux_hcd_ohci_register_read.c73 ULONG _ux_hcd_ohci_register_read(UX_HCD_OHCI *hcd_ohci, ULONG ohci_register) in _ux_hcd_ohci_register_read() argument
77 return(*(hcd_ohci -> ux_hcd_ohci_hcor + ohci_register)); in _ux_hcd_ohci_register_read()
Dux_hcd_ohci_frame_number_set.c76 VOID _ux_hcd_ohci_frame_number_set(UX_HCD_OHCI *hcd_ohci, ULONG frame_number) in _ux_hcd_ohci_frame_number_set() argument
80 _ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_FM_NUMBER, frame_number & 0xffff); in _ux_hcd_ohci_frame_number_set()
Dux_hcd_ohci_port_resume.c77 UINT _ux_hcd_ohci_port_resume(UX_HCD_OHCI *hcd_ohci, UINT port_index) in _ux_hcd_ohci_port_resume() argument
80 UX_PARAMETER_NOT_USED(hcd_ohci); in _ux_hcd_ohci_port_resume()
Dux_hcd_ohci_port_suspend.c77 UINT _ux_hcd_ohci_port_suspend(UX_HCD_OHCI *hcd_ohci, ULONG port_index) in _ux_hcd_ohci_port_suspend() argument
80 UX_PARAMETER_NOT_USED(hcd_ohci); in _ux_hcd_ohci_port_suspend()
Dux_hcd_ohci_power_down_port.c77 UINT _ux_hcd_ohci_power_down_port(UX_HCD_OHCI *hcd_ohci, ULONG port_index) in _ux_hcd_ohci_power_down_port() argument
80 UX_PARAMETER_NOT_USED(hcd_ohci); in _ux_hcd_ohci_power_down_port()
Dux_hcd_ohci_power_on_port.c76 UINT _ux_hcd_ohci_power_on_port(UX_HCD_OHCI *hcd_ohci, ULONG port_index) in _ux_hcd_ohci_power_on_port() argument
79 UX_PARAMETER_NOT_USED(hcd_ohci); in _ux_hcd_ohci_power_on_port()
Dux_hcd_ohci_frame_number_get.c76 UINT _ux_hcd_ohci_frame_number_get(UX_HCD_OHCI *hcd_ohci, ULONG *frame_number) in _ux_hcd_ohci_frame_number_get() argument
80 *frame_number = (ULONG) hcd_ohci -> ux_hcd_ohci_hcca -> ux_hcd_ohci_hcca_frame_number; in _ux_hcd_ohci_frame_number_get()
Dux_hcd_ohci_register_write.c74 VOID _ux_hcd_ohci_register_write(UX_HCD_OHCI *hcd_ohci, ULONG ohci_register, ULONG value) in _ux_hcd_ohci_register_write() argument
78 *(hcd_ohci -> ux_hcd_ohci_hcor + ohci_register) = value; in _ux_hcd_ohci_register_write()
Dux_hcd_ohci_isochronous_endpoint_create.c79 UINT _ux_hcd_ohci_isochronous_endpoint_create(UX_HCD_OHCI *hcd_ohci, UX_ENDPOINT *endpoint) in _ux_hcd_ohci_isochronous_endpoint_create() argument
90 ohci_hcca = hcd_ohci -> ux_hcd_ohci_hcca; in _ux_hcd_ohci_isochronous_endpoint_create()
94 ed = _ux_hcd_ohci_ed_obtain(hcd_ohci); in _ux_hcd_ohci_isochronous_endpoint_create()
99 td = _ux_hcd_ohci_isochronous_td_obtain(hcd_ohci); in _ux_hcd_ohci_isochronous_endpoint_create()
Dux_hcd_ohci_port_status_get.c99 ULONG _ux_hcd_ohci_port_status_get(UX_HCD_OHCI *hcd_ohci, ULONG port_index) in _ux_hcd_ohci_port_status_get() argument
107 if (hcd_ohci -> ux_hcd_ohci_nb_root_hubs < port_index) in _ux_hcd_ohci_port_status_get()
122 …ohci_register_port_status = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_RH_PORT_STATUS + port_in… in _ux_hcd_ohci_port_status_get()
Dux_hcd_ohci_done_queue_process.c91 VOID _ux_hcd_ohci_done_queue_process(UX_HCD_OHCI *hcd_ohci) in _ux_hcd_ohci_done_queue_process() argument
110 …next_td = _ux_utility_virtual_address((VOID *) ((ULONG) hcd_ohci -> ux_hcd_ohci_done_head & 0xfff… in _ux_hcd_ohci_done_queue_process()
190 _ux_hcd_ohci_endpoint_error_clear(hcd_ohci, endpoint); in _ux_hcd_ohci_done_queue_process()
216 _ux_hcd_ohci_endpoint_reset(hcd_ohci, endpoint); in _ux_hcd_ohci_done_queue_process()
235 _ux_hcd_ohci_endpoint_reset(hcd_ohci, endpoint); in _ux_hcd_ohci_done_queue_process()
253 _ux_hcd_ohci_endpoint_reset(hcd_ohci, endpoint); in _ux_hcd_ohci_done_queue_process()
308 _ux_hcd_ohci_frame_number_get(hcd_ohci, &current_frame); in _ux_hcd_ohci_done_queue_process()
344 ohci_register_interrupt = _ux_hcd_ohci_register_read(hcd_ohci, OHCI_HC_INTERRUPT_ENABLE); in _ux_hcd_ohci_done_queue_process()
346 _ux_hcd_ohci_register_write(hcd_ohci, OHCI_HC_INTERRUPT_ENABLE, ohci_register_interrupt); in _ux_hcd_ohci_done_queue_process()
Dux_hcd_ohci_endpoint_error_clear.c77 UINT _ux_hcd_ohci_endpoint_error_clear(UX_HCD_OHCI *hcd_ohci, UX_ENDPOINT *endpoint) in _ux_hcd_ohci_endpoint_error_clear() argument
84 UX_PARAMETER_NOT_USED(hcd_ohci); in _ux_hcd_ohci_endpoint_error_clear()
Dux_hcd_ohci_endpoint_reset.c76 UINT _ux_hcd_ohci_endpoint_reset(UX_HCD_OHCI *hcd_ohci, UX_ENDPOINT *endpoint) in _ux_hcd_ohci_endpoint_reset() argument
83 UX_PARAMETER_NOT_USED(hcd_ohci); in _ux_hcd_ohci_endpoint_reset()
/USBX-v6.2.1/common/usbx_host_controllers/inc/
Dux_hcd_ohci.h380 UINT _ux_hcd_ohci_asynchronous_endpoint_create(UX_HCD_OHCI *hcd_ohci, UX_ENDPOINT *endpoint);
381 UINT _ux_hcd_ohci_asynchronous_endpoint_destroy(UX_HCD_OHCI *hcd_ohci, UX_ENDPOINT *endpoint);
382 UINT _ux_hcd_ohci_controller_disable(UX_HCD_OHCI *hcd_ohci);
383 VOID _ux_hcd_ohci_done_queue_process(UX_HCD_OHCI *hcd_ohci);
384 UX_OHCI_ED *_ux_hcd_ohci_ed_obtain(UX_HCD_OHCI *hcd_ohci);
385 UINT _ux_hcd_ohci_endpoint_error_clear(UX_HCD_OHCI *hcd_ohci, UX_ENDPOINT *endpoint);
386 UINT _ux_hcd_ohci_endpoint_reset(UX_HCD_OHCI *hcd_ohci, UX_ENDPOINT *endpoint);
388 UINT _ux_hcd_ohci_frame_number_get(UX_HCD_OHCI *hcd_ohci, ULONG *frame_number);
389 VOID _ux_hcd_ohci_frame_number_set(UX_HCD_OHCI *hcd_ohci, ULONG frame_number);
391 UINT _ux_hcd_ohci_interrupt_endpoint_create(UX_HCD_OHCI *hcd_ohci, UX_ENDPOINT *endpoint);
[all …]

12