44{
49 DBGPRINT((
"CCMIAdapter[%p]::init()",
this));
50
52
55
57
58 cm.IOBase = 0;
60 if (
ResourceList->FindTranslatedPort(
i)->u.Port.Length == 0x100) {
62 }
63 }
64
65 if (cm.IOBase == 0) {
67 }
68 cm.MPUBase = 0;
69
70#ifdef WAVERT
72#else
74#endif
77 INFOPRINT((
" MPU Base: 0x%X", cm.MPUBase));
78
79 if (!queryChip()) {
81 }
82
83 INFOPRINT((
" Chip Version: %d", cm.chipVersion));
84 INFOPRINT((
" Max Channels: %d", cm.maxChannels));
85 INFOPRINT((
" CanAC3HW: %d", cm.canAC3HW));
86
87 resetController();
88
90 if (!
NT_SUCCESS(ntStatus) || !(InterruptSync)) {
91 DBGPRINT((
"Failed to create an interrupt sync!"));
93 }
94 ntStatus = InterruptSync->RegisterServiceRoutine(InterruptServiceRoutine, (
PVOID)
this,
FALSE);
96 DBGPRINT((
"Failed to register ISR!"));
97 return ntStatus;
98 }
99
100 ntStatus = InterruptSync->Connect();
102 DBGPRINT((
"Failed to connect the ISR with InterruptSync!"));
103 return ntStatus;
104 }
105
106
108
109 return ntStatus;
110}
#define NT_SUCCESS(StatCode)
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
#define RtlFillMemory(Dest, Length, Fill)
NTSTATUS NTAPI PcNewInterruptSync(OUT PINTERRUPTSYNC *OutInterruptSync, IN PUNKNOWN OuterUnknown OPTIONAL, IN PRESOURCELIST ResourceList, IN ULONG ResourceIndex, IN INTERRUPTSYNCMODE Mode)
@ InterruptSyncModeNormal
#define STATUS_INSUFFICIENT_RESOURCES
_In_ PDEVICE_OBJECT DeviceObject
_Must_inspect_result_ _In_ WDFIORESREQLIST _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFIORESLIST * ResourceList