mirror of
https://git.proxmox.com/git/fwupd
synced 2026-01-28 11:55:09 +00:00
The daemon creates a baseclass of either FuUsbDevice or FuUdevDevice when the devices are added or coldplugged to match the quirk database and to find out what plugin to run. This is proxied to plugins, but they are given the GUsbDevice or GUdevDevice and the FuDevice is just thrown away. Most plugins either use a FuUsbDevice or superclassed version like FuNvmeDevice and so we re-create the FuDevice, re-probe the hardware, re-query the quirk database and then return this to the daemon. In some cases, plugins actually probe the hardware three times (!) by creating a FuUsbDevice to get the quirks, so that the plugin knows what kind of superclass to create, which then itself probes the hardware again. Passing the temporary FuDevice to the plugins means that the simplest ones can just fu_plugin_device_add() the passed in object, or create a superclass and incorporate the actual GUsbDevice and all the GUIDs. This breaks internal plugin API but speeds up startup substantially and deletes a lot of code. |
||
|---|---|---|
| .. | ||
| data | ||
| ebitdo.quirk | ||
| fu-ebitdo-common.c | ||
| fu-ebitdo-common.h | ||
| fu-ebitdo-device.c | ||
| fu-ebitdo-device.h | ||
| fu-plugin-ebitdo.c | ||
| meson.build | ||
| README.md | ||
8Bitdo Support
Introduction
This plugin can flash the firmware on the 8Bitdo game pads.
Ebitdo support is supported directly by this project with the embedded libebitdo library and is possible thanks to the vendor open sourcing the flashing tool.
The 8Bitdo devices share legacy USB VID/PIDs with other projects and so we have to be a bit careful to not claim other devices as our own.