15#define MAX_MINIPORTS 1
48 if ( portcls_version )
50 version = portcls_version->GetVersion();
51 portcls_version->Release();
62 else if ( port_events )
101 if ( (
ResourceList->FindTranslatedPort(0)->u.Port.Length < 16 ) ||
113 if ( (
ResourceList->FindTranslatedPort(0)->u.Port.Length < 16 ) ||
124 switch (
ResourceList->FindTranslatedPort(1)->u.Port.Length )
133 DetectedFmSynth =
TRUE;
148 if ( (
ResourceList->FindTranslatedPort(0)->u.Port.Length < 16 ) ||
149 (
ResourceList->FindTranslatedPort(1)->u.Port.Length != 2 ) ||
150 (
ResourceList->FindTranslatedPort(2)->u.Port.Length != 4 ) ||
159 DetectedFmSynth =
TRUE;
173 *HasUart = DetectedUart;
175 *HasFmSynth = DetectedFmSynth;
177 *HasWaveTable = DetectedWaveTable;
189 BOOLEAN HasUart, HasFmSynth, HasWaveTable;
289 if ( (*Resources).Wave !=
NULL )
292 (*Resources).Wave =
NULL;
295 if ( (*Resources).Adapter !=
NULL )
298 (*Resources).Adapter =
NULL;
NTSTATUS NTAPI PcAddAdapterDevice(IN PDRIVER_OBJECT DriverObject, IN PDEVICE_OBJECT PhysicalDeviceObject, IN PCPFNSTARTDEVICE StartDevice, IN ULONG MaxObjects, IN ULONG DeviceExtensionSize)
NTSTATUS NTAPI PcInitializeAdapterDriver(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPathName, IN PDRIVER_ADD_DEVICE AddDevice)
PDEVICE_OBJECT PhysicalDeviceObject
#define NT_SUCCESS(StatCode)
static const WCHAR version[]
DRIVER_INITIALIZE DriverEntry
NTSTATUS DetectFeatures(IN PRESOURCELIST ResourceList, OUT PBOOLEAN HasUart, OUT PBOOLEAN HasFmSynth, OUT PBOOLEAN HasWaveTable)
NTSTATUS AssignResources(IN PRESOURCELIST ResourceList, OUT Resources *Resources)
NTSTATUS StartDevice(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN PRESOURCELIST ResourceList)
DWORD DetectPlatform(PPORTTOPOLOGY Port)
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
_Must_inspect_result_ _Out_ PULONG IoCount
#define STATUS_DEVICE_CONFIGURATION_ERROR
DRIVER_ADD_DEVICE AddDevice
IResourceList * PRESOURCELIST
IPortEvents * PPORTEVENTS
#define AddInterruptFromParent(p, n)
IPortClsVersion * PPORTCLSVERSION
#define AddPortFromParent(p, n)
#define AddDmaFromParent(p, n)
IPortTopology * PPORTTOPOLOGY
PORTCLASSAPI NTSTATUS NTAPI PcNewResourceSublist(OUT PRESOURCELIST *OutResourceList, IN PUNKNOWN OuterUnknown OPTIONAL, IN POOL_TYPE PoolType, IN PRESOURCELIST ParentList, IN ULONG MaximumEntries)
_In_ PDEVICE_OBJECT DeviceObject
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
_Must_inspect_result_ _In_ WDFIORESREQLIST _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFIORESLIST * ResourceList
DRIVER_ADD_DEVICE * PDRIVER_ADD_DEVICE