Martin Whitaker
4400ec6f17
Rename usbkbd to usbhcd to better reflect the new design.
2022-01-08 23:14:50 +00:00
Martin Whitaker
52a87c5d40
Add support for USB hubs.
...
This refactors the USB driver code into a more object-oriented design,
with usbkbd.c being the base class and ohci.c and xhci.c being subclasses.
This makes the code that performs USB device enumeration independent of
the host controller.
2022-01-08 23:00:28 +00:00
Martin Whitaker
84da9f7553
Refactor USB driver code to prepare for supporting USB hubs.
2021-12-29 18:17:46 +00:00
Martin Whitaker
a4c62cae97
XHCI: don't scan USB3 ports - keyboards will only be found on USB2 ports.
2021-12-28 16:14:29 +00:00
Martin Whitaker
9785d8f8b9
Map USB controller registers into the reserved area of virtual memory.
...
This ensures they are accessible when the test is running, and if they
are physically mapped above 4GB.
2021-12-23 17:45:26 +00:00
Martin Whitaker
d9fee4dcbb
Flush caches between writing and verifying test data.
...
Mostly we write and read large chunks of data which will make it likely
that the data is no longer in the cache when we come to verify it. But
this is not always true, and in any case, we shouldn't rely on it.
2021-12-23 11:00:10 +00:00
Martin Whitaker
11c0c6c2f5
Use atomic memory read/write functions in tests.
...
This ensures compiler optimisations won't interfere with the tests.
2021-12-23 10:07:55 +00:00
Martin Whitaker
eb58a63ad4
XHCI: add device attach time delay after starting the controller.
2021-12-22 19:08:14 +00:00
Martin Whitaker
8069b8724b
Initial support for native USB keyboard interface.
...
This adds support for USB keyboards connected directly to an OHCI
or XHCI controller.
2021-12-22 17:31:06 +00:00
Martin Whitaker
a7d17186f3
Improved PCI configuration space access functions.
2021-12-05 14:15:37 +00:00
Martin Whitaker
8f1d81b65d
Add missing includes of stdbool.h.
...
To ensure we aren't dependent on the order of inclusion.
2021-12-05 13:50:25 +00:00
Martin Whitaker
ec676ccab2
Add debug trace for ACPI RSDP search results.
2020-12-11 16:18:45 +00:00
Martin Whitaker
bb667b600f
Use ACPI RSDP address from boot_params if provided by bootloader.
2020-12-11 16:18:04 +00:00
Martin Whitaker
1d2bf57403
Improve and fix scanning for ACPI tables.
2020-12-11 13:27:05 +00:00
Martin Whitaker
27c5fe363f
Add startup option to enable/disable SMP.
2020-12-10 13:51:39 +00:00
Martin Whitaker
725435d5c7
Add support for 24bpp frame buffer.
2020-07-09 15:51:04 +01:00
Martin Whitaker
366e7a1af4
Improve code readability.
2020-06-30 13:58:33 +01:00
Martin Whitaker
7d00dbe26a
Remove duplicate EFI table definitions.
2020-06-30 13:57:15 +01:00
Martin Whitaker
9492c086fe
Move boot_params definitions into separate header file.
2020-06-29 12:09:13 +01:00
Martin Whitaker
fbd3376668
Initial commit.
2020-05-24 21:30:55 +01:00