Bluetooth driverDraft
Maturity: experimental. The hardware, the way the code reaches it, firmware and results are on the page of each generation; the table at the end links them.
What the driver is#
win/obbt is a KMDF bus driver for the Bluetooth function of the built-in
wireless module, bound by the PCI id of that function (given on the generation pages). It
does not implement a Bluetooth stack. It carries HCI packets between Windows
and the module and creates one static child device with a hardware ID of its
own (given on the generation pages) and compatible ID MS_BTHX_BTHMINI; the inbox Windows Bluetooth INF binds its mini-driver to
that child, so obbt.inf has no Bluetooth class entries of its own.
From the header of kmdf/obbt_fdo.c:
- Start. The driver reads the module's DMA offset and Bluetooth address
from the ACPI node's
_DSDproperties, allocates one contiguous buffer, starts the module's main stage over the ring transport, opens the rings, runs a short vendor initialisation sequence and a self-test (HCI reset, read local version, read address), then opens the paths Windows uses. - Run. A 1 ms timer polls the transfer tails the module writes into host memory, completes writes, fills pending reads and requeues receive elements. Every 100 ms it checks the module's stage and status.
- Fail. A failed stage or an out-of-range index fails all requests and marks the device failed.
- D3 and restart. The module cannot start its main stage twice without a function reset, so the driver keeps the buffer and parks the rings instead of freeing them; the next start takes them over.
- Logging. The driver writes diagnostic lines to the debug output and to registry values under the device's hardware key.
- Power. D0 only: no idle power state and no wake.
Build and host tests#
- Host tests:
make -C tests/obbt_host test. - Windows package:
tools/win/build-obbt.sh, following the overview. It was not re-run for this page; its default build host belongs to the original build machine.
Generations#
The hardware reality of this stream, per generation:
| Generation | Page |
|---|---|
| M5 Series | M5 Series |