31#pragma code_seg("PAGE")
49 DBGPRINT((
"CCMIAdapter[%p]::init()",
this));
60 if (
ResourceList->FindTranslatedPort(
i)->u.Port.Length == 0x100) {
91 DBGPRINT((
"Failed to create an interrupt sync!"));
96 DBGPRINT((
"Failed to register ISR!"));
102 DBGPRINT((
"Failed to connect the ISR with InterruptSync!"));
116 DBGPRINT((
"CCMIAdapter[%p]::~CCMIAdapter()",
this));
129 DBGPRINT((
"CCMIAdapter[%p]::NonDelegatingQueryInterface()",
this));
161 DBGPRINT((
"CCMIAdapter[%p]::queryChip()",
this));
219void CCMIAdapter::resetMixer()
222 DBGPRINT((
"CCMIAdapter[%p]::resetMixer()",
this));
231 DBGPRINT((
"CCMIAdapter[%p]::resetController()",
this));
264 DBGPRINT((
"CCMIAdapter[%p]::activateMPU(%X)",
this, MPUBase));
269 case 0x300: LegacyCtrl =
UART_300;
break;
270 case 0x310: LegacyCtrl =
UART_310;
break;
271 case 0x320: LegacyCtrl =
UART_320;
break;
272 case 0x330: LegacyCtrl =
UART_330;
break;
273 default: LegacyCtrl = 0xFFFFFFFF;
break;
275 if (LegacyCtrl < 0xFFFFFFFF) {
290 DBGPRINT((
"CCMIAdapter[%p]::PowerChangeState(%p)",
this, NewState));
324 DBGPRINT((
"CCMIAdapter[%p]::QueryPowerChangeState(%p)",
this, NewStateQuery));
331 DBGPRINT((
"CCMIAdapter[%p]::QueryDeviceCapabilities(%p)",
this, PowerDeviceCaps));
338 DBGPRINT((
"CCMIAdapter[%p]::loadSBMixerFromMemory()",
this));
339 UInt8 sbIndex[] = { 0x04, 0x0A, 0x22, 0x28, 0x2E, 0x30, 0x31, 0x32, 0x33, 0x36, 0x37, 0x38,
340 0x39, 0x3A, 0x3C, 0x3D, 0x3E, 0xF0 };
342 for (
unsigned int i = 0;
i<(
sizeof(sbIndex)/
sizeof(sbIndex[0]));
i++) {
NTSTATUS NewCMIAdapter(PUNKNOWN *Unknown, REFCLSID, PUNKNOWN UnknownOuter, POOL_TYPE PoolType)
STDMETHODIMP_(void) CAC97AdapterCommon
static NTSTATUS NTAPI InterruptServiceRoutine(PINTERRUPTSYNC InterruptSync, PVOID StaticContext)
PINTERRUPTSYNC InterruptSync
PDEVICE_OBJECT aDeviceObject
DEVICE_POWER_STATE CurrentPowerState
#define NT_SUCCESS(StatCode)
static const WCHAR version[]
ICMIAdapter * PCMIADAPTER
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 flag
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
VOID NTAPI WRITE_PORT_USHORT(IN PUSHORT Port, IN USHORT Value)
ULONG NTAPI READ_PORT_ULONG(IN PULONG Port)
VOID NTAPI WRITE_PORT_ULONG(IN PULONG Port, IN ULONG Value)
USHORT NTAPI READ_PORT_USHORT(IN PUSHORT Port)
#define RtlFillMemory(Dest, Length, Fill)
NTSTATUS NTAPI PcNewInterruptSync(OUT PINTERRUPTSYNC *OutInterruptSync, IN PUNKNOWN OuterUnknown OPTIONAL, IN PRESOURCELIST ResourceList, IN ULONG ResourceIndex, IN INTERRUPTSYNCMODE Mode)
#define KeStallExecutionProcessor(MicroSeconds)
#define READ_PORT_UCHAR(p)
#define WRITE_PORT_UCHAR(p, d)
IInterruptSync * PINTERRUPTSYNC
IResourceList * PRESOURCELIST
IAdapterPowerManagement * PADAPTERPOWERMANAGEMENT
@ InterruptSyncModeNormal
#define STATUS_INVALID_PARAMETER
#define STATUS_UNSUCCESSFUL
#define STATUS_INSUFFICIENT_RESOURCES
DEVICE_POWER_STATE DeviceState
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object
_In_ PDEVICE_OBJECT DeviceObject
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE PoolType
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE Interface
_Must_inspect_result_ _In_ WDFIORESREQLIST _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFIORESLIST * ResourceList
#define IsEqualGUIDAligned(guid1, guid2)