Brom Mode Mtk Driver (NEWEST)

[Service_Inst] DisplayName = %ServiceName% ServiceType = 1 StartType = 3 ErrorControl = 1 ServiceBinary = %12%\mtk_brom.sys LoadOrderGroup = Extended Base

[USB_Install.HW] AddReg = COMAddReg

WDF_IO_QUEUE_CONFIG_INIT_DEFAULT_QUEUE(&queueConfig, WdfIoQueueDispatchSequential); queueConfig.EvtIoRead = BROM_EvtIoRead; queueConfig.EvtIoWrite = BROM_EvtIoWrite; return WdfIoQueueCreate(Device, &queueConfig, WDF_NO_OBJECT_ATTRIBUTES, &devExt->Queue); brom mode mtk driver

[Strings] ProviderName = "MediaTek Inc." MfgName = "MediaTek" DeviceDesc = "MediaTek USB BROM Port" ServiceName = "MTK BROM Driver" This is a minimal functional WDF USB driver for BROM mode — handles bulk read/write. queueConfig.EvtIoRead = BROM_EvtIoRead

[USB_Install] Include = machine.inf Needs = COMPORT.NT AddService = mtk_brom, 0x00000002, Service_Inst queueConfig.EvtIoWrite = BROM_EvtIoWrite

NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath) WDF_DRIVER_CONFIG config; WDF_DRIVER_CONFIG_INIT(&config, BROM_EvtDeviceAdd); return WdfDriverCreate(DriverObject, RegistryPath, WDF_NO_OBJECT_ATTRIBUTES, &config, WDF_NO_HANDLE);

[MTKDevices.NTamd64] %DeviceDesc% = USB_Install, USB\VID_0E8D&PID_0003 %DeviceDesc% = USB_Install, USB\VID_0E8D&PID_2000

[Service_Inst] DisplayName = %ServiceName% ServiceType = 1 StartType = 3 ErrorControl = 1 ServiceBinary = %12%\mtk_brom.sys LoadOrderGroup = Extended Base

[USB_Install.HW] AddReg = COMAddReg

WDF_IO_QUEUE_CONFIG_INIT_DEFAULT_QUEUE(&queueConfig, WdfIoQueueDispatchSequential); queueConfig.EvtIoRead = BROM_EvtIoRead; queueConfig.EvtIoWrite = BROM_EvtIoWrite; return WdfIoQueueCreate(Device, &queueConfig, WDF_NO_OBJECT_ATTRIBUTES, &devExt->Queue);

[Strings] ProviderName = "MediaTek Inc." MfgName = "MediaTek" DeviceDesc = "MediaTek USB BROM Port" ServiceName = "MTK BROM Driver" This is a minimal functional WDF USB driver for BROM mode — handles bulk read/write.

[USB_Install] Include = machine.inf Needs = COMPORT.NT AddService = mtk_brom, 0x00000002, Service_Inst

NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath) WDF_DRIVER_CONFIG config; WDF_DRIVER_CONFIG_INIT(&config, BROM_EvtDeviceAdd); return WdfDriverCreate(DriverObject, RegistryPath, WDF_NO_OBJECT_ATTRIBUTES, &config, WDF_NO_HANDLE);

[MTKDevices.NTamd64] %DeviceDesc% = USB_Install, USB\VID_0E8D&PID_0003 %DeviceDesc% = USB_Install, USB\VID_0E8D&PID_2000