diff options
author | 2008-05-30 13:57:27 +0300 | |
---|---|---|
committer | 2008-07-10 14:47:36 +0100 | |
commit | bacfe09dd7545467965e8d8f1eab20bc62dce00d (patch) | |
tree | 1f8b50e22439ef6d65089b3c5f875a6943b9c9df /kernel/mutex-debug.c | |
parent | firmware: Add firmware installation to modules_install, add firmware_install (diff) | |
download | linux-rng-bacfe09dd7545467965e8d8f1eab20bc62dce00d.tar.xz linux-rng-bacfe09dd7545467965e8d8f1eab20bc62dce00d.zip |
ihex.h: binary representation of ihex records
Some devices need their firmware as a set of {address, len, data...}
records in some specific order rather than a simple blob.
The normal way of doing this kind of thing is 'ihex', which is a text
format and not entirely suitable for use in the kernel.
This provides a binary representation which is very similar, but much
more compact -- and a helper routine to skip to the next record,
because the alignment constraints mean that everybody will screw it up
for themselves otherwise.
Also a helper function which can verify that a 'struct firmware'
contains a valid set of ihex records, and that following them won't run
off the end of the loaded data.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'kernel/mutex-debug.c')
0 files changed, 0 insertions, 0 deletions