serenity/Kernel/Arch/x86_64
Jesse Buhagiar a0dd6ec6b1 Kernel/USB: Add driver_init section
At any one given time, there can be an abitrary number of USB drivers in
the system. The way driver mapping works (i.e, a device is inserted, and
a potentially matching driver is probed) requires us to have
instantiated driver objects _before_ a device is inserted. This leaves
us with a slight "chicken and egg" problem. We cannot call the probe
function before the driver is initialised, but we need to know _what_
driver to initialise.

This section is designed to store pointers to functions that are called
during the last stage of the early `_init` sequence in the Kernel. The
accompanying macro in `USBDriver` emits a symbol, based on the driver
name, into this table that is then automatically called.

This way, we enforce a "common" driver model; driver developers are not
only required to write their driver and inherit from `USB::Driver`, but
are also required to have a free floating init function that registers
their driver with the USB Core.
2023-09-18 11:09:19 -06:00
..
Boot
Firmware Kernel: Move PC BIOS-related code to the x86_64 architecture directory 2023-06-19 23:49:00 +02:00
Hypervisor Kernel: Move all Graphics-related code into Devices/GPU directory 2023-06-06 00:40:32 +02:00
Interrupts Everywhere: Remove needless trailing semi-colons after functions 2023-07-08 10:32:56 +01:00
ISABus Kernel: Untie PS2 mouse and keyboard devices from i8042 implementation 2023-06-21 05:02:09 -06:00
PCI Kernel: Move InterruptDisabler to the Interrupts subdirectory 2023-06-04 21:32:34 +02:00
Time Kernel: Use Processor::wait_check in loops waiting for HW to respond 2023-09-15 11:07:35 -06:00
VGA
ASM_wrapper.cpp
ASM_wrapper.h Kernel: Unify x86-64 assembly snippets naming for RDSEED & RDRAND 2023-01-25 23:17:36 +01:00
BochsDebugOutput.h
CMOS.cpp
CMOS.h
CPU.cpp Everywhere: Move global Kernel pattern code to Kernel/Library directory 2023-06-04 21:32:34 +02:00
CPU.h
CPUID.cpp Kernel: Use a descriptive name for x86-64 cpu_feature_to_string_view 2023-01-18 22:58:42 +01:00
CPUID.h Kernel: Use a descriptive name for x86-64 cpu_feature_to_string_view 2023-01-18 22:58:42 +01:00
CurrentTime.cpp
DebugOutput.cpp Kernel: Use Processor::wait_check in loops waiting for HW to respond 2023-09-15 11:07:35 -06:00
Delay.cpp
DescriptorTable.h Kernel: Move {Virtual,Physical}Address classes to the Memory directory 2023-06-04 21:32:34 +02:00
I8042Reboot.cpp
I8042Reboot.h
InterruptEntry.cpp
InterruptManagement.cpp Kernel: Move MultiProcessor parsing code to the Arch/x86_64 directory 2023-06-19 23:49:00 +02:00
InterruptManagement.h Kernel/ACPI: Make most of StaticParsing methods to be platform-agnostic 2023-06-19 23:49:00 +02:00
Interrupts.cpp Kernel: Move Performance-measurement code to the Tasks subdirectory 2023-06-04 21:32:34 +02:00
Interrupts.h
IO.h
IRQController.h
ISRStubs.h
linker.ld Kernel/USB: Add driver_init section 2023-09-18 11:09:19 -06:00
mcontext.h
MSR.h
NonMaskableInterruptDisabler.h
PageDirectory.cpp Kernel: Move InterruptDisabler to the Interrupts subdirectory 2023-06-04 21:32:34 +02:00
PageDirectory.h Kernel: Move {Virtual,Physical}Address classes to the Memory directory 2023-06-04 21:32:34 +02:00
PCSpeaker.cpp
PCSpeaker.h
PowerState.cpp Kernel: Simplify reboot & poweroff code flow a bit 2023-06-27 20:04:42 +02:00
Processor.cpp Everywhere: Remove needless trailing semi-colons after functions 2023-07-08 10:32:56 +01:00
Processor.h Everywhere: Run clang-format 2023-07-08 10:32:56 +01:00
ProcessorInfo.cpp Kernel: Use a descriptive name for x86-64 cpu_feature_to_string_view 2023-01-18 22:58:42 +01:00
ProcessorInfo.h Everywhere: Move global Kernel pattern code to Kernel/Library directory 2023-06-04 21:32:34 +02:00
RegisterState.h Everywhere: Remove exceptions for using #include <LibC/...> 2023-06-27 12:40:38 +02:00
RTC.cpp Kernel: Use UnixDateTime wherever applicable 2023-05-24 23:18:07 +02:00
RTC.h Kernel: Use UnixDateTime wherever applicable 2023-05-24 23:18:07 +02:00
SafeMem.cpp
Shutdown.cpp
Shutdown.h
SIMDState.h
SmapDisabler.cpp
SyscallEntry.cpp Everywhere: Move global Kernel pattern code to Kernel/Library directory 2023-06-04 21:32:34 +02:00
ThreadRegisters.h Kernel: Add ThreadRegisters::set_exec_state and use it in execve.cpp 2023-01-27 20:47:08 +00:00
TrapFrame.cpp Kernel: Move InterruptDisabler to the Interrupts subdirectory 2023-06-04 21:32:34 +02:00
TrapFrame.h
TSS.h