@@ -247,40 +247,30 @@ int xhci_init(void);
247247int xhci_reset_controller (struct xhci_hc * hc );
248248int xhci_start_controller (struct xhci_hc * hc );
249249uint32_t xhci_get_port_status (struct xhci_hc * hc , uint32_t port_num );
250-
251- /* Phase 2: Command/Event Ring functions */
252250int xhci_setup_command_ring (struct xhci_hc * hc );
253251int xhci_setup_event_ring (struct xhci_hc * hc );
254252void xhci_ring_doorbell (struct xhci_hc * hc , uint8_t slot_id , uint8_t target );
255253int xhci_wait_for_event (struct xhci_hc * hc , struct xhci_trb * event_trb ,
256254 uint32_t timeout_ms );
257255void xhci_handle_events (struct xhci_hc * hc );
258-
259- /* Phase 3: Device Enumeration functions */
260256int xhci_enable_slot (struct xhci_hc * hc );
261257int xhci_address_device (struct xhci_hc * hc , uint8_t slot_id , uint8_t port );
262258int xhci_configure_endpoint (struct xhci_hc * hc , uint8_t slot_id );
263259int xhci_reset_port (struct xhci_hc * hc , uint8_t port );
264260void xhci_handle_port_status_change (struct xhci_hc * hc , uint8_t port );
265-
266- /* Phase 4: USB Protocol functions */
267261int xhci_control_transfer (struct xhci_hc * hc , uint8_t slot_id ,
268262 uint8_t request_type , uint8_t request , uint16_t value ,
269263 uint16_t index , void * data , uint16_t length );
270264int xhci_get_descriptor (struct xhci_hc * hc , uint8_t slot_id , uint8_t desc_type ,
271265 uint8_t desc_index , void * buffer , uint16_t length );
272266int xhci_set_configuration (struct xhci_hc * hc , uint8_t slot_id ,
273267 uint8_t config_value );
274-
275- /* Helper functions */
276268void * xhci_alloc_aligned (uint32_t size , uint32_t alignment );
277269void xhci_free_aligned (void * ptr );
278270uint8_t xhci_get_keyboard_slot (struct xhci_hc * hc );
279271int xhci_setup_keyboard_polling (struct xhci_hc * hc , uint8_t slot_id );
280272int xhci_poll_keyboard (struct xhci_hc * hc , uint8_t slot_id ,
281273 uint8_t * report_buffer );
282-
283- /* HID Keyboard specific */
284274int xhci_configure_keyboard (struct xhci_hc * hc , uint8_t slot_id );
285275int xhci_set_boot_protocol (struct xhci_hc * hc , uint8_t slot_id ,
286276 uint8_t interface );
0 commit comments