summaryrefslogtreecommitdiff
path: root/sys/dev/mse
AgeCommit message (Collapse)Author
2018-10-22Remove mse(4) from treeWarner Losh
Remove mse and all support for bus and inport devices from the tree. Data from nycbug's dmesg database shows the last sighting of this driver was in 4.10 on only one machine. Relnotes: yes Differential Revision: https://reviews.freebsd.org/D17628 Notes: svn path=/head/; revision=339564
2018-06-10Drop MOUSE_GETVARS and MOUSE_SETVARS ioctls support.Vladimir Kondratyev
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_GETVARS implemented in psm(4) Given the fact that they were introduced 20 years ago and implementation has never been completed, remove any related code. PR: 228718 (exp-run) Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D15726 Notes: svn path=/head/; revision=334923
2018-01-29Tag the current round of deprecated drivers.Warner Losh
Differential Revision: https://reviews.freebsd.org/D13818 Notes: svn path=/head/; revision=328523
2017-12-23Create a new ISA_PNP_INFO macro. Use this macro every where we haveWarner Losh
ISA PNP card support (replace by hand version in if_ed). Move module declarations to the end of some files. Fix PCCARD_PNP_INFO to use nitems(). Remove some stale comments about pc98, turns out the comment was simply wrong. Notes: svn path=/head/; revision=327102
2017-11-27sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni
Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326255
2017-05-17Remove register keyword from sys/ and ANSIfy prototypesEd Maste
A long long time ago the register keyword told the compiler to store the corresponding variable in a CPU register, but it is not relevant for any compiler used in the FreeBSD world today. ANSIfy related prototypes while here. Reviewed by: cem, jhb Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D10193 Notes: svn path=/head/; revision=318389
2017-01-28Remove pc98 support completely.Yoshihiro Takahashi
I thank all developers and contributors for pc98. Relnotes: yes Notes: svn path=/head/; revision=312910
2016-02-27Migrate many bus_alloc_resource() calls to bus_alloc_resource_anywhere().Justin Hibbits
Most calls to bus_alloc_resource() use "anywhere" as the range, with a given count. Migrate these to use the new bus_alloc_resource_anywhere() API. Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D5370 Notes: svn path=/head/; revision=296137
2014-10-11Add locking and mark MPSAFE.John Baldwin
- 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 Notes: svn path=/head/; revision=272956
2009-04-20Make mse(4) use si_drv1, instead of using unit numbers.Ed Schouten
Discussed with: imp Notes: svn path=/head/; revision=191320
2008-09-27Replace all calls to minor() with dev2unit().Ed Schouten
After I removed all the unit2minor()/minor2unit() calls from the kernel yesterday, I realised calling minor() everywhere is quite confusing. Character devices now only have the ability to store a unit number, not a minor number. Remove the confusion by using dev2unit() everywhere. This commit could also be considered as a bug fix. A lot of drivers call minor(), while they should actually be calling dev2unit(). In -CURRENT this isn't a problem, but it turns out we never had any problem reports related to that issue in the past. I suspect not many people connect more than 256 pieces of the same hardware. Reviewed by: kib Notes: svn path=/head/; revision=183397
2007-02-23o break newbus api: add a new argument of type driver_filter_t toPaolo Pisati
bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Reviewed by: many Approved by: re@ Notes: svn path=/head/; revision=166901
2006-05-16Since DELAY() was moved, most <machine/clock.h> #includes have beenPoul-Henning Kamp
unnecessary. Notes: svn path=/head/; revision=158651
2006-02-22- Use bus_setup_intr() and bus_teardown_intr() to register device driverJohn Baldwin
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. Notes: svn path=/head/; revision=155921
2005-04-08Minor style(9) changesWarner Losh
o use prototype definition o use mse_{isa,cbus}_{probe,attach,detach} in preference to mse_{probe,attach,detach}. Notes: svn path=/head/; revision=144783
2005-03-29There's really no need to have this be #ifdef PC98, so remove one moreWarner Losh
of them from the tree. Notes: svn path=/head/; revision=144280
2005-01-11Use the standard FreeBSD licenseWarner Losh
Notes: svn path=/head/; revision=140040
2005-01-06Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh
Notes: svn path=/head/; revision=139749
2004-12-12Separate mse driver into a core driver and a bus attachments. Separate outWarner Losh
the ISA and CBUS (called isa on pc98) attachments. Eliminate all PC98 ifdefs in the process (the driver in pc98/pc98/mse.c was a copy of the one in 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 i386 because I have no InPort cards, or similar such things. NEC standardized on bus mice very early, long before ps/2 mice ports apeared, so all PC-98 machines supported by FreeBSD/pc98 have bus mice, I believe. Reviewed by: nyan-san Notes: svn path=/head/; revision=138755
2004-06-16Do the dreaded s/dev_t/struct cdev */Poul-Henning Kamp
Bump __FreeBSD_version accordingly. Notes: svn path=/head/; revision=130585
2004-05-30Add missing #include <sys/module.h>Poul-Henning Kamp
Notes: svn path=/head/; revision=129882
2004-03-17Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson
Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Notes: svn path=/head/; revision=127135
2004-02-21Device megapatch 4/6:Poul-Henning Kamp
Introduce d_version field in struct cdevsw, this must always be initialized to D_VERSION. Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing four D_NOGIANT flags and adding 145 D_NEEDGIANT flags. Notes: svn path=/head/; revision=126080
2004-02-21Device megapatch 1/6:Poul-Henning Kamp
Free approx 86 major numbers with a mostly automatically generated patch. A number of strategic drivers have been left behind by caution, and a few because they still (ab)use their major number. Notes: svn path=/head/; revision=126076
2003-11-09- Implement selwakeuppri() which allows raising the priority of aSeigo Tanimura
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 Notes: svn path=/head/; revision=122352
2003-06-02Use __FBSDID().David E. O'Brien
Notes: svn path=/head/; revision=115703
2003-03-03Gigacommit to improve device-driver source compatibility betweenPoul-Henning Kamp
branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl) Notes: svn path=/head/; revision=111815
2003-03-02More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).Dag-Erling Smørgrav
Notes: svn path=/head/; revision=111748
2003-01-01Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,Jens Schweikhardt
especially in troff files. Notes: svn path=/head/; revision=108533
2002-03-23Fixed some style bugs in the removal of __P(()). The main ones wereBruce Evans
not removing tabs before "__P((", and not outdenting continuation lines to preserve non-KNF lining up of code with parentheses. Switch to KNF formatting and/or rewrap the whole prototype in some cases. Notes: svn path=/head/; revision=93024
2002-03-20Remove __P.Alfred Perlstein
Notes: svn path=/head/; revision=92765
2001-09-12KSE Milestone 2Julian Elischer
Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha Notes: svn path=/head/; revision=83366
2001-08-31Revert previous "fix"; bus mice still have to be manually probed even inMike Smith
the presence of PnP data. Submitted by: yokota Notes: svn path=/head/; revision=82618
2001-08-30Correct usage of ISA_PNP_PROBEMike Smith
Notes: svn path=/head/; revision=82554
2001-03-26Send the remains (such as I have located) of "block major numbers" toPoul-Henning Kamp
the bit-bucket. Notes: svn path=/head/; revision=74810
2001-01-20Finish deprecating <sys/select.h> in favor of <sys/selinfo.h> in kernel code.Garrett Wollman
Notes: svn path=/head/; revision=71286
2000-10-09Initiate deorbit burn sequence for <machine/mouse.h>.Poul-Henning Kamp
Replace all in-tree uses with <sys/mouse.h> which repo-copied a few moments ago from src/sys/i386/include/mouse.h by peter. This is also the appropriate fix for exo-tree sources. Put warnings in <machine/mouse.h> to discourage use. November 15th 2000 the warnings will be converted to errors. January 15th 2001 the <machine/mouse.h> files will be removed. Notes: svn path=/head/; revision=66860
2000-03-18- `Newbus'ified the driver.Kazutaka YOKOTA
- Properly keep track of resources (I/O ports and irq). - Use bus_space_read/write() to access the ports. - Add PnP IDs. - Add a watchdog timer in case interrupts are lost (experimental). - Add `detach' function (experimental). Notes: svn path=/head/; revision=58229
2000-01-29Remove a bunch of unused (NO-OP) #if NFOO > 0 type includes and somePeter Wemm
#include "foo.h" headers. Notes: svn path=/head/; revision=56845
1999-10-06- Remove cdevsw_add().Kazutaka YOKOTA
Notes: svn path=/head/; revision=51966
1999-09-25Remove five now unused fields from struct cdevsw. They should neverPoul-Henning Kamp
have been there in the first place. A GENERIC kernel shrinks almost 1k. Add a slightly different safetybelt under nostop for tty drivers. Add some missing FreeBSD tags Notes: svn path=/head/; revision=51658
1999-08-28$Id$ -> $FreeBSD$Peter Wemm
Notes: svn path=/head/; revision=50477
1999-08-23Convert DEVFS hooks in (most) drivers to make_dev().Poul-Henning Kamp
Diskslice/label code not yet handled. Vinum, i4b, alpha, pc98 not dealt with (left to respective Maintainers) Add the correct hook for devfs to kern_conf.c The net result of this excercise is that a lot less files depends on DEVFS, and devtoname() gets more sensible output in many cases. A few drivers had minor additional cleanups performed relating to cdevsw registration. A few drivers don't register a cdevsw{} anymore, but only use make_dev(). Notes: svn path=/head/; revision=50254
1999-05-31Simplify cdevsw registration.Poul-Henning Kamp
The cdevsw_add() function now finds the major number(s) in the struct cdevsw passed to it. cdevsw_add_generic() is no longer needed, cdevsw_add() does the same thing. cdevsw_add() will print an message if the d_maj field looks bogus. Remove nblkdev and nchrdev variables. Most places they were used bogusly. Instead check a dev_t for validity by seeing if devsw() or bdevsw() returns NULL. Move bdevsw() and devsw() functions to kern/kern_conf.c Bump __FreeBSD_version to 400006 This commit removes: 72 bogus makedev() calls 26 bogus SYSINIT functions if_xe.c bogusly accessed cdevsw[], author/maintainer please fix. I4b and vinum not changed. Patches emailed to authors. LINT probably broken until they catch up. Notes: svn path=/head/; revision=47640
1999-05-30This commit should be a extensive NO-OP:Poul-Henning Kamp
Reformat and initialize correctly all "struct cdevsw". Initialize the d_maj and d_bmaj fields. The d_reset field was not removed, although it is never used. I used a program to do most of this, so all the files now use the same consistent format. Please keep it that way. Vinum and i4b not modified, patches emailed to respective authors. Notes: svn path=/head/; revision=47625
1999-05-06Fix up a few easy 'assignment used as truth value' and 'suggest parensPeter Wemm
around && within ||' type warnings. I'm pretty sure I have not masked any problems here, I've committed real problem fixes seperately. Notes: svn path=/head/; revision=46571
1999-05-06Add sufficient braces to keep egcs happy about potentially ambiguousPeter Wemm
if/else nesting. Notes: svn path=/head/; revision=46568
1999-04-28s/static foo_devsw_installed = 0;/static int foo_devsw_installed;/.Dmitrij Tejblum
(Edited automatically) Notes: svn path=/head/; revision=46153
1998-10-22Initialize isa_devtab entries for interrupt handlers in individualBruce Evans
device drivers, not in ioconf.c. Use a different hack in isa_device.h so that a new config(8) is not required yet. pc98 parts approved by: kato Notes: svn path=/head/; revision=40565
1998-06-07This commit fixes various 64bit portability problems required forDoug Rabson
FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change. The prototype FreeBSD/alpha machdep will follow in a couple of days time. Notes: svn path=/head/; revision=36735