ReactOS 0.4.15-dev-7887-g64a59a1
irq.c
Go to the documentation of this file.
1#include <ntddk.h>
2#include "sndblst.h"
3
4#if 0
6{
7 static CONST ULONG ValidIRQs[] = VALID_IRQS;
8 int i;
9
10 return TRUE; // for now...
11
12 // Check for Compaq!
13 // if ...
14
15 for (i = 0; ValidIRQs[i] != 0xffff; i ++)
16 {
17 // Consult the card
18
19// OUTPORT(pHw, BOARD_CONFIG, bConfig);
20// if (INPORT(pHEW, BOARD_ID) & 0x40)
21// pHW->ValidInterrupts |= (1 << ThisIRQ);
22
23// return (BOOLEAN)((pHw->ValidInterrupts & (1 << Interrupt)) &&
24// (! ((INPORT(pHw, BOARD_ID) & 0x80) &&
25// (Interrupt == 10 || Interrupt == 11)));
26
27 }
28
29 // else
30 // Compaq stuff?
31 {
33
34 switch (Parameters->IRQ)
35 {
36 case 10 : Expected = 0x10;
37 case 11 : Expected = 0x20;
38 case 7 : Expected = 0x30;
39 default : return FALSE;
40 }
41
42// CompaqPIDR = READ_PORT_UCHAR( ... )
43 // ...
44 }
45}
46
47
48
49BOOLEAN ISR(
50 IN PKINTERRUPT pInterrupt,
52{
53 DPRINT("*** Processing ISR ***\n");
54
55 // What do we do here then?
56
57 return FALSE;
58}
59
60
61
63{
64 PDEVICE_EXTENSION Parameters = DeviceObject->DeviceExtension;
66 KIRQL IRQ_Level;
69
70 Vector = HalGetInterruptVector(Isa, // FIX THIS
71 0, // FIX THIS
72 Parameters->IRQ,
73 Parameters->IRQ,
74 &IRQ_Level,
75 &Affinity);
76
77// Status = IoConnectInterrupt(Parameters->Interrupt, // Object
78// ISR, // Function
79// DeviceObject, // Context
80// (PKSPIN_LOCK) NULL,
81// Vector,
82// IRQ_Level,
83// IRQ_Level,
84 // mode - Latched or Level sensitive?
85 // share - if irq can be shared
86// Affinity,
87// FALSE);
88
91}
92#endif
93
BOOLEAN Expected
unsigned char BOOLEAN
LONG NTSTATUS
Definition: precomp.h:26
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
ULONG_PTR KAFFINITY
Definition: compat.h:85
NTHALAPI ULONG NTAPI HalGetInterruptVector(INTERFACE_TYPE, ULONG, ULONG, ULONG, PKIRQL, PKAFFINITY)
UCHAR KIRQL
Definition: env_spec_w32.h:591
Status
Definition: gdiplustypes.h:25
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
@ Isa
Definition: hwresource.cpp:138
#define STATUS_DEVICE_CONFIGURATION_ERROR
Definition: ntstatus.h:619
#define CONST
Definition: pedump.c:81
#define STATUS_SUCCESS
Definition: shellext.h:65
#define VALID_IRQS
Definition: sndblst.h:27
#define DPRINT
Definition: sndvol32.h:71
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
#define STATUS_INVALID_PARAMETER
Definition: udferr_usr.h:135
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
_Must_inspect_result_ _In_ WDFQUEUE _In_opt_ WDFREQUEST _In_opt_ WDFFILEOBJECT _Inout_opt_ PWDF_REQUEST_PARAMETERS Parameters
Definition: wdfio.h:869
_In_ ULONG _In_ ULONG _In_ ULONG _Out_ PKIRQL _Out_ PKAFFINITY Affinity
Definition: halfuncs.h:174
unsigned char UCHAR
Definition: xmlstorage.h:181