DragonFly BSD
DragonFly kernel List (threaded) for 2010-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: firmware discussion

From: Johannes Hofmann <johannes.hofmann@xxxxxx>
Date: 03 May 2010 23:27:03 GMT

Matthew Dillon <dillon@apollo.backplane.com> wrote:
>    Well, the DFly kernel has some very easy-to-use file access functions
>    ala fp_open() and friends (see kern_checkpoint.c for a use case), so
>    accessing the firmware file directly is easy enough.

I thought about writing a generic firmware module using the new
FreeBSD API which reads firmware files from a certain directory
using fp_open().
However, it seems that available firmware images need to be announced
with firmware_register() to make them available, so I would need some
sort of opendir() in kernel to scan the firmware directory and
register the available files with firmware_register().
Alternatively we could adjust subr_firmware.c to trigger a file read
attempt in case the requested image has not yet been registered.


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]