summaryrefslogtreecommitdiff
path: root/sys/dev/joy
AgeCommit message (Collapse)Author
2018-10-26Redo r339563: Remove joy(4) driver.Warner Losh
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
2018-10-26Revert r339563.Warner Losh
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
2018-10-22Remove joy(4) driver.Warner Losh
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
2018-07-30Make timespecadd(3) and friends publicAlan Somers
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
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
2014-11-22There never was a PC Card joystick attachment that worked. Kill theWarner Losh
current stub one until such time as one shows up. Notes: svn path=/head/; revision=274889
2009-04-14Use si_drv1 to store joy(4)'s softc.Ed Schouten
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
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
2005-11-09Unbreak second joystick (joy1) support.Jean-Yves Lefort
PR: kern/46734 Submitted by: Richard Airlie <richard@darq.net> Approved by: netchild Notes: svn path=/head/; revision=152249
2005-09-20Remove OLDCARD support by removing compat shimsWarner Losh
Notes: svn path=/head/; revision=150396
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-27Fix disordering of pccarddevs.h noticed by bde. Also remove a fewWarner Losh
redundant includes and fix some of the include disordering. Submitted by: bde Notes: svn path=/head/; revision=129764
2004-05-26Move to generating pccarddevs.h on the fly, both for the kernel andWarner Losh
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
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-08-24Use __FBSDID().David E. O'Brien
Also some minor style cleanups. Notes: svn path=/head/; revision=119418
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
2002-06-02Fix typo in the BSD copyright: s/withough/without/Jens Schweikhardt
Spotted and suggested by: des MFC after: 3 weeks Notes: svn path=/head/; revision=97748
2002-05-30Check for defined(__i386__) instead of just defined(i386) since the compilerAlfred Perlstein
will be updated to only define(__i386__) for ANSI cleanliness. Notes: svn path=/head/; revision=97554
2002-01-08Revert change that breaks the joy module. joydevclass must not be static.Warner Losh
Notes: svn path=/head/; revision=89086
2002-01-08Staticise the joy devclass.Mike Smith
Notes: svn path=/head/; revision=89058
2001-12-05Split joystick driver into ISA and PC Card front ends.Warner Losh
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
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-31Correct the ID for the ALS0120 PnP Joystick. It is different from theMurray Stokely
ALS0110. PR: kern/22617 Submitted by: Mike Holling <myke@fks.bt> Notes: svn path=/head/; revision=82691
2001-08-30Add ACPI attachments.Mike Smith
Notes: svn path=/head/; revision=82555
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
2000-01-18Add ADS7182 as a known Joystick.Peter Wemm
Notes: svn path=/head/; revision=56227
1999-12-30Recognize the CSC0101 ID for the Thinkpad series.Peter Wemm
PR: 15633 Submitted by: gibbs Notes: svn path=/head/; revision=55280
1999-12-20Removed unnecessary include files.Yoshihiro Takahashi
Notes: svn path=/head/; revision=54881
1999-12-12Make this kld'able (#include "joy.h" no longer required as there are noPeter Wemm
references to NJOY any more after newbusification) Notes: svn path=/head/; revision=54510
1999-12-05newbusify and port the joy driver to the Alpha. It now attaches to thePeter Wemm
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
1999-10-11Oh foo. I got carried away. :-( "joy.h" is used to size an array.Peter Wemm
(Incidently, there is no bounds checking...) Notes: svn path=/head/; revision=52129
1999-10-11Zap unneeded #include (found by phk)Peter Wemm
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
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-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-06The joypart() macro had a precedence bug. Add seatbelts for UNIT() too.Peter Wemm
Notes: svn path=/head/; revision=46570
1999-04-28s/static foo_devsw_installed = 0;/static int foo_devsw_installed;/.Dmitrij Tejblum
(Edited automatically) Notes: svn path=/head/; revision=46153
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
1998-03-28Moved some #includes from <sys/param.h> nearer to where they are actuallyBruce Evans
used. Notes: svn path=/head/; revision=34924
1998-01-24Make all file-system (MFS, FFS, NFS, LFS, DEVFS) related option new-style.Eivind Eklund
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
1997-07-20Removed unused #includes.Bruce Evans
Notes: svn path=/head/; revision=27555
1997-04-06Make MOD_* macros almost consistent:Peter Dufault
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
1996-09-10Updated #includes to 4.4Lite style.Bruce Evans
Notes: svn path=/head/; revision=18207
1996-03-28Switched from using devfs_add_sw() to using devfs_add_swf()Marc G. Fournier
Reviewed by: julian@freebsd.org Notes: svn path=/head/; revision=14873
1996-03-16Fix the isa_device table (lkm): id_irq and id_maddr must be 0.Jean-Marc Zucconi
Pointed out by: bde Notes: svn path=/head/; revision=14634