Make timespecadd(3) and friends publicThe timespecadd(3) family of macros were imported from NetBSD back inr35029. However, they were initially guarded by #ifdef _KERNEL. In themeantime, we have
Make timespecadd(3) and friends publicThe timespecadd(3) family of macros were imported from NetBSD back inr35029. However, they were initially guarded by #ifdef _KERNEL. In themeantime, we have grown at least 28 syscalls that use timespecs in someway, leading many programs both inside and outside of the base system toredefine those macros. It's better just to make the definitions public.Our kernel currently defines two-argument versions of timespecadd andtimespecsub. NetBSD, OpenBSD, and FreeDesktop.org's libbsd, however, definethree-argument versions. Solaris also defines a three-argument version, butonly in its kernel. This revision changes our definition to match thecommon three-argument version.Bump _FreeBSD_version due to the breaking KPI change.Discussed with: cem, jilles, ian, bdeDifferential Revision: https://reviews.freebsd.org/D14725
show more ...
Tag the current round of deprecated drivers.Differential Revision: https://reviews.freebsd.org/D13818
Create a new ISA_PNP_INFO macro. Use this macro every where we haveISA PNP card support (replace by hand version in if_ed). Move moduledeclarations to the end of some files. Fix PCCARD_PNP_INFO to
Create a new ISA_PNP_INFO macro. Use this macro every where we haveISA PNP card support (replace by hand version in if_ed). Move moduledeclarations to the end of some files. Fix PCCARD_PNP_INFO to usenitems(). Remove some stale comments about pc98, turns out the commentwas simply wrong.
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.
There never was a PC Card joystick attachment that worked. Kill thecurrent stub one until such time as one shows up.
Use si_drv1 to store joy(4)'s softc.There are still some calls to dev2unit() left, but I guess we shouldtake care of those another time.
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
Unbreak second joystick (joy1) support.PR: kern/46734Submitted by: Richard Airlie <[email protected]>Approved by: netchild
Remove OLDCARD support by removing compat shims
Do the dreaded s/dev_t/struct cdev */Bump __FreeBSD_version accordingly.
Fix disordering of pccarddevs.h noticed by bde. Also remove a fewredundant includes and fix some of the include disordering.Submitted by: bde
Move to generating pccarddevs.h on the fly, both for the kernel andthe modules.Also generate usbdevs.h automatically now, but a non-kernel file isstopping that at the moment.
Convert callers to the new bus_alloc_resource_any(9) API.Submitted by: Mark Santcroos <[email protected]>Reviewed by: imp, dfr, bde
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.
Device megapatch 1/6:Free approx 86 major numbers with a mostly automatically generated patch.A number of strategic drivers have been left behind by caution, and a fewbecause they still (ab)use
Device megapatch 1/6:Free approx 86 major numbers with a mostly automatically generated patch.A number of strategic drivers have been left behind by caution, and a fewbecause they still (ab)use their major number.
Use __FBSDID().Also some minor style cleanups.
Gigacommit to improve device-driver source compatibility betweenbranches:Initialize struct cdevsw using C99 sparse initializtion and removeall initializations to default values.This patch is au
Gigacommit to improve device-driver source compatibility betweenbranches:Initialize struct cdevsw using C99 sparse initializtion and removeall initializations to default values.This patch is automatically generated and has been tested by compilingLINT with all the fields in struct cdevsw in reverse order on alpha,sparc64 and i386.Approved by: re(scottl)
Fix typo in the BSD copyright: s/withough/without/Spotted and suggested by: desMFC after: 3 weeks
Check for defined(__i386__) instead of just defined(i386) since the compilerwill be updated to only define(__i386__) for ANSI cleanliness.
Revert change that breaks the joy module. joydevclass must not be static.
Staticise the joy devclass.
Split joystick driver into ISA and PC Card front ends.Similar code was submitted in PR 5559 by Takeshi OHASHI-san, but thePC Card system has changed much since then, so this is a freshimplementat
Split joystick driver into ISA and PC Card front ends.Similar code was submitted in PR 5559 by Takeshi OHASHI-san, but thePC Card system has changed much since then, so this is a freshimplementation.PR: i386/5559Submitted by: Takeshi OHASHI
KSE Milestone 2Note ALL MODULES MUST BE RECOMPILEDmake the kernel aware that there are smaller units of scheduling than theprocess. (but only allow one thread per process at this time).This is fu
KSE Milestone 2Note ALL MODULES MUST BE RECOMPILEDmake the kernel aware that there are smaller units of scheduling than theprocess. (but only allow one thread per process at this time).This is functionally equivalent to teh previousl -current exceptthat there is a thread associated with each process.Sorry john! (your next MFC will be a doosie!)Reviewed by: [email protected], [email protected]X-MFC after: ha ha ha ha
Correct the ID for the ALS0120 PnP Joystick. It is different from theALS0110.PR: kern/22617Submitted by: Mike Holling <[email protected]>
Add ACPI attachments.
123