The manual
ginnOS
The reference: libc, the libraries and the kernel
Toggle main menu visibility
Loading...
Searching...
No Matches
xhci.h
Go to the documentation of this file.
1
#pragma once
2
3
/**
4
* @file xhci.h
5
* @brief USB keyboards and pointing devices through xHCI controllers
6
* (PCI class 0C:03:30).
7
*
8
* xhci_init takes each xHCI controller from the firmware, resets it, and
9
* looks at the devices on its root ports. a keyboard or a mouse that
10
* speaks the HID boot protocol, or a pointing device whose report
11
* descriptor has x and y (QEMU's tablet), gets its interrupt endpoint
12
* configured. the controller interrupt (or, without one, the timer) reads
13
* its events. keyboard reports become PS/2 scan codes for the keyboard
14
* driver, so the layout and the key events are the same as for a PS/2
15
* keyboard; buttons, motion and the wheel go to /dev/input. hubs and
16
* other devices are not supported.
17
*/
18
19
#include "
common/stdint.h
"
20
21
/**
22
* set up the xHCI controllers and their input devices. call after
23
* pci_init and mmio_init, with interrupts off.
24
* @return the number of input devices found.
25
*/
26
uint32_t
xhci_init
(
void
);
stdint.h
uint32_t
unsigned int uint32_t
Definition
fb.h:17
xhci_init
uint32_t xhci_init(void)
set up the xHCI controllers and their input devices.
Definition
xhci.c:1236
src
drivers
usb
xhci.h
Generated by
1.18.0