mirror of
https://github.com/reactos/reactos.git
synced 2024-11-10 00:34:39 +00:00
c501d8112c
svn path=/branches/aicom-network-fixes/; revision=34994
61 lines
1.5 KiB
C
61 lines
1.5 KiB
C
/*
|
|
*/
|
|
|
|
#include <sndblst.h>
|
|
|
|
BOOLEAN
|
|
CheckIrq(
|
|
PDEVICE_OBJECT DeviceObject)
|
|
{
|
|
/* PSOUND_BLASTER_PARAMETERS parameters = DeviceObject->DriverExtension;*/
|
|
|
|
/* TODO */
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
BOOLEAN NTAPI
|
|
ServiceSoundBlasterInterrupt(
|
|
IN PKINTERRUPT Interrupt,
|
|
IN PVOID Context)
|
|
{
|
|
DPRINT("* Processing ISR *\n");
|
|
return FALSE;
|
|
}
|
|
|
|
NTSTATUS
|
|
EnableIrq(
|
|
PDEVICE_OBJECT DeviceObject)
|
|
{
|
|
PSOUND_BLASTER_PARAMETERS parameters = DeviceObject->DeviceExtension;
|
|
ULONG vector;
|
|
KIRQL irq_level;
|
|
KAFFINITY affinity;
|
|
NTSTATUS status = STATUS_SUCCESS;
|
|
|
|
vector = HalGetInterruptVector(Isa,
|
|
0,
|
|
parameters->irq,
|
|
parameters->irq,
|
|
&irq_level,
|
|
&affinity);
|
|
|
|
DPRINT("Vector is 0x%x\n", vector);
|
|
|
|
status = IoConnectInterrupt(¶meters->interrupt,
|
|
ServiceSoundBlasterInterrupt,
|
|
DeviceObject,
|
|
(PKSPIN_LOCK) NULL,
|
|
vector,
|
|
irq_level,
|
|
irq_level,
|
|
Latched, /* Latched / LevelSensitive */
|
|
FALSE, /* shareable */
|
|
affinity,
|
|
FALSE);
|
|
|
|
if ( status == STATUS_INVALID_PARAMETER )
|
|
status = STATUS_DEVICE_CONFIGURATION_ERROR;
|
|
|
|
return status;
|
|
}
|