summaryrefslogtreecommitdiffstats
path: root/sys/i386
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....
* A major sweep over the sysctl stuff.phk1995-12-042-19/+54
| | | | | | | | | | | | | Move a lot of variables home to their own code (In good time before xmas :-) Introduce the string descrition of format. Add a couple more functions to poke into these marvels, while I try to decide what the correct interface should look like. Next is adding vars on the fly, and sysctl looking at them too. Removed a tine bit of defunct and #ifdefed notused code in swapgeneric.
* Added prototypes.bde1995-12-031-5/+6
| | | | | | Staticized. Moved a NULL-initialized variable to the bss.
* __purified pmap_pte(). This seems to make no difference.bde1995-12-031-2/+2
|
* Completed function declarations and/or added prototypes.bde1995-12-034-13/+34
|
* Staticized.bde1995-12-031-45/+37
| | | | | | | | | | Completed function declarations and added prototypes. Cleaned up prototypes. Cleaned up #includes. Removed unused variable `dkn'.
* Moved inline functions for insque() and remque() to <sys/queue.h>.bde1995-12-031-33/+1
| | | | | | | Protected them with `#ifdef KERNEL' so that <sys/queue.h> is valid C++. Added the necessary #includes of <sys/queue.h>. These functions are bogus and should be replaced by the queue macros.
* Removed unused thread support (partly to get rid of its incompletebde1995-12-031-46/+2
| | | | | | function declarations). Removed unused #includes (lots of vm ones).
* 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
* GENERIC - Add a commented out line for adding support for IBM ThinkPadnate1995-11-293-1/+7
| | | | | | | keyboards LINT - Add SCANSET=2 support to the LINT kernel and comments reflecting it's purpose.
* Add some comments above the npx0 device to make it even more obviousnate1995-11-292-2/+16
| | | | that it is a mandatory device.
* Fix Pentium CPU rate diagnosis:wollman1995-11-295-42/+45
| | | | | | | | | | | | - 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.
* Don't staticize again (twice).bde1995-11-291-4/+5
| | | | Cleaned up includes.
* 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-2930-49/+51
| | | | it's best to not have a (compiles cleanly) typo in it! (sigh)
* #ifdef out nearly the entire file of conf.c when JREMOD is definedjulian1995-11-291-1/+21
| | | | | | | | | | add a few safety checks in specfs because now it's possible to get entries in [cd]devsw[] which are ALL NULL so it's better to discover this BEFORE jumping into the d_open() entry.. more check to come later.. this getsthe code to the stage where I can start testing it, even if I haven't caught every little error case... I guess I'll find them quick enough..
* OK, that's it..julian1995-11-2931-450/+796
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Staticize again.phk1995-11-293-10/+10
|
* A batch of Jim Lowe's patches:jkh1995-11-298-24/+122
| | | | | | | | | | 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
* oops forgot one..julian1995-11-282-2/+70
|
* 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
|
* After having put on my Asbestos suit, complete the MFS_ROOT part of Terry'speter1995-11-281-10/+20
| | | | | mountroot changes. This means that the mfs_initminiroot functionality into the root mfs_mount....
* Mainly cosmetic cleanups... It now uses more consistant message reportingpeter1995-11-283-27/+29
| | | | | 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
|
* Staticized. Moved some ero-initialized values to the bss.bde1995-11-241-8/+13
| | | | Added prototypes.
* 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 added prototypes.bde1995-11-2213-327/+410
| | | | | | Removed some unnecessary #includes. Fixed warnings about nested externs.
* Completed function declarations and/or added prototypes.bde1995-11-215-8/+12
|
* 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.
* Add and document the hooks for John Hay's Arnet sync driver...peter1995-11-213-5/+10
|
* 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-2010-93/+46
| | | | | | 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.
* Remove unused var.phk1995-11-201-2/+1
|
* Fix compiler warnings.phk1995-11-202-29/+28
|
* move variables inside the #ifdef.phk1995-11-201-3/+5
|
OpenPOWER on IntegriCloud