pbio: clean up empty lines in .c and .h files
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.
show more ...
Migrate many bus_alloc_resource() calls to bus_alloc_resource_anywhere().Most calls to bus_alloc_resource() use "anywhere" as the range, with a givencount. Migrate these to use the new bus_alloc_
Migrate many bus_alloc_resource() calls to bus_alloc_resource_anywhere().Most calls to bus_alloc_resource() use "anywhere" as the range, with a givencount. Migrate these to use the new bus_alloc_resource_anywhere() API.Reviewed by: jhbDifferential Revision: https://reviews.freebsd.org/D5370
Replace all calls to minor() with dev2unit().After I removed all the unit2minor()/minor2unit() calls from the kernelyesterday, I realised calling minor() everywhere is quite confusing.Character d
Replace all calls to minor() with dev2unit().After I removed all the unit2minor()/minor2unit() calls from the kernelyesterday, I realised calling minor() everywhere is quite confusing.Character devices now only have the ability to store a unit number, nota minor number. Remove the confusion by using dev2unit() everywhere.This commit could also be considered as a bug fix. A lot of drivers callminor(), while they should actually be calling dev2unit(). In -CURRENTthis isn't a problem, but it turns out we never had any problem reportsrelated to that issue in the past. I suspect not many people connectmore than 256 pieces of the same hardware.Reviewed by: kib
Since DELAY() was moved, most <machine/clock.h> #includes have beenunnecessary.
Remove bus_{mem,p}io.h and related code for a micro-optimization on i386and amd64. The optimization is a trivial on recent machines.Reviewed by: -arch (imp, marcel, dfr)
Skip PNP probes. If there are isapnp or pnpbios instances of this driver,then we can support them later. This keeps the pbio probe from claiminglots of otherwise unused pnpbios devices on my lapt
Skip PNP probes. If there are isapnp or pnpbios instances of this driver,then we can support them later. This keeps the pbio probe from claiminglots of otherwise unused pnpbios devices on my laptop.
Start each of the license/copyright comments with /*-, minor shuffle of lines
Catch up with the header repo copy.
Fix conflicts I didn't fix before I committed my busspace changes.Noticed by: ru@ (and likely tinderbox, I haven't checked)
Convert to newbus. (chances are we could now move this to dev/pbiosince I believe it is now MI, but that hasn't been done yet).Reviewed by: dds
style(9)
Port pbio to HEAD.OK'd by: dds