ReactOS  0.4.15-dev-2947-g59e1b78
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 {
30  PSOUND_BLASTER_PARAMETERS parameters = DeviceObject->DeviceExtension;
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 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
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
BOOLEAN NTAPI ServiceSoundBlasterInterrupt(IN PKINTERRUPT Interrupt, IN PVOID Context)
Definition: interrupt.c:18
#define FALSE
Definition: types.h: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
NTHALAPI ULONG NTAPI HalGetInterruptVector(INTERFACE_TYPE, ULONG, ULONG, ULONG, PKIRQL, PKAFFINITY)
PKINTERRUPT interrupt
Definition: sndblst.h:60
ULONG_PTR KAFFINITY
Definition: compat.h:85
#define NULL
Definition: types.h:112
unsigned int ULONG
Definition: retypes.h:1
#define STATUS_SUCCESS
Definition: shellext.h:65
#define DPRINT
Definition: sndvol32.h:71
#define STATUS_DEVICE_CONFIGURATION_ERROR
Definition: ntstatus.h:619
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 }
#define FALSE
Definition: types.h:117
#define DPRINT
Definition: sndvol32.h:71

Referenced by EnableIrq().