summaryrefslogtreecommitdiffstats
path: root/sys/tools/fw_stub.awk
Commit message (Collapse)AuthorAgeFilesLines
* Prefer NULL over 0 for pointerskevlo2012-10-091-1/+1
|
* GNU awk does not output escaped newlines in multi-line printc statements. Thisrstone2011-03-311-8/+8
| | | | | | | | | | | | | | | leads to compile errors when trying to compile firmware(9) stubs created with gawk, as multiple #include statements end up on the same line. Replace the multi-line printc statement that outputs all of the #includes with one printc per #include. This allows modules compatible with firmware(9) to be cross-built from a Linux machine without requiring the one true awk to be installed. I've intentionally done the minimal set of changes necessary to make gawk produce valid (but not pretty) C code, to reduce the churn and keep fw_stubs.awk as readable as possible. Approved by: emaste (mentor) MFC after: 2 weeks
* Output a comment on top of each generated file explaining where it camerpaulo2009-10-251-1/+5
| | | | from.
* Allow KMOD with hypens and dots.fjoe2009-10-201-7/+9
| | | | MFC after: 1 week
* - Add Intel firmwares for Intel PRO/Wireless LAN 2100/2200/2915 cards in aflz2007-03-021-4/+30
| | | | | | | | | | | | | uuencoded format along with their respective LICENSE files. - Add new share/doc/legal directory to BSD.usr.dist mtree file. This is the place we install LICENSE files for restricted firmwares. - Teach firmware(9) and kmod.mk about licensed firmwares. Restricted firmwares won't load properly unless legal.<name>.license_ack is set to 1, either via kenv(1) or /boot/loader.conf. Reviewed by: mlaier, sam Permitted by: Intel (via Andrew Wilson) MFC after: 1 month
* Fix obvious typo (use long name if short name isn't provided).flz2007-02-271-1/+1
| | | | | Reviewed by: sam MFC after: 3 days
* Cleanup and document the implementation of firmware(9) based onluigi2007-02-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a version that i posted earlier on the -current mailing list, and subsequent feedback received. The core of the change is just in sys/firmware.h and kern/subr_firmware.c, while other files are just adaptation of the clients to the ABI change (const-ification of some parameters and hiding of internal info, so this is fully compatible at the binary level). In detail: - reduce the amount of information exported to clients in struct firmware, and constify the pointer; - internally, document and simplify the implementation of the various functions, and make sure error conditions are dealt with properly. The diffs are large, but the code is really straightforward now (i hope). Note also that there is a subtle issue with the implementation of firmware_register(): currently, as in the previous version, we just store a reference to the 'imagename' argument, but we should rather copy it because there is no guarantee that this is a static string. I realised this while testing this code, but i prefer to fix it in a later commit -- there is no regression with respect to the past. Note, too, that the version in RELENG_6 has various bugs including missing locks around the module release calls, mishandling of modules loaded by /boot/loader, and so on, so an MFC is absolutely necessary there. I was just postponing it until this cleanup to avoid doing things twice. MFC after: 1 week
* Check for errors when registering and unregistering firmware modules. Thisjhb2006-06-161-12/+25
| | | | | | | | | prevents the unfortunate situation whereby one might kldload a firmware module by hand and later kldunload it while a driver still has an open reference to it. MFC after: 1 week Glanced at by: iedowse
* Fix a leftover "iwi_boot" string.mlaier2006-01-301-1/+1
| | | | Submitted by: gallatin
* firmware(9) is a subsystem to load binary data into the kernel via amlaier2006-01-291-0/+189
specially crafted module. There are several handrolled sollutions to this problem in the tree already which will be replaced with this. They include iwi(4), ipw(4), ispfw(4) and digi(4). No objection from: arch MFC after: 2 weeks X-MFC after: some drivers have been converted
OpenPOWER on IntegriCloud