ReactOS 0.4.16-dev-197-g92996da
hardware.h File Reference

Go to the source code of this file.

Functions

NTSTATUS LegacyAttachInterrupt (IN PDEVICE_OBJECT DeviceObject, IN UCHAR Irq, IN PKSERVICE_ROUTINE ServiceRoutine, OUT PKINTERRUPT *InterruptObject)
 

Function Documentation

◆ LegacyAttachInterrupt()

NTSTATUS LegacyAttachInterrupt ( IN PDEVICE_OBJECT  DeviceObject,
IN UCHAR  Irq,
IN PKSERVICE_ROUTINE  ServiceRoutine,
OUT PKINTERRUPT InterruptObject 
)

Definition at line 25 of file hardware.c.

30{
33 KIRQL IrqLevel;
35
36 DPRINT("Obtaining interrupt vector");
37
39 0,
40 Irq,
41 Irq,
42 &IrqLevel,
43 &Affinity);
44
45 DPRINT("Vector %d", Vector);
46 DPRINT("Connecting IRQ %d", Irq);
47
51 NULL,
52 Vector,
53 IrqLevel,
54 IrqLevel,
55 Latched,
56 FALSE,
58 FALSE);
59
61 {
63 }
64
65 return Status;
66}
LONG NTSTATUS
Definition: precomp.h:26
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
ULONG_PTR KAFFINITY
Definition: compat.h:85
NTHALAPI ULONG NTAPI HalGetInterruptVector(INTERFACE_TYPE, ULONG, ULONG, ULONG, PKIRQL, PKAFFINITY)
UCHAR KIRQL
Definition: env_spec_w32.h:591
Status
Definition: gdiplustypes.h:25
@ Isa
Definition: hwresource.cpp:138
@ InterruptObject
Definition: ketypes.h:428
NTSTATUS NTAPI IoConnectInterrupt(OUT PKINTERRUPT *InterruptObject, IN PKSERVICE_ROUTINE ServiceRoutine, IN PVOID ServiceContext, IN PKSPIN_LOCK SpinLock, IN ULONG Vector, IN KIRQL Irql, IN KIRQL SynchronizeIrql, IN KINTERRUPT_MODE InterruptMode, IN BOOLEAN ShareVector, IN KAFFINITY ProcessorEnableMask, IN BOOLEAN FloatingSave)
Definition: irq.c:23
#define STATUS_DEVICE_CONFIGURATION_ERROR
Definition: ntstatus.h:619
@ Latched
Definition: miniport.h:81
#define DPRINT
Definition: sndvol32.h:73
uint32_t ULONG
Definition: typedefs.h:59
#define STATUS_INVALID_PARAMETER
Definition: udferr_usr.h:135
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
_In_ ULONG _In_ ULONG _In_ ULONG _Out_ PKIRQL _Out_ PKAFFINITY Affinity
Definition: halfuncs.h:174
_In_ PKSERVICE_ROUTINE ServiceRoutine
Definition: iofuncs.h:800