Drop MOUSE_GETVARS and MOUSE_SETVARS ioctls support.These ioctls are not documented and only stubbed in a few drivers: mse(4),psm(4) and syscon's sysmouse(4). The only exception is MOUSE_GETVARSi
Drop MOUSE_GETVARS and MOUSE_SETVARS ioctls support.These ioctls are not documented and only stubbed in a few drivers: mse(4),psm(4) and syscon's sysmouse(4). The only exception is MOUSE_GETVARSimplemented in psm(4)Given the fact that they were introduced 20 years ago and implementationhas never been completed, remove any related code.PR: 228718 (exp-run)Reviewed by: impDifferential Revision: https://reviews.freebsd.org/D15726
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.
Remove register keyword from sys/ and ANSIfy prototypesA long long time ago the register keyword told the compiler to storethe corresponding variable in a CPU register, but it is not relevantfor
Remove register keyword from sys/ and ANSIfy prototypesA long long time ago the register keyword told the compiler to storethe corresponding variable in a CPU register, but it is not relevantfor any compiler used in the FreeBSD world today.ANSIfy related prototypes while here.Reviewed by: cem, jhbSponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D10193
Remove pc98 support completely.I thank all developers and contributors for pc98.Relnotes: yes
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
Add locking and mark MPSAFE.- Add a mutex to protect the softc.- Use callout(9) instead of timeout(9).- Consolidate duplicated detach routines into a bus-independent detach routine.- Add an ext
Add locking and mark MPSAFE.- Add a mutex to protect the softc.- Use callout(9) instead of timeout(9).- Consolidate duplicated detach routines into a bus-independent detach routine.- Add an extra sleep lock flag (MSESC_READING) to prevent other readers from reading while the first reader is copying data out of sc_bytes[] via uiomove().- Use bus_*() instead of bus_space_*().Tested by: nyan
Make mse(4) use si_drv1, instead of using unit numbers.Discussed with: imp
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
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@
Since DELAY() was moved, most <machine/clock.h> #includes have beenunnecessary.
- Use bus_setup_intr() and bus_teardown_intr() to register device driver interrupt handlers rather than BUS_SETUP_INTR() and BUS_TEARDOWN_INTR(). Uses of the BUS_*() versions in the implementatio
- Use bus_setup_intr() and bus_teardown_intr() to register device driver interrupt handlers rather than BUS_SETUP_INTR() and BUS_TEARDOWN_INTR(). Uses of the BUS_*() versions in the implementation of foo_intr methods in bus drivers were not changed. Mostly this just means that some drivers might start printing diagnostic messages like [FAST] when appropriate as well as honoring mpsafenet=0.- Fix two more of the ppbus drivers' identify routines to function correctly in the mythical case of a machine with more than one ppbus.
Minor style(9) changeso use prototype definitiono use mse_{isa,cbus}_{probe,attach,detach} in preference to mse_{probe,attach,detach}.
There's really no need to have this be #ifdef PC98, so remove one moreof them from the tree.
Use the standard FreeBSD license
Start each of the license/copyright comments with /*-, minor shuffle of lines
Separate mse driver into a core driver and a bus attachments. Separate outthe ISA and CBUS (called isa on pc98) attachments. Eliminate all PC98ifdefs in the process (the driver in pc98/pc98/mse.c
Separate mse driver into a core driver and a bus attachments. Separate outthe ISA and CBUS (called isa on pc98) attachments. Eliminate all PC98ifdefs in the process (the driver in pc98/pc98/mse.c was a copy of the onein i386/isa/mse.c with PC98 ifdefs). Create a module for this driver.I've tested this my PC-9821RaS40 with moused. I've not tested this on i386because I have no InPort cards, or similar such things. NEC standardizedon bus mice very early, long before ps/2 mice ports apeared, so all PC-98machines supported by FreeBSD/pc98 have bus mice, I believe.Reviewed by: nyan-san
Do the dreaded s/dev_t/struct cdev */Bump __FreeBSD_version accordingly.
Add missing #include <sys/module.h>
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.
- Implement selwakeuppri() which allows raising the priority of a thread being waken up. The thread waken up can run at a priority as high as after tsleep().- Replace selwakeup()s with selwake
- Implement selwakeuppri() which allows raising the priority of a thread being waken up. The thread waken up can run at a priority as high as after tsleep().- Replace selwakeup()s with selwakeuppri()s and pass appropriate priorities.- Add cv_broadcastpri() which raises the priority of the broadcast threads. Used by selwakeuppri() if collision occurs.Not objected in: -arch, -current
Use __FBSDID().
1234