adlink: clean up empty lines in .c and .h files
Reapply, with minor tweaks, r338025, from the original commit:Remove unused and easy to misuse PNP macro parameterInspired by r338025, just remove the element size parameter to theMODULE_PNP_INF
Reapply, with minor tweaks, r338025, from the original commit:Remove unused and easy to misuse PNP macro parameterInspired by r338025, just remove the element size parameter to theMODULE_PNP_INFO macro entirely. The 'table' parameter is now required tohave correct pointer (or array) type. Since all invocations of the macroalready had this property and the emitted PNP data continues to include theelement size, there is no functional change.Mostly done with the coccinelle 'spatch' tool: $ cat modpnpsize0.cocci @normaltables@ identifier b,c; expression a,d,e; declarer MODULE_PNP_INFO; @@ MODULE_PNP_INFO(a,b,c,d, -sizeof(d[0]), e); @singletons@ identifier b,c,d; expression a; declarer MODULE_PNP_INFO; @@ MODULE_PNP_INFO(a,b,c,&d, -sizeof(d), 1); $ rg -l MODULE_PNP_INFO -- sys | \ xargs spatch --in-place --sp-file modpnpsize0.cocci(Note that coccinelle invokes diff(1) via a PATH search and expects diff totolerate the -B flag, which BSD diff does not. So I had to link gdiff intoPATH as diff to use spatch.)Tinderbox'd (-DMAKE_JUST_KERNELS).Approved by: re (glen)
show more ...
Back out r338035 until Warner is finished churning GSoC PNP patchesI was not aware Warner was making or planning to make forward progress inthis area and have since been informed of that.It's ea
Back out r338035 until Warner is finished churning GSoC PNP patchesI was not aware Warner was making or planning to make forward progress inthis area and have since been informed of that.It's easy to apply/reapply when churn dies down.
Remove unused and easy to misuse PNP macro parameterInspired by r338025, just remove the element size parameter to theMODULE_PNP_INFO macro entirely. The 'table' parameter is now required tohave
Remove unused and easy to misuse PNP macro parameterInspired by r338025, just remove the element size parameter to theMODULE_PNP_INFO macro entirely. The 'table' parameter is now required tohave correct pointer (or array) type. Since all invocations of the macroalready had this property and the emitted PNP data continues to include theelement size, there is no functional change.Mostly done with the coccinelle 'spatch' tool: $ cat modpnpsize0.cocci @normaltables@ identifier b,c; expression a,d,e; declarer MODULE_PNP_INFO; @@ MODULE_PNP_INFO(a,b,c,d, -sizeof(d[0]), e); @singletons@ identifier b,c,d; expression a; declarer MODULE_PNP_INFO; @@ MODULE_PNP_INFO(a,b,c,&d, -sizeof(d), 1); $ rg -l MODULE_PNP_INFO -- sys | \ xargs spatch --in-place --sp-file modpnpsize0.cocci(Note that coccinelle invokes diff(1) via a PATH search and expects diff totolerate the -B flag, which BSD diff does not. So I had to link gdiff intoPATH as diff to use spatch.)Tinderbox'd (-DMAKE_JUST_KERNELS).
Convert the PCI ID selection from a simple if into a table.Mark the table with PNP info.Fix compilation by returning FILTER_STRAY in two places, as suggested by comments.Create a simple module fro
Convert the PCI ID selection from a simple if into a table.Mark the table with PNP info.Fix compilation by returning FILTER_STRAY in two places, as suggested by comments.Create a simple module from this. Left unconnected because I can't test it as a module.
sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - error
sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.
Use DEVMETHOD_END macro defined in sys/bus.h instead of {0, 0} sentinel on device_method_t arraysReviewed by: cognetApproved by: cognet
Remove an unnecessary INTR_MPSAFE and a comment suggesting it wasunnecessary.
Update d_mmap() to accept vm_ooffset_t and vm_memattr_t.This replaces d_mmap() with the d_mmap2() implementation and alsochanges the type of offset to vm_ooffset_t.Purge d_mmap2().All driver m
Update d_mmap() to accept vm_ooffset_t and vm_memattr_t.This replaces d_mmap() with the d_mmap2() implementation and alsochanges the type of offset to vm_ooffset_t.Purge d_mmap2().All driver modules will need to be rebuilt since D_VERSION is alsobumped.Reviewed by: jhb@MFC after: Not in this lifetime...
Set D_NEEDGIANT.Approved by: phkApproved by: re (kensmith)
o break newbus api: add a new argument of type driver_filter_t to bus_setup_intr()o add an int return code to all fast handlerso retire INTR_FAST/IH_FASTFor more info: http://docs.freebsd.org
o break newbus api: add a new argument of type driver_filter_t to bus_setup_intr()o add an int return code to all fast handlerso retire INTR_FAST/IH_FASTFor more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-currentReviewed by: manyApproved by: re@
Use the new bus_space/resource convenience functions.
Instead of a rather useless generation number, use a sample number tokeep track of things.
Use BUS_PROBE_DEFAULT
Commit the new version of the adlink driver which can do non-cycliccapture. Now we just need somebody to write a gnu-radio frontend :-)
Do the dreaded s/dev_t/struct cdev */Bump __FreeBSD_version accordingly.
Add missing <sys/module.h> includes currently relying on nested includein <sys/kernel.h>
Convert callers to the new bus_alloc_resource_any(9) API.Submitted by: Mark Santcroos <[email protected]>Reviewed by: imp, dfr, bde
Lock Giant around the body of the adlink_loran() function used by theadlink device kthreads.
Device megapatch 4/6:Introduce d_version field in struct cdevsw, this must always beinitialized to D_VERSION.Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removingfour D_NOGIANT fl
Device megapatch 4/6:Introduce d_version field in struct cdevsw, this must always beinitialized to D_VERSION.Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removingfour D_NOGIANT flags and adding 145 D_NEEDGIANT flags.
The present defaults for the open and close for device drivers whichprovide no methods does not make any sense, and is not used by anydriver.It is a pretty hard to come up with even a theoretical
The present defaults for the open and close for device drivers whichprovide no methods does not make any sense, and is not used by anydriver.It is a pretty hard to come up with even a theoretical concept ofa device driver which would always fail open and close with ENODEV.Change the defaults to be nullopen() and nullclose() which simplydoes nothing.Remove explicit initializations to these from the drivers whichalready used them.
Be less confusing in a comment.
Use __FBSDID().Also some minor style cleanups.
Prefer new location for dev/pci/pci*.h
Almost the finished article.Boost sample rate to 1.25 MSPS since that allows us to use a 5Mhz(/4) or 10Mhz (/8) external clock.Make the interrupt both MPSAFE and FAST, at 610 interrupts a second
Almost the finished article.Boost sample rate to 1.25 MSPS since that allows us to use a 5Mhz(/4) or 10Mhz (/8) external clock.Make the interrupt both MPSAFE and FAST, at 610 interrupts a second,and a max time to service of 5 msec, we brake for nobody.Use kernel thread to accumulate into the 25 possible wave signals.Use #ifdef _KERNEL to let .c file double as .h file defining the ioctls.
12