aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/joy
Commit message (Collapse)AuthorAgeFilesLines
* Redo r339563: Remove joy(4) driver.Warner Losh2018-10-263-386/+0
| | | | | | | | | | | | | | | This driver was marked as gone in 12. We're at 13 now. Remove it. Data from nycbug's dmesg cache shows only one potential user, suggesting it never was used much. However, even though this device has been obsolete for 15 years at least, sys/joystick.h is included in a number of graphics packages still, so that remains. A full exprun is needed before that can be removed. RelNotes: yes Differential Revision: https://reviews.freebsd.org/D17629 Notes: svn path=/head/; revision=339776
* Revert r339563.Warner Losh2018-10-263-0/+386
| | | | | | | | | | I held the mistaken belief this was completely unused. While the driver is unused and likely not relevant for a long time, sys/joystick.h lives on in maybe half a dozen ports, even though hardware to use it hasn't been widely used in maybe 15 years. Notes: svn path=/head/; revision=339763
* Remove joy(4) driver.Warner Losh2018-10-223-386/+0
| | | | | | | | | | | | This driver was marked as gone in 12. We're at 13 now. Remove it. Data from nycbug's dmesg cache shows only one potential user, suggesting it never was used much. RelNotes: yes Differential Revision: https://reviews.freebsd.org/D17629 Notes: svn path=/head/; revision=339563
* Make timespecadd(3) and friends publicAlan Somers2018-07-301-4/+4
| | | | | | | | | | | | | | | | | | | | | | The timespecadd(3) family of macros were imported from NetBSD back in r35029. However, they were initially guarded by #ifdef _KERNEL. In the meantime, we have grown at least 28 syscalls that use timespecs in some way, leading many programs both inside and outside of the base system to redefine those macros. It's better just to make the definitions public. Our kernel currently defines two-argument versions of timespecadd and timespecsub. NetBSD, OpenBSD, and FreeDesktop.org's libbsd, however, define three-argument versions. Solaris also defines a three-argument version, but only in its kernel. This revision changes our definition to match the common three-argument version. Bump _FreeBSD_version due to the breaking KPI change. Discussed with: cem, jilles, ian, bde Differential Revision: https://reviews.freebsd.org/D14725 Notes: svn path=/head/; revision=336914
* Tag the current round of deprecated drivers.Warner Losh2018-01-291-0/+2
| | | | | | | Differential Revision: https://reviews.freebsd.org/D13818 Notes: svn path=/head/; revision=328523
* Create a new ISA_PNP_INFO macro. Use this macro every where we haveWarner Losh2017-12-231-0/+1
| | | | | | | | | | 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
* sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-273-0/+6
| | | | | | | | | | | | | | | 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
* There never was a PC Card joystick attachment that worked. Kill theWarner Losh2014-11-221-67/+0
| | | | | | | current stub one until such time as one shows up. Notes: svn path=/head/; revision=274889
* Use si_drv1 to store joy(4)'s softc.Ed Schouten2009-04-141-8/+5
| | | | | | | | There are still some calls to dev2unit() left, but I guess we should take care of those another time. Notes: svn path=/head/; revision=191054
* Replace all calls to minor() with dev2unit().Ed Schouten2008-09-271-2/+2
| | | | | | | | | | | | | | | | | | 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
* Unbreak second joystick (joy1) support.Jean-Yves Lefort2005-11-091-2/+8
| | | | | | | | | PR: kern/46734 Submitted by: Richard Airlie <richard@darq.net> Approved by: netchild Notes: svn path=/head/; revision=152249
* Remove OLDCARD support by removing compat shimsWarner Losh2005-09-201-11/+4
| | | | Notes: svn path=/head/; revision=150396
* Do the dreaded s/dev_t/struct cdev */Poul-Henning Kamp2004-06-162-5/+5
| | | | | | | Bump __FreeBSD_version accordingly. Notes: svn path=/head/; revision=130585
* Fix disordering of pccarddevs.h noticed by bde. Also remove a fewWarner Losh2004-05-271-1/+1
| | | | | | | | | redundant includes and fix some of the include disordering. Submitted by: bde Notes: svn path=/head/; revision=129764
* Move to generating pccarddevs.h on the fly, both for the kernel andWarner Losh2004-05-261-1/+1
| | | | | | | | | | the modules. Also generate usbdevs.h automatically now, but a non-kernel file is stopping that at the moment. Notes: svn path=/head/; revision=129740
* Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson2004-03-171-1/+1
| | | | | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Notes: svn path=/head/; revision=127135
* Device megapatch 4/6:Poul-Henning Kamp2004-02-211-0/+2
| | | | | | | | | | | 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
* Device megapatch 1/6:Poul-Henning Kamp2004-02-211-2/+0
| | | | | | | | | | 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
* Use __FBSDID().David E. O'Brien2003-08-243-3/+9
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119418
* Gigacommit to improve device-driver source compatibility betweenPoul-Henning Kamp2003-03-031-13/+6
| | | | | | | | | | | | | | | | 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
* Fix typo in the BSD copyright: s/withough/without/Jens Schweikhardt2002-06-024-4/+4
| | | | | | | | Spotted and suggested by: des MFC after: 3 weeks Notes: svn path=/head/; revision=97748
* Check for defined(__i386__) instead of just defined(i386) since the compilerAlfred Perlstein2002-05-301-2/+2
| | | | | | | will be updated to only define(__i386__) for ANSI cleanliness. Notes: svn path=/head/; revision=97554
* Revert change that breaks the joy module. joydevclass must not be static.Warner Losh2002-01-081-1/+1
| | | | Notes: svn path=/head/; revision=89086
* Staticise the joy devclass.Mike Smith2002-01-081-1/+1
| | | | Notes: svn path=/head/; revision=89058
* Split joystick driver into ISA and PC Card front ends.Warner Losh2001-12-054-148/+322
| | | | | | | | | | | | Similar code was submitted in PR 5559 by Takeshi OHASHI-san, but the PC Card system has changed much since then, so this is a fresh implementation. PR: i386/5559 Submitted by: Takeshi OHASHI Notes: svn path=/head/; revision=87384
* KSE Milestone 2Julian Elischer2001-09-121-3/+3
| | | | | | | | | | | | | | | | | 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
* Correct the ID for the ALS0120 PnP Joystick. It is different from theMurray Stokely2001-08-311-1/+1
| | | | | | | | | | ALS0110. PR: kern/22617 Submitted by: Mike Holling <myke@fks.bt> Notes: svn path=/head/; revision=82691
* Add ACPI attachments.Mike Smith2001-08-301-0/+1
| | | | Notes: svn path=/head/; revision=82555
* Send the remains (such as I have located) of "block major numbers" toPoul-Henning Kamp2001-03-261-1/+0
| | | | | | | the bit-bucket. Notes: svn path=/head/; revision=74810
* Add ADS7182 as a known Joystick.Peter Wemm2000-01-181-0/+1
| | | | Notes: svn path=/head/; revision=56227
* Recognize the CSC0101 ID for the Thinkpad series.Peter Wemm1999-12-301-0/+1
| | | | | | | | PR: 15633 Submitted by: gibbs Notes: svn path=/head/; revision=55280
* Removed unnecessary include files.Yoshihiro Takahashi1999-12-201-1/+0
| | | | Notes: svn path=/head/; revision=54881
* Make this kld'able (#include "joy.h" no longer required as there are noPeter Wemm1999-12-121-3/+0
| | | | | | | references to NJOY any more after newbusification) Notes: svn path=/head/; revision=54510
* newbusify and port the joy driver to the Alpha. It now attaches to thePeter Wemm1999-12-051-134/+126
| | | | | | | | | | | joystick port on PnP sound cards that have a suitable device ID on them. Doug Rabson added timer code so it didn't have to beat on the isa timer. Submitted by: Takanori Watanabe <takawata@shidahara1.planet.sci.kobe-u.ac.jp> Notes: svn path=/head/; revision=54156
* Oh foo. I got carried away. :-( "joy.h" is used to size an array.Peter Wemm1999-10-111-0/+2
| | | | | | | (Incidently, there is no bounds checking...) Notes: svn path=/head/; revision=52129
* Zap unneeded #include (found by phk)Peter Wemm1999-10-111-6/+0
| | | | | | | | Remove useless #include "joy.h"; #if NJOY > 0 - this is always true if it's being compiled. config arranges this. Notes: svn path=/head/; revision=52122
* Remove five now unused fields from struct cdevsw. They should neverPoul-Henning Kamp1999-09-251-5/+2
| | | | | | | | | | | 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
* Convert DEVFS hooks in (most) drivers to make_dev().Poul-Henning Kamp1999-08-231-14/+1
| | | | | | | | | | | | | | | | | | | 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
* Simplify cdevsw registration.Poul-Henning Kamp1999-05-311-16/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* This commit should be a extensive NO-OP:Poul-Henning Kamp1999-05-301-4/+21
| | | | | | | | | | | | | | | | 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
* The joypart() macro had a precedence bug. Add seatbelts for UNIT() too.Peter Wemm1999-05-061-2/+2
| | | | Notes: svn path=/head/; revision=46570
* s/static foo_devsw_installed = 0;/static int foo_devsw_installed;/.Dmitrij Tejblum1999-04-281-1/+1
| | | | | | | (Edited automatically) Notes: svn path=/head/; revision=46153
* This commit fixes various 64bit portability problems required forDoug Rabson1998-06-071-1/+1
| | | | | | | | | | | | | 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
* Moved some #includes from <sys/param.h> nearer to where they are actuallyBruce Evans1998-03-281-0/+1
| | | | | | | used. Notes: svn path=/head/; revision=34924
* Make all file-system (MFS, FFS, NFS, LFS, DEVFS) related option new-style.Eivind Eklund1998-01-241-0/+2
| | | | | | | | | | | This introduce an xxxFS_BOOT for each of the rootable filesystems. (Presently not required, but encouraged to allow a smooth move of option *FS to opt_dontuse.h later.) LFS is temporarily disabled, and will be re-enabled tomorrow. Notes: svn path=/head/; revision=32726
* Removed unused #includes.Bruce Evans1997-07-201-2/+0
| | | | Notes: svn path=/head/; revision=27555
* Make MOD_* macros almost consistent:Peter Dufault1997-04-061-5/+7
| | | | | | | | | | | | | | | | | | | | | | | Use the name argument almost the same in all LKM types. Maintain the current behavior for the external (e.g., modstat) name for DEV, EXEC, and MISC types being #name ## "_mod" and SYCALL and VFS only #name. This is a candidate for change and I vote just the name without the "_mod". Change the DISPATCH macro to MOD_DISPATCH for consistency with the other macros. Add an LKM_ANON #define to eliminate the magic -1 and associated signed/unsigned warnings. Add MOD_PRIVATE to support wcd.c's poking around in the lkm structure. Change source in tree to use the new interface. Reviewed by: Bruce Evans Notes: svn path=/head/; revision=24674
* Updated #includes to 4.4Lite style.Bruce Evans1996-09-101-2/+1
| | | | Notes: svn path=/head/; revision=18207
* Switched from using devfs_add_sw() to using devfs_add_swf()Marc G. Fournier1996-03-281-5/+3
| | | | | | | Reviewed by: julian@freebsd.org Notes: svn path=/head/; revision=14873
* Fix the isa_device table (lkm): id_irq and id_maddr must be 0.Jean-Marc Zucconi1996-03-161-1/+1
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=14634