summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/tw.c
Commit message (Collapse)AuthorAgeFilesLines
* Mass update of isa drivers using compatability shims to usepeter2000-05-281-2/+11
| | | | COMPAT_ISA_DRIVER() so that we can get rid of the evil isa_compat.h table.
* Remove #if NFOO > 0 (it's not required in most cases) and also where itpeter2000-01-291-3/+0
| | | | | isn't used as a result, remove #include "foo.h". Many of these drivers still use NFOO for softc struct sizing etc however.
* Remove five now unused fields from struct cdevsw. They should neverphk1999-09-251-5/+3
| | | | | | | | 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
* Convert DEVFS hooks in (most) drivers to make_dev().phk1999-08-231-16/+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().
* Simplify cdevsw registration.phk1999-05-311-17/+3
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* This commit should be a extensive NO-OP:phk1999-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.
* Fix up a few easy 'assignment used as truth value' and 'suggest parenspeter1999-05-061-3/+6
| | | | | around && within ||' type warnings. I'm pretty sure I have not masked any problems here, I've committed real problem fixes seperately.
* Add sufficient braces to keep egcs happy about potentially ambiguouspeter1999-05-061-2/+2
| | | | if/else nesting.
* s/static foo_devsw_installed = 0;/static int foo_devsw_installed;/.dt1999-04-281-1/+1
| | | | (Edited automatically)
* Random text after #endif changed to comment.eivind1999-04-111-1/+1
|
* The "easy" fixes for compiling the kernel -Wunused: remove unreferenced staticarchie1998-12-071-2/+0
| | | | and local variables, goto labels, and functions declared but not defined.
* Initialize isa_devtab entries for interrupt handlers in individualbde1998-10-221-1/+3
| | | | | | | 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
* Fixed printf format errors. Only one left in LINT on i386's.bde1998-08-241-1/+1
|
* Make all file-system (MFS, FFS, NFS, LFS, DEVFS) related option new-style.eivind1998-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.
* Fixed spot in twintr() where tw_control and TWC_SYNC were used insteadstark1997-10-061-1/+1
| | | | | of tw_zcport and tw_zcmask. Could cause problems for people who use pin 12 for sync.
* aha1542.c aic6360.c cy.c fd.c ft.cgibbs1997-09-211-5/+8
| | | | | | | | | | | | if_ie.c if_wl.c if_zp.c isa.c isa_device.h labpc.c mcd.c ncr5380.c scd.c seagate.c si.c sio.c tw.c ultra14f.c wcd.c wd.c: Update for changes in the callout interface. apic_vector.s icu_vector.s ipl.s ipl_funcs.c: Add CAM software/hardware interrupt support.
* Update select -> poll in drivers.peter1997-09-141-12/+15
|
* Removed more abuses of timeout_func_t.bde1997-08-251-2/+2
|
* Removed unused #includes.bde1997-07-201-2/+0
|
* Submitted by: Rich Murphey (ages ago) and Gene Starkstark1997-05-311-56/+182
| | | | | | | | | | | | | | Hopefully I've done the proper magic to merge changes between 1.17 and 1.17.2.1 into the main trunk. Description of those changes follows: Brought in changes sent to me in late 1995 by Rich Murphey. I cleaned up a few things and am currently running these under 2.2-970205-GAMMA. The changes deal with software debouncing apparently necessary on todays faster hardware, and also some problems with the use of the -Select line for the TW-523 sync. This driver allows use of +PaperEnd as an alternative.
* Fixed the type of timeout functions and removed casts that hid thebde1997-04-201-6/+7
| | | | type mismatches. There was no problem in practice (at least on 386's).
* Don't include <sys/ioctl.h> in the kernel. Stage 1: don't includebde1997-03-241-1/+0
| | | | | it when it is not used. In most cases, the reasons for including it went away when the special ioctl headers became self-sufficient.
* Updated #includes to 4.4Lite style.bde1996-09-101-11/+11
|
* Switched from using devfs_add_sw() to using devfs_add_swf()scrappy1996-03-281-5/+3
| | | | Reviewed by: julian@freebsd.org
* Completed function declarations and/or added prototypes and/or addedbde1995-12-151-4/+5
| | | | #includes to get prototypes.
* Staticize and cleanup.phk1995-12-101-21/+28
|
* Julian forgot to make the *devsw structures static.phk1995-12-081-1/+1
|
* Pass 3 of the great devsw changesjulian1995-12-081-27/+30
| | | | | | | | | | | | | | | | | | | | | | | 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.. :)
* Removed unnecessary #includes of <sys/user.h>. Some of these were justbde1995-12-061-1/+1
| | | | | | | to get the definitions of TRUE and FALSE which happen to be defined in a deeply nested include. Added nearby #includes of <sys/conf.h> where appropriate.
* If you're going to mechanically replicate something in 50 filesjulian1995-11-291-1/+1
| | | | it's best to not have a (compiles cleanly) typo in it! (sigh)
* OK, that's it..julian1995-11-291-13/+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)
* the second set of changes in a move towards getting devices to bejulian1995-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 */
* Remove unused functions and variables, make things static, and other cleanups.phk1995-10-281-4/+2
|
* Fix benign type mismatches in devsw functions. 82 out of 299 devswbde1995-09-081-2/+4
| | | | functions were wrong.
* Don't include <sys/tty.h> in drivers that aren't tty drivers or in generalbde1995-07-161-1/+0
| | | | files that don't depend on the internals of <sys/tty.h>
* Remove trailing whitespace.rgrimes1995-05-301-4/+4
|
* I noticed that some new -W options had been turned on the kernel compile sincejkh1995-04-241-16/+22
| | | | | | | I made the changes I sent you before. In the interests of cleanliness, I made modifications to /sys/i386/isa/tw.c to kill the warnings and make it compile clean. While I was at it, I also made a bunch of internal functions static. Submitted by: Gene Stark <gene@starkhome.cs.sunysb.edu>
* Extensive updates to this package.jkh1995-04-181-14/+3
| | | | Submitted by: Gene Stark <gene@starkhome.cs.sunysb.edu>
* Add tw.c for the X10 driver.jkh1994-10-221-0/+990
OpenPOWER on IntegriCloud