13#define MAX_MINIPORTS 1
34 DPRINT1(
"MPU401_KS StartDevice called\n");
45 DPRINT1(
"Calling PcNewPort with CLSID_PortMidi\n");
54 DPRINT1(
"Calling PcNewMiniport with CLSID_MiniportDriverUart\n");
63 DPRINT1(
"Calling Init of port object\n");
72 DPRINT1(
"Registering subdevice via PcRegisterSubdevice\n");
78 DPRINT1(
"PcRegisterSubdevice FAILED with status 0x%08x\n",
Status);
96 DPRINT1(
"MPU401_KS AddDevice called\n");
112 DPRINT1(
"MPU401_KS DriverEntry\n");
118 DPRINT1(
"PcInitializeAdapterDriver result 0x%08x\n",
Status);
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)
NTSTATUS NTAPI PcRegisterSubdevice(IN PDEVICE_OBJECT DeviceObject, IN PWCHAR Name, IN PUNKNOWN Unknown)
NTSTATUS NTAPI PcNewMiniport(OUT PMINIPORT *OutMiniport, IN REFCLSID ClassId)
PDEVICE_OBJECT PhysicalDeviceObject
#define NT_SUCCESS(StatCode)
DRIVER_INITIALIZE DriverEntry
_In_ PNDIS_STRING _In_ PNDIS_STRING _Out_ PDEVICE_OBJECT * pDeviceObject
static BOOL StartDevice(IN HDEVINFO DeviceInfoSet, IN PSP_DEVINFO_DATA DevInfoData OPTIONAL, IN BOOL bEnable, IN DWORD HardwareProfile OPTIONAL, OUT BOOL *bNeedReboot OPTIONAL)
#define STATUS_INVALID_PARAMETER_3
DRIVER_ADD_DEVICE AddDevice
NTSTATUS NTAPI PcNewPort(OUT PPORT *OutPort, IN REFCLSID ClassId)
IResourceList * PRESOURCELIST
NTSTATUS(NTAPI * PCPFNSTARTDEVICE)(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN PRESOURCELIST ResourceList)
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_opt_ PCUNICODE_STRING DeviceName
_Must_inspect_result_ _In_ PDRIVER_OBJECT _In_ PCUNICODE_STRING RegistryPath
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
_Must_inspect_result_ _In_ WDFIORESREQLIST _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFIORESLIST * ResourceList