Files
nt-lite/code/public/ntlite/ddk/interrupt.h
T

18 lines
513 B
C

// Public nt-lite DDK interrupt declarations.
#pragma once
#include <stdint.h>
#include <ntlite/status.h>
// Driver-visible interrupt services.
typedef struct NTL_DDK_INTERRUPT {
KSTATUS (*AllocateMsiVector)(uint8_t* outIrq);
} NTL_DDK_INTERRUPT;
// Allocates one kernel IRQ slot for MSI delivery.
__declspec(dllexport) KSTATUS KeIrqAllocateMsiVector(uint8_t* outIrq);
// Registers a legacy interrupt handler for an IRQ slot.
__declspec(dllexport) void KeIrqRegister(uint8_t irq, void (*handler)(void));