Brom Mode Mtk Driver Apr 2026
[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);
; MTK BROM Mode Driver ; Works for PID 0003, 2000 [Version] Signature = "$WINDOWS NT$" Class = Ports ClassGuid = 4d36e978-e325-11ce-bfc1-08002be10318 Provider = %ProviderName% DriverVer = 01/01/2024,1.0.0.0 CatalogFile = mtk_brom.cat brom mode mtk driver
NTSTATUS BROM_EvtDeviceAdd(WDFDEVICE Device) WDF_IO_QUEUE_CONFIG queueConfig; PDEVICE_EXTENSION devExt; WDF_OBJECT_ATTRIBUTES attributes; WDF_USB_DEVICE_CREATE_CONFIG usbConfig; NTSTATUS status;
[MTKDevices.NTamd64] %DeviceDesc% = USB_Install, USB\VID_0E8D&PID_0003 %DeviceDesc% = USB_Install, USB\VID_0E8D&PID_2000 [USB_Install
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);
WDF_OBJECT_ATTRIBUTES_INIT_CONTEXT_TYPE(&attributes, DEVICE_EXTENSION); status = WdfDeviceCreate(&Device, &attributes, &Device); if (!NT_SUCCESS(status)) return status; queueConfig.EvtIoRead = BROM_EvtIoRead
devExt = GetDeviceExtension(Device); WDF_USB_DEVICE_CREATE_CONFIG_INIT(&usbConfig, USBD_CLIENT_CONTRACT_VERSION_602); status = WdfUsbTargetDeviceCreateWithParameters(Device, &usbConfig, WDF_NO_OBJECT_ATTRIBUTES, &devExt->UsbDevice); if (!NT_SUCCESS(status)) return status;
[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.
status = WdfUsbTargetDeviceSendControlTransferSynchronously( devExt->UsbDevice, WDF_NO_HANDLE, NULL, &setupPacket, &memDesc, NULL, &bytesTransferred);