summaryrefslogtreecommitdiffstats
path: root/sys/tools
Commit message (Collapse)AuthorAgeFilesLines
* Catch up with ACPI-CA 20070320 import.jkim2007-03-221-5/+5
|
* - 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
* - Add two checks for syntax errorsdds2006-05-301-7/+13
| | | | | - Improve error reporting - Remove redundant conditionals
* Assertion code specifications are introduced using special characterdds2006-05-301-5/+5
| | | | | sequences that are distinct from comments. %% is used for argument locks; %! for pre- and post-conditions.
* Update usage comment to match reality.dds2006-05-261-1/+2
|
* 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
* Eradicate caddr_t from the VFS API.des2005-12-141-2/+2
|
* Nuke vnodeop_desc.vdesc_transports, which has been unused since the dawndes2005-12-141-2/+1
| | | | of time (or the inception of ncvs, whichever came last)
* Add convenience macros for bus_space usage that doesn't require specificationphk2005-09-241-0/+68
| | | | | | | | | | | | of bus tag+handle. Instead of bus_space_write_1(sc->tag, sc->handle, ...) this macros offer bus_write_1(sc->resource, ...) The name+argument transformation is constant and the the macros are generated (by hand) by the script in tools/bus_macro.sh.
* Allow EVFILT_VNODE events to work on every filesystem type, not justssouhlal2005-06-091-9/+6
| | | | | | | | | | | | | | | UFS by: - Making the pre and post hooks for the VOP functions work even when DEBUG_VFS_LOCKS is not defined. - Moving the KNOTE activations into the corresponding VOP hooks. - Creating a MNTK_NOKNOTE flag for the mnt_kern_flag field of struct mount that permits filesystems to disable the new behavior. - Creating a default VOP_KQFILTER function: vfs_kqfilter() My benchmarks have not revealed any performance degradation. Reviewed by: jeff, bde Approved by: rwatson, jmg (kqueue changes), grehan (mentor)
* - Add the character "E" to the understood lock types. This meansjeff2005-04-111-0/+2
| | | | | | the VOP requires an exclusive lock. Sponsored by: Isilon Systems, Inc.
* Add VOP_FOO_APV() which takes a pointer to the vop_vector.phk2005-02-081-6/+11
| | | | | | | This allows stacked or partitioned filesystems to say "Continue the normal resolution from here", for instace from FFS to UFS. Use VNASSERT() instead of KASSERT().
* Get rid of the VDESC() macro while the pot is boiling anyway, it isphk2005-01-131-2/+2
| | | | | only used from generate files now, so we might as well generate the right stuff from the start.
* Change the generated VOP_ macro implementations to improve type checkingphk2005-01-131-48/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and KASSERT coverage. After this check there is only one "nasty" cast in this code but there is a KASSERT to protect against the wrong argument structure behind that cast. Un-inlining the meat of VOP_FOO() saves 35kB of text segment on a typical kernel with no change in performance. We also now run the checking and tracing on VOP's which have been layered by nullfs, umapfs, deadfs or unionfs. Add new (non-inline) VOP_FOO_AP() functions which take a "struct foo_args" argument and does everything the VOP_FOO() macros used to do with checks and debugging code. Add KASSERT to VOP_FOO_AP() check for argument type being correct. Slim down VOP_FOO() inline functions to just stuff arguments into the struct foo_args and call VOP_FOO_AP(). Put function pointer to VOP_FOO_AP() into vop_foo_desc structure and make VCALL() use it instead of the current offsetoff() hack. Retire vcall() which implemented the offsetoff() Make deadfs and unionfs use VOP_FOO_AP() calls instead of VCALL(), we know which specific call we want already. Remove unneeded arguments to VCALL() in nullfs and umapfs bypass functions. Remove unused vdesc_offset and VOFFSET(). Generally improve style/readability of the generated code.
* /* -> /*- for license, minor formatting changesimp2005-01-076-5/+11
|
* dheader and hheader were the same function, really, so rename one ofimp2004-12-311-35/+13
| | | | them to header, kill the other and use both with a different arg...
* Use functions to make the program clearer.imp2004-12-311-125/+144
|
* Allow -d and -h as command line flags. These are used to generateimp2004-12-301-126/+163
| | | | | only the .h or _data.h files respectively. Restructure code to allow for this.
* Rather than casting through a (void *) to avoid the aliasing warning,imp2004-12-131-3/+3
| | | | | | | | | do things correctly from an aliasing perspective. Put the vop_generic_args element as the first element for all the vop_*_args and adjust the code to take the address of that instead of the structure. OK'd based on a vague description by: phk
* Cast from the specific vop_*_args to vop_generic_args via a (void *)imp2004-12-131-1/+1
| | | | | | | | | | pointer to eliminate the hundreds of warnings that we have in tree at the moment. # Chances are good that all the struct vop_*_args should have, as its # first element, the struct vop_generic_args, and when necessary to # reference it, we just take its address rather than going through # this double case.
* Back when VOP_* was introduced, we did not have new-style structphk2004-12-011-7/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | initializations but we did have lofty goals and big ideals. Adjust to more contemporary circumstances and gain type checking. Replace the entire vop_t frobbing thing with properly typed structures. The only casualty is that we can not add a new VOP_ method with a loadable module. History has not given us reason to belive this would ever be feasible in the the first place. Eliminate in toto VOCALL(), vop_t, VNODEOP_SET() etc. Give coda correct prototypes and function definitions for all vop_()s. Generate a bit more data from the vnode_if.src file: a struct vop_vector and protype typedefs for all vop methods. Add a new vop_bypass() and make vop_default be a pointer to another struct vop_vector. Remove a lot of vfs_init since vop_vector is ready to use from the compiler. Cast various vop_mumble() to void * with uppercase name, for instance VOP_PANIC, VOP_NULL etc. Implement VCALL() by making vdesc_offset the offsetof() the relevant function pointer in vop_vector. This is disgusting but since the code is generated by a script comparatively safe. The alternative for nullfs etc. would be much worse. Fix up all vnode method vectors to remove casts so they become typesafe. (The bulk of this is generated by scripts)
* emit a "typedef vop_foo_t(struct vop_foo_args *);" which we can usephk2004-12-011-0/+1
| | | | to prototype VOP functions with.
* Pass doxygen doc comments through to the output.dfr2004-07-111-8/+33
|
* Complete quirk handling script by matching the in-kernel table format.njl2004-06-301-16/+11
| | | | | Use a union to properly assign values. Collapse some unnecessary variables in the revision rules.
* Add a script to parse acpi_quirks into a header file that we can compilenjl2004-06-241-0/+191
| | | | | | into ACPI. Script written by Mark Santcroos with some edits from myself. Submitted by: marks
* devlist2h.awk is too generic a name for what it does. It reallyimp2004-05-261-147/+0
| | | | | | | | converts miidevs to a .h file, so rename to reflect that. The usb and pccard versions have also been renamed and will be hooked into the build system shortly (I've made the conversion in my p4 tree).
* Correct $FreeBSD$ style.obrien2004-04-161-2/+2
|
* Remove advertising clause from University of California Regent's license,imp2004-04-072-8/+0
| | | | | | per letter dated July 22, 1999. Approved by: core
* Attempt to clean up the emu10k1-alsa.h stuff so that config doesn'tpeter2004-02-051-0/+21
| | | | | | delete it each time its run and have it regenerated each time by make. I used a quick hackish script rather than putting it in the files file and used the before-depend rule to avoid the depend/no-depend hacks.
* Changes for new SMP-safe kobj method dispatch algorithm.dfr2003-10-161-2/+6
|
* Don't check the state of the vnode interlock if the specification saystruckman2003-06-221-1/+7
| | | | | | | that the lock should not be checked. Skip the lock assertion checks for *vpp or any other pointer to a vnode pointer if vpp (or equivalent) is NULL.
* The assertions generated to test VFS locking never included checksse2003-06-201-0/+2
| | | | | | | | | | | | | | | | for vnodes reached through double indirection (i.e. **vpp). This is worked-around by special-casing the identifier "vpp" (adding one level of indirection). The alternative fix mentioned in the PR had required substantial changes to this script. In case there are locking violations that had been hidden without this patch, they may suddenly show up, now ... This change does not affect code compiled without DEBUG_VFS_LOCKS. PR: kern/46652
* MFp4:imp2003-03-281-53/+5
| | | | | Don't generate the data file. Use 0xffffffff rather than -1 for sign safety as these fields are uint32_t.
* Remove miidevs.h and generate it from miidevs at compile time.obrien2003-01-192-2/+2
| | | | The devlist2h.awk tool to do this has been repocopied to sys/tools/.
* - Move ASSERT_VOP_*LOCK* functionality into functions in vfs_subr.cjeff2002-09-261-1/+1
| | | | | | | - Make the VI asserts more orthogonal to the rest of the asserts by using a new, common vfs_badlock() function and adding a 'str' arg. - Adjust generated ASSERTS to match the new prototype. - Adjust explicit ASSERTS to match the new prototype.
* - Automatically generate and insert KTR points in all VOPs.jeff2002-09-231-0/+24
|
* - Add two new debugging macros: ASSERT_VI_LOCKED and ASSERT_VI_UNLOCKEDjeff2002-08-211-0/+1
| | | | | | | | - Use the new VI asserts in place of the old mtx_assert checks. - Add the VI asserts to the automated lock checking in the VOP calls. The interlock should not be held across vops with a few exceptions. - Add the vop_(un)lock_{pre,post} functions to assert that interlock is held when LK_INTERLOCK is set.
* Use mv -f. Otherwise if you accidently build as root, and then as a user,obrien2002-08-201-2/+2
| | | | | | it keeps asking you if you want to overwrite it or not. Submitted by: peter
* - Add automatic post vop debug checks. These work in both the success andjeff2002-07-301-5/+14
| | | | failure cases.
* - Use 'options DEBUG_VFS_LOCKS' instead of the DEBUG_ALL_VFS_LOCKSjeff2002-07-071-5/+7
| | | | environment variable to enable the lock verifiction code.
* Add a new configuration directive that inserts calls to debugging functionsjeff2002-07-061-1/+28
| | | | | | | | | | | | | | | | in the VOP inlines. This is intended to replace the simple locking specifications for calls that have more complicated behavior such as rename and lookup. The syntax of the new entries is: #! name pre/post function If the function is marked 'pre' it is executed prior to calling the VOP and takes a pointer to a struct vop_{name}_args as it's only parameter. If the function is marked 'post' it is executed after the VOP call and takes a pointer to a struct vop_{name}_args as it's first parameter and the integer return value from the vop as the second paramter.
* include systm.h in vnode_if.c so that panic is defined when we're doingjeff2002-05-041-0/+1
| | | | DEBUG_ALL_VFS_LOCKS.
* Awk version of makeobjops.PL.obrien2002-05-011-0/+485
| | | | | | | Note the invocation ordering is slightly different: awk -f makeobjops.awk foo.m -ch Submitted by: Oliver Fromme <olli@fromme.com>
* constifyjoe2002-04-011-2/+2
|
* Return vnode_if back to its AWK roots.obrien2002-03-011-289/+233
| | | | | It became a Perl script in rev 1.20. This removes one more dependence on perl for the kernel build.
* Throw the $FreeBSD$s back in, properly escaping them.silby2002-01-041-4/+4
|
OpenPOWER on IntegriCloud