summaryrefslogtreecommitdiff
path: root/sys/isa/joy.c
Commit message (Collapse)AuthorAgeFilesLines
* Moved to dev/joyWarner Losh2001-12-051-275/+0
| | | | Notes: svn path=/head/; revision=87387
* 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
* Add code to make it a loadable kernel moduleJean-Marc Zucconi1996-03-151-0/+46
| | | | Notes: svn path=/head/; revision=14633
* Completed function declarations and/or added prototypes and/or addedBruce Evans1995-12-151-3/+2
| | | | | | | #includes to get prototypes. Notes: svn path=/head/; revision=12854
* Staticize and cleanup.Poul-Henning Kamp1995-12-101-3/+4
| | | | Notes: svn path=/head/; revision=12724
* Julian forgot to make the *devsw structures static.Poul-Henning Kamp1995-12-081-1/+1
| | | | Notes: svn path=/head/; revision=12678
* Pass 3 of the great devsw changesJulian Elischer1995-12-081-34/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | most devsw referenced functions are now static, as they are in the same file as their devsw structure. I've also added DEVFS support for nearly every device in the system, however many of the devices have 'incorrect' names under DEVFS because I couldn't quickly work out the correct naming conventions. (but devfs won't be coming on line for a month or so anyhow so that doesn't matter) If you "OWN" a device which would normally have an entry in /dev then search for the devfs_add_devsw() entries and munge to make them right.. check out similar devices to see what I might have done in them in you can't see what's going on.. for a laugh compare conf.c conf.h defore and after... :) I have not doen DEVFS entries for any DISKSLICE devices yet as that will be a much more complicated job.. (pass 5 :) pass 4 will be to make the devsw tables of type (cdevsw * ) rather than (cdevsw) seems to work here.. complaints to the usual places.. :) Notes: svn path=/head/; revision=12675
* If you're going to mechanically replicate something in 50 filesJulian Elischer1995-11-291-1/+1
| | | | | | | it's best to not have a (compiles cleanly) typo in it! (sigh) Notes: svn path=/head/; revision=12521
* OK, that's it..Julian Elischer1995-11-291-14/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | That's EVERY SINGLE driver that has an entry in conf.c.. my next trick will be to define cdevsw[] and bdevsw[] as empty arrays and remove all those DAMNED defines as well.. Each of these drivers has a SYSINIT linker set entry that comes in very early.. and asks teh driver to add it's own entry to the two devsw[] tables. some slight reworking of the commits from yesterday (added the SYSINIT stuff and some usually wrong but token DEVFS entries to all these devices. BTW does anyone know where the 'ata' entries in conf.c actually reside? seems we don't actually have a 'ataopen() etc... If you want to add a new device in conf.c please make sure I know so I can keep it up to date too.. as before, this is all dependent on #if defined(JREMOD) (and #ifdef DEVFS in parts) Notes: svn path=/head/; revision=12517
* the second set of changes in a move towards getting devices to beJulian Elischer1995-11-281-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | totally dynamic. this is only the devices in i386/isa I'll do more tomorrow. they're completely masked by #ifdef JREMOD at this stage... the eventual aim is that every driver will do a SYSINIT at startup BEFORE the probes, which will effectively link it into the devsw tables etc. If I'd thought about it more I'd have put that in in this set (damn) The ioconf lines generated by config will also end up in the device's own scope as well, so ioconf.c will eventually be gutted the SYSINIT call to the driver will include a phase where the driver links it's ioconf line into a chain of such. when this phase is done then the user can modify them with the boot: -c config menu if he wants, just like now.. config will put the config lines out in the .h file (e.g. in aha.h will be the addresses for the aha driver to look.) as I said this is a very small first step.. the aim of THIS set of edits is to not have to edit conf.c at all when adding a new device.. the tabe will be a simple skeleton.. when this is done, it will allow other changes to be made, all teh time still having a fully working kernel tree, but the logical outcome is the complete REMOVAL of the devsw tables. By the end of this, linked in drivers will be exactly the same as run-time loaded drivers, except they JUST HAPPEN to already be linked and present at startup.. the SYSINIT calls will be the equivalent of the "init" call made to a newly loaded driver in every respect. For this edit, each of the files has the following code inserted into it: obviously, tailored to suit.. ----------------------somewhere at the top: #ifdef JREMOD #include <sys/conf.h> #define CDEV_MAJOR 13 #define BDEV_MAJOR 4 static void sd_devsw_install(); #endif /*JREMOD */ ---------------------somewhere that's run during bootup: EVENTUALLY a SYSINIT #ifdef JREMOD sd_devsw_install(); #endif /*JREMOD*/ -----------------------at the bottom: #ifdef JREMOD struct bdevsw sd_bdevsw = { sdopen, sdclose, sdstrategy, sdioctl, /*4*/ sddump, sdsize, 0 }; struct cdevsw sd_cdevsw = { sdopen, sdclose, rawread, rawwrite, /*13*/ sdioctl, nostop, nullreset, nodevtotty,/* sd */ seltrue, nommap, sdstrategy }; static sd_devsw_installed = 0; static void sd_devsw_install() { dev_t descript; if( ! sd_devsw_installed ) { descript = makedev(CDEV_MAJOR,0); cdevsw_add(&descript,&sd_cdevsw,NULL); #if defined(BDEV_MAJOR) descript = makedev(BDEV_MAJOR,0); bdevsw_add(&descript,&sd_bdevsw,NULL); #endif /*BDEV_MAJOR*/ sd_devsw_installed = 1; } } #endif /* JREMOD */ Notes: svn path=/head/; revision=12502
* Actually, 97 out of 304 devsw functions had benignly mismatched types.Bruce Evans1995-09-081-2/+2
| | | | Notes: svn path=/head/; revision=10644
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-6/+6
| | | | Notes: svn path=/head/; revision=8876
* Add and move declarations to fix all of the warnings from `gcc -Wimplicit'Bruce Evans1995-03-281-3/+3
| | | | | | | | (except in netccitt, netiso and netns) that I didn't notice when I fixed "all" such warnings before. Notes: svn path=/head/; revision=7430
* Replace all remaining instances of `i386/include' by `machine' and fixBruce Evans1995-02-261-4/+6
| | | | | | | nearby #include inconsistencies. Notes: svn path=/head/; revision=6734
* Put the joystick status in a struct {int x, y, b1, b2;} rather than in aJean-Marc Zucconi1995-02-221-6/+6
| | | | | | | | dummy array of 4 integers. Declare the struct in the header file and update the man page. Notes: svn path=/head/; revision=6644
* Add parentheses around macros!Jean-Marc Zucconi1995-01-291-2/+2
| | | | Notes: svn path=/head/; revision=5998
* Do not recompute TIMER0's maximum count, since it is in timer0_max_count.Jean-Marc Zucconi1995-01-281-11/+8
| | | | | | | | | Use a simpler formula to convert usecs to ticks. Output is in microseconds instead of ticks, so that values do not depend on the timer frequency. Notes: svn path=/head/; revision=5993
* Changed address of the game controller to 0x201 (was 0x200)Jean-Marc Zucconi1995-01-251-0/+209
joy.c: joystick driver Notes: svn path=/head/; revision=5897