Richard Hughes
9d33c29e92
Split out the string helpers to a new source file
2022-06-14 14:36:52 -05:00
Richard Hughes
3fe9c0de34
Split out the CRC and sum functions to new source files
2022-06-14 14:36:52 -05:00
Mario Limonciello
55de39c077
trivial: reformat the whole tree to match new format
2021-08-24 11:18:40 -05:00
Richard Hughes
52441f28a4
Allow objects to deserialize to XML
...
This makes a lot more sense; we can parse a firmware and export the same XML
we would use in a .builder.xml file. This allows us to two two things:
* Check we can round trip from XML -> binary -> XML
* Using a .builder.xml file we can check ->write() is endian safe
2021-03-15 12:07:30 +00:00
Richard Hughes
5c9b1fcc81
Only include the start year in the copyright header
...
The end year is legally and functionally redundant, and more importantly causes
cherry-pick conflicts when trying to maintain old branches. Use git for history.
2021-01-07 14:48:16 +00:00
Richard Hughes
44ae2a75e4
trivial: Add CRC8 as well
2020-09-25 18:00:21 +01:00
Richard Hughes
640dbbb0f0
vli: Do not fall back to the recovery write for usbhubs
...
The checksum check was only being calculated on the size of the pointer, rather
than the size of the struct.
2020-03-10 12:07:28 +00:00
Richard Hughes
15857f8056
vli: Move the CRC calculations out of usbhub scope
2020-01-02 13:24:13 +00:00
Richard Hughes
e968c0ec07
vli: Have one 'DeviceKind' for all objects
...
We'll soon have PD devices that are not children of the FuVliUsbhubDevice and
so it makes sense to flattern out the namespace. Also, less code.
2020-01-02 13:24:13 +00:00
Richard Hughes
f169186700
vli: Rename the vli_usbhub
plugin to vli
...
In the future we'll be doing PD updates without any USB hub at all.
2020-01-02 13:24:13 +00:00