replace nob with ms' build, move disk creation to build.bat, major comment cleanup, remove old and stupid tests, overhaul interrupt management with per-CPU vector allocation, affinity migration and safe teardown, add proper IOAPIC routing and PCI MSI/MSI-X/INTx support, migrate drivers to the new interrupt API, integrate ACPICA with a proper OS services layer, move ACPI firmware events, power button handling and S5 shutdown into acpi.sys, add parallel driver startup and atomic publication, replace PnP arrays with dynamic lists, redesign service startup again to be asynchronous, add delayed startup mode for services, allow omitting keys in services.ini, fix acpi ec deferred work handling, fix kernel threads having garbage exit code.
This commit is contained in:
1 parent
d36f19509c
commit
36eef8f58d
696 files changed
+147281
-7530
No files matched your search
@@ -12,6 +12,7 @@
|
||||
#include <stddef.h>
|
||||
#include <ntlite/status.h>
|
||||
#include <ntlite/ddi/io_driver.h>
|
||||
#include <ntlite/ddk/interrupt.h>
|
||||
|
||||
#ifndef PCI_API
|
||||
# ifdef PCI_SYS_BUILD
|
||||
@@ -115,8 +116,20 @@ PCI_API KSTATUS PciEnableDevice(DEVICE_OBJECT* pdo,
|
||||
PCI_API KSTATUS PciGetInterrupt(DEVICE_OBJECT* pdo,
|
||||
uint8_t* outIrq);
|
||||
|
||||
PCI_API KSTATUS PciEnableMsi(DEVICE_OBJECT* pdo,
|
||||
uint8_t irqSlot);
|
||||
typedef struct PCI_INTERRUPT_REQUEST {
|
||||
KE_INTERRUPT_ROUTINE Routine;
|
||||
void* Context;
|
||||
uint64_t Affinity;
|
||||
KE_INTERRUPT* Interrupt;
|
||||
// Owned and cleared by pci.sys while the interrupt is connected.
|
||||
void* BusContext;
|
||||
} PCI_INTERRUPT_REQUEST;
|
||||
|
||||
PCI_API KSTATUS PciEnableMsiAuto(DEVICE_OBJECT* pdo,
|
||||
uint8_t* outIrqSlot);
|
||||
// Allocates and programs one or more MSI-X/MSI routes, or a shared INTx route.
|
||||
PCI_API KSTATUS PciConnectInterrupts(DEVICE_OBJECT* pdo,
|
||||
PCI_INTERRUPT_REQUEST* requests,
|
||||
uint32_t count, bool* usingMessages);
|
||||
// Disable the PCI source before releasing the interrupt objects.
|
||||
PCI_API void PciDisconnectInterrupts(DEVICE_OBJECT* pdo,
|
||||
PCI_INTERRUPT_REQUEST* requests,
|
||||
uint32_t count);
|
||||
Reference in new issue
Block a user