ReactOS  0.4.14-dev-115-g4576127
interrupt.c File Reference
#include <sndblst.h>
Include dependency graph for interrupt.c:

Go to the source code of this file.

Functions

BOOLEAN CheckIrq (PDEVICE_OBJECT DeviceObject)
 
BOOLEAN NTAPI ServiceSoundBlasterInterrupt (IN PKINTERRUPT Interrupt, IN PVOID Context)
 
NTSTATUS EnableIrq (PDEVICE_OBJECT DeviceObject)
 

Function Documentation

◆ CheckIrq()

BOOLEAN CheckIrq ( PDEVICE_OBJECT  DeviceObject)

Definition at line 7 of file interrupt.c.

9 {
10 /* PSOUND_BLASTER_PARAMETERS parameters = DeviceObject->DriverExtension;*/
11 
12  /* TODO */
13 
14  return TRUE;
15 }
#define TRUE
Definition: types.h:120

◆ EnableIrq()

NTSTATUS EnableIrq ( PDEVICE_OBJECT  DeviceObject)

Definition at line 27 of file interrupt.c.

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
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 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
smooth NULL
Definition: ftsmooth.c:416
void DPRINT(...)
Definition: polytest.cpp:61
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

◆ ServiceSoundBlasterInterrupt()

BOOLEAN NTAPI ServiceSoundBlasterInterrupt ( IN PKINTERRUPT  Interrupt,
IN PVOID  Context 
)

Definition at line 18 of file interrupt.c.

21 {
22  DPRINT("* Processing ISR *\n");
23  return FALSE;
24 }
void DPRINT(...)
Definition: polytest.cpp:61

Referenced by EnableIrq().