ReactOS 0.4.16-dev-87-g3dfbe52
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;
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,
49 vector,
50 irq_level,
51 irq_level,
52 Latched, /* Latched / LevelSensitive */
53 FALSE, /* shareable */
55 FALSE);
56
59
60 return status;
61}
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
BOOLEAN NTAPI ServiceSoundBlasterInterrupt(IN PKINTERRUPT Interrupt, IN PVOID Context)
Definition: interrupt.c:18
KAFFINITY affinity
Definition: wave.h:2
NTHALAPI ULONG NTAPI HalGetInterruptVector(INTERFACE_TYPE, ULONG, ULONG, ULONG, PKIRQL, PKAFFINITY)
UCHAR KIRQL
Definition: env_spec_w32.h:591
KSPIN_LOCK * PKSPIN_LOCK
Definition: env_spec_w32.h:73
@ Isa
Definition: hwresource.cpp:138
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 STATUS_SUCCESS
Definition: shellext.h:65
#define DPRINT
Definition: sndvol32.h:73
PKINTERRUPT interrupt
Definition: sndblst.h:60
Definition: ps.c:97
uint32_t ULONG
Definition: typedefs.h:59
#define STATUS_INVALID_PARAMETER
Definition: udferr_usr.h:135
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055

◆ 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}

Referenced by EnableIrq().