summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa
Commit message (Collapse)AuthorAgeFilesLines
* all:dg1995-12-0513-251/+167
| | | | | | | | | | | | | | | | Removed ifnet.if_init and ifnet.if_reset as they are generally unused. Change the parameter passed to if_watchdog to be a ifnet * rather than a unit number. All of this is an attempt to move toward not needing an array of softc pointers (which is usually static in size) to point to the driver softc. if_ed.c: Changed some of the argument passing to some functions to make a little more sense. if_ep.c, if_vx.c: Killed completely bogus use of if_timer. It was being set in such a way that the interface was being reset once per second (blech!).
* aargh! I tested JREMOD, only to discover that the "good oil" part ofpeter1995-12-041-3/+3
| | | | it for si.c was accidently inside some #ifdef DEBUG code....
* I don't know what I messed up in 1.40, but the crynwr mode didn't make it.phk1995-12-021-25/+224
| | | | Here it is then, I hope.
* A quick fix for a problem that will go away in a few days anyway..julian1995-12-011-2/+2
|
* remove typojulian1995-12-011-2/+1
|
* A pair of really tiny patches that not only allow it all to compilejulian1995-11-301-5/+5
| | | | | | | | | but also IT ACTUALLY WORKS! FreeBSD with options JREMOD now runs with no entries in the devsw tables prior to the devices puting their own entries there.. Thanks to bde and terry for thoughts and comments. next stop 'Real' devfs support in devices.
* Fix my color/attr separation patch.ache1995-11-301-3/+3
| | | | Swap foreground/background logic to allow DIM REVERSE
* Fix Pentium CPU rate diagnosis:wollman1995-11-291-8/+8
| | | | | | | | | | | | - Don't print out meaningless iCOMP numbers, those are for droids. - Use a shorter wait to determine clock rate to avoid deficiencies in DELAY(). - Use a fixed-point representation with 8 bits of fraction to store the rate and rationalize the variable name. It would be possible to use even more fraction if it turns out to be worthwhile (I rather doubt it). The question of source code arrangement remains unaddressed.
* Removed builtin list of port addresses. The address for sio3bde1995-11-291-10/+5
| | | | | | | | | | conflicted with S3 graphics cards. Now users should put sio[2-3] in the config file if the hardware exisst, even if the probe is certain to fail due to an interrupt conflict. Otherwise, ports sharing the interrupt may fail the probe if the system is warm booted while sio[2-3] are active (perhaps under another OS). The same problem for nonstandard ports is now handled better than before.
* If you're going to mechanically replicate something in 50 filesjulian1995-11-2925-38/+38
| | | | it's best to not have a (compiles cleanly) typo in it! (sigh)
* OK, that's it..julian1995-11-2927-385/+662
| | | | | | | | | | | | | | | | | | | | | | | | 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)
* staticize.phk1995-11-291-42/+42
|
* Add crynwr mode to the lp# interface.phk1995-11-291-4/+2
| | | | | Reviewed by: pst, phk Submitted by: tim@sarc.city.ac.uk
* A batch of Jim Lowe's patches:jkh1995-11-295-19/+106
| | | | | | | | | | o Add signed/unsigned functionality to the matrox meteor device driver. o Apply a few fixes to the sound driver. o Add a ``SPIGOT_UNSECURE'' compile time definition so, if one defines SPIGOT_UNSECURE in their conf file, then they can use the spigot w/o root. There is a warning that this allows users access to the IO page which is probably not secure. Submitted by: james
* the second set of changes in a move towards getting devices to bejulian1995-11-282-1/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | totally dynamic. (the first was about 7 weeeks ago) 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 */
* the second set of changes in a move towards getting devices to bejulian1995-11-2826-19/+864
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 */
* Removed all #includes of the unused file <sys/device.h>.bde1995-11-281-2/+1
|
* Mainly cosmetic cleanups... It now uses more consistant message reportingpeter1995-11-282-22/+24
| | | | | on the console, and no longer uses "SLXOS" which I suspect may be a trademark... (I'm not sure, but this is not really a SLXOS driver anyway)
* Separate colors & attributes as Terry pointsache1995-11-282-74/+148
| | | | Reviewed by: soren
* Fixed setting of speed B0 - don't output a bogus divisor of 0 and abde1995-11-261-5/+9
| | | | | random prescaler, just hang up. This may fix hangup problems with mgetty.
* Completed function declarations and/or added prototypes.bde1995-11-243-2/+7
|
* Added bogusly placed extern prototypes for functions that should probablybde1995-11-247-0/+24
| | | | be static.
* Fixed a comment.bde1995-11-241-2/+2
|
* Update the wd.c driver to use the new TAILQ scheme for devicedyson1995-11-231-29/+39
| | | | | | buffer queue. Also, create a new subroutine 'tqdisksort' that is an improved version of the original disksort that also uses TAILQs.
* Completed function declarations and/or added prototypes.bde1995-11-212-3/+6
|
* Restored static variable `nsio_tty' which is used only by pstat(8). Madebde1995-11-211-1/+3
| | | | | | | it `const' to inhibit compiler warnings. Added #include of <pccard/driver.h> to get prototypes. <pccard/slot.h> is still necessary for its side effect of exporting non-slot things.
* This commit was generated by cvs2svn to compensate for changes in r12437,peter1995-11-213-0/+1962
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * This driver supports the Arnet SYNC/570i ISA cards that is based on thepeter1995-11-213-0/+1962
| | | | | | | | | | | | | | | | | HD64570 chip. Both the 2 and 4 port cards is supported and auto detected. Line speeds of up to 2Mbps is possible. At this speed about 85% of the bandwidth is usable with 486DX processors. The standard FreeBSD sppp code is used for the link level layer. The default protocol used is PPP. The Cisco HDLC protocol can be used by adding "link2" to the ifconfig line in /etc/sysconfig or where ever ifconfig is run. At the moment only the V.35 and X.21 interfaces is supported. The others may need tweaks to the clock selection code. Submitted by: John Hay <jhay@mikom.csir.co.za>
* Quick fix for stat_imask and intr_mask[8] not having the RTC interruptbde1995-11-201-1/+2
| | | | | | | | bit set. I broke stat_imask in Dec 1994 and update_intr_masks() has copied the breakage to intr_mask[8] since Mar 1995. This can cause the RTC to stop interrupting in rare cases (under loads heavy enough for a new RTC interrupt to occur at a critical time just before Xintr8 finishes handling the previous one) and may have caused worse problems.
* Mega commit for sysctl.phk1995-11-206-53/+30
| | | | | | Convert the remaining sysctl stuff to the new way of doing things. the devconf stuff is the reason for the large number of files. Cleaned up some compiler warnings while I were there.
* Fix compiler warnings.phk1995-11-202-29/+28
|
* move variables inside the #ifdef.phk1995-11-201-3/+5
|
* Moved bogusly placed #endif that hid some prototypes.bde1995-11-181-1/+1
|
* Updated comments. The comments about the unused addresses get brokenbde1995-11-181-24/+30
| | | | | | | | | | | | | | | almost every time someone uses an address. This file is probably not the right place to keep track of the unused addresses (or used addresses :->). Fixed comments on #endif's to match code. Added defines for ASC and GSC sizes. This file is not the right place to keep track of scanner addresses, but while there here and we pretend to keep track of unused addresses, the sizes need to be here too. Sorted IO_*SIZE defines.
* Fixed the types of the apm hook functions.bde1995-11-181-7/+12
| | | | | | | | Completed function declarations. Added prototypes. Partially fixed the path to cons.h.
* Fixed the types of the apm hook functions.bde1995-11-181-15/+27
| | | | | | Completed function declarations. Added prototypes.
* Fixed the type of a timeout function.bde1995-11-181-2/+8
| | | | Added prototypes.
* Fixed staticization - use `static' in function headers, not just inbde1995-11-181-19/+19
| | | | prototypes.
* Fixed a bogus include path.bde1995-11-181-2/+9
| | | | | | Removed a bogus include. Added prototypes.
* Staticized an inline function. All inlines in kernel headers should bebde1995-11-181-2/+2
| | | | | static. The function shouldn't be here anyway. It is driver dependent, while `ic' files are supposed to only depend on the IC.
* Fixed (nonexistent) initialization of bp->b_pblkno. disksort() forbde1995-11-181-14/+2
| | | | | | | | | | | | | floppies must have been random in 2.x since we reintroduced sorting on b_pblkno on 1995/03/18. Drivers still initialize b_cylin/b_resid although this is no longer used. Removed unused, wrong function fdsize(). (Returning 0 means that the device exists and has size 0, not that the device doesn't exist. swaponvp() allows for size 0 by stupidly calling the d_psize function twice if the size isn't 0. setdumpdev() doesn't allow for it.) Continued removing /* ARGSUSED */ from drivers.
* Fixed the type of a timeout function.bde1995-11-181-9/+5
| | | | | Removed related bogus casts of function pointers. Removed a bogus include.
* Included <sys/conf.h>. It used to be included as a side effect ofbde1995-11-163-3/+6
| | | | including <sys/devconf.h>.
* Correct the bogus probe for 8216/8416 cards...it was broken.dg1995-11-151-19/+17
| | | | Submitted by: Steve Piette <steve@simon.chi.il.US>
* Fiddle with <machine/isa_device.h>phk1995-11-141-0/+2
|
* Staticize various private parts.phk1995-11-142-4/+4
|
* Make a lot of private stuff staticphk1995-11-141-21/+21
|
* Changed the first (name) arg of MOD_DEV(), MOD_EXEC() and MOD_MISC()bde1995-11-142-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from a string to an identifier so that it can be used to generate declarations and strings. It's much easier to stringize an identifier than to identifize a string. A uniform naming scheme must be used for the automatically generated things to apply. This is a feature. Used the module identifer to generate prototypes for the module load, unload and stat functions. Removed the few prototypes for these that already existed. Used the module identifier to generate a unique struct tag in MOD_DEV(). This should probably be done for all the MOD_*() macros. Moved the trailing semicolon from the MOD_*() macro definitions to the macro invocations that didn't already (bogusly) have it. Staticized the module load and unload functions. Added function return types for the module load, unload and stat functions. lkm/ibcs2/ibcs2.c: Included <sys/sysproto.h> to get everything prototyped. Cleaned up #includes. lkm/ibcs2/ipfw.c: Cleaned up #includes. lkm/linux/linux.c: The module name had to change from "linux_emulator" to "linux_mod" to be automatically generated. Cleaned up #includes. lkm/syscons/*/*_saver.c: Completed delcarations of function pointers. sys/i386/isa/atapi.c: The module name had to change from "atapi" to "atapi_mod" to be automatically generated. sys/i386/isa/wcd.c: Used the fixed MOD_DEV(). This module has two devices and expanded the macro in the source instead of fixing it. The module names had to change from "wcd" and "rwcd" to "wcd_mod" and "rwcd_mod" to be automatically generated. sys/pccard/pcic.c: The module name had to change from "pcic" to "pcic_mod" to be automatically generated.
* Replaced nosys() by lkm_nullcmd().bde1995-11-131-1/+1
|
* Add /dev/random hooks to the key input routines for pcvt. This allowsmarkm1995-11-122-1/+12
| | | | | | the scancodes on a PCVT machine to be used as stochastic input as well as SysCons.. Reviewed by: Joerg Wunsch
OpenPOWER on IntegriCloud