ReactOS  0.4.14-dev-57-g333b8f1
interrupt.c
Go to the documentation of this file.
1 /*
2 */
3 
4 #include <sndblst.h>
5 
9 {
10 /* PSOUND_BLASTER_PARAMETERS parameters = DeviceObject->DriverExtension;*/
11 
12  /* TODO */
13 
14  return TRUE;
15 }
16 
19  IN PKINTERRUPT Interrupt,
21 {
22  DPRINT("* Processing ISR *\n");
23  return FALSE;
24 }
25 
29 {
31  ULONG vector;
32  KIRQL irq_level;
35 
37  0,
38  parameters->irq,
39  parameters->irq,
40  &irq_level,
41  &affinity);
42 
43  DPRINT("Vector is 0x%x\n", vector);
44 
45  status = IoConnectInterrupt(&parameters->interrupt,
48  (PKSPIN_LOCK) NULL,
49  vector,
50  irq_level,
51  irq_level,
52  Latched, /* Latched / LevelSensitive */
53  FALSE, /* shareable */
54  affinity,
55  FALSE);
56 
59 
60  return status;
61 }
KAFFINITY affinity
Definition: wave.h:2
#define IN
Definition: typedefs.h:38
#define TRUE
Definition: types.h:120
NTHALAPI ULONG NTAPI HalGetInterruptVector(INTERFACE_TYPE, ULONG, ULONG, ULONG, PKIRQL, PKAFFINITY)
#define STATUS_INVALID_PARAMETER
Definition: udferr_usr.h:135
LONG NTSTATUS
Definition: precomp.h:26
KSPIN_LOCK * PKSPIN_LOCK
Definition: env_spec_w32.h:73
UCHAR KIRQL
Definition: env_spec_w32.h:591
BOOLEAN NTAPI ServiceSoundBlasterInterrupt(IN PKINTERRUPT Interrupt, IN PVOID Context)
Definition: interrupt.c:18
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
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:22
PVOID DeviceExtension
Definition: env_spec_w32.h:418
unsigned char BOOLEAN
smooth NULL
Definition: ftsmooth.c:416
void DPRINT(...)
Definition: polytest.cpp:61
BOOLEAN CheckIrq(PDEVICE_OBJECT DeviceObject)
Definition: interrupt.c:7
NTSTATUS EnableIrq(PDEVICE_OBJECT DeviceObject)
Definition: interrupt.c:27
PKINTERRUPT interrupt
Definition: sndblst.h:60
IN PDEVICE_OBJECT DeviceObject
Definition: fatprocs.h:1560
ULONG_PTR KAFFINITY
Definition: compat.h:75
unsigned int ULONG
Definition: retypes.h:1
#define STATUS_DEVICE_CONFIGURATION_ERROR
Definition: ntstatus.h:605
return STATUS_SUCCESS
Definition: btrfs.c:2966
static SERVICE_STATUS status
Definition: service.c:31
Definition: ps.c:97