summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* #ifdef out nearly the entire file of conf.c when JREMOD is definedjulian1995-11-294-7/+42
| | | | | | | | | | 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..
* A test was backwards.phk1995-11-292-4/+6
| | | | Noticed by: Cheng, Hsiao-Yang <sycheng@cis.ufl.edu>
* 'see" -> "see" (in the comment).asami1995-11-292-4/+4
| | | | Noticed by: hilit19.el (stop laughing! ;)
* OK, that's it..julian1995-11-2979-743/+2708
| | | | | | | | | | | | | | | | | | | | | | | | 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
|
* Staticized and '#ifdef notused' stuff we don't use.phk1995-11-2918-131/+140
|
* 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-294-12/+12
|
* A batch of Jim Lowe's patches:jkh1995-11-2912-35/+148
| | | | | | | | | | 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
* Device driver for Intel Pro/100 PCI Fast Ethernet controller.dg1995-11-285-0/+2627
|
* Add Lyndon's man page.joerg1995-11-282-1/+67
| | | | | | Closes PR # docs/842 Submitted by: lyndon@orthanc.com (Lyndon Nerenberg)
* 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-2840-32/+1351
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-283-6/+3
|
* Removed bogus __BEGIN_DECS/__END_DECLS.bde1995-11-281-3/+1
|
* After having put on my Asbestos suit, complete the MFS_ROOT part of Terry'speter1995-11-283-46/+67
| | | | | mountroot changes. This means that the mfs_initminiroot functionality into the root mfs_mount....
* Implement read/write to kernel space - I use this for a self-loading/peter1995-11-281-11/+16
| | | | | | | self-decompressing ram disk that I'm fiddling with.. (Note, this depends on the various syscalls having correctly set uio_segflag before calling physio - I've checked and they look correct.)
* Attempt to solve the busy-buffers-on-shutdown caused by MFS once and for all.peter1995-11-281-4/+14
| | | | | | | | | | | | | What was happening, was that the main mfs loop was sleeping, and when it was being awoken by a wakeup when it was supposed to process some IO requests. The problem was that if it was being woken out of the tsleep() by a signal at shutdown, it was going straight into dounmount() without servicing any pending IO requests, causing dounmount() to fail because there were busy buffers (and they could not be "processed" because the processing loop was trying to unmount rather than dispatching into mfs_doio()). This (dare I say it :-) appears to be a layering problem....
* Mainly cosmetic cleanups... It now uses more consistant message reportingpeter1995-11-286-54/+58
| | | | | 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)
* Implement some rudimentry IPX support...peter1995-11-281-2/+18
|
* Separate colors & attributes as Terry pointsache1995-11-286-222/+444
| | | | Reviewed by: soren
* Fixed setting of speed B0 - don't output a bogus divisor of 0 and abde1995-11-263-15/+27
| | | | | random prescaler, just hang up. This may fix hangup problems with mgetty.
* Oops, the previous change was missing the declaration of `structbde1995-11-243-3/+9
| | | | | buf_queue_head'. It isn't forward declared in <sys/types.h> like `struct buf'.
* 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-243-6/+6
|
* Declared tqdisksort(). <sys/disklabel.h> is the wrong place, butbde1995-11-243-3/+6
| | | | <sys.disk.h> isn't used, so the declaration there isn't seen.
* Completed function declarations and/or added prototypes and/or #includesbde1995-11-2414-68/+98
| | | | | | | | | | to get the prototypes. Changed some `int's to `boolean_t's. boolean_t's are ints so they are hard to distinguish from ints. Converted function headers to old-style. ddb is written in K&R1 C except where we broke it.
* Completed function declarations and/or added prototypes.bde1995-11-249-130/+155
| | | | | | Removed `extern' from prototypes. Sorted prototypes. Uniformized idempotency ifdefs.
* Staticized. Moved some ero-initialized values to the bss.bde1995-11-242-16/+26
| | | | Added prototypes.
* Cleaned up prototypes:bde1995-11-247-131/+112
| | | | | | | | | | | | - don't #include other headers just to get struct names. - don't use __BEGIN_DECLS/__END_DECLS for system prototypes. It is for user prototypes. - don't use extern. - don't use lines longer than 80 columns. - use alphabetical order. - use tabs. Uniformized idempotency ifdefs.
* Fixed a bogus name (ifn_en) that was introduced when a type mismatchbde1995-11-241-4/+4
| | | | was fixed.
* Added #include <sys/queue.h>. This will be required when I movebde1995-11-242-2/+4
| | | | | the (inline) implementations of insque() and remque() from <machine/cpufunc.h> to <sys/queue.h>.
* Undid bogus cleanups. 0 was mistyped as NULL.bde1995-11-242-5/+5
|
* Update the wd.c driver to use the new TAILQ scheme for devicedyson1995-11-234-32/+229
| | | | | | 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-2222-369/+462
| | | | | | Removed some unnecessary #includes. Fixed warnings about nested externs.
* Completed function declarations, added prototypes and removed redundantbde1995-11-219-129/+336
| | | | declarations.
* Completed function declarations, added prototypes and removed redundantbde1995-11-211-6/+13
| | | | declarations.
* Completed function declarations, added prototypes and removed redundantbde1995-11-212-16/+76
| | | | declarations.
* Made pci.c compile again. It unfortunately depends on the isa interruptbde1995-11-212-2/+6
| | | | interface. Adding prototypes just made the dependency explicit.
* Completed function declarations and/or added prototypes.bde1995-11-2143-142/+223
|
* Restored static variable `nsio_tty' which is used only by pstat(8). Madebde1995-11-213-3/+9
| | | | | | | 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.
* New file for pccard driver interface declarations.bde1995-11-211-0/+22
|
* Fixed replication error so that this compiles again.bde1995-11-211-4/+3
| | | | Removed bogus comment and useless braces.
* Make the LKM version compile again.phk1995-11-211-4/+3
| | | | Pointed out by: Michael Smith <msmith@atrad.adelaide.edu.au>
* Add and document the hooks for John Hay's Arnet sync driver...peter1995-11-215-8/+16
|
* 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>
* This driver supports the Arnet SYNC/570i ISA cards that is based on thepeter1995-11-214-0/+3417
| | | | | | | | | | | | | | | | | 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>
OpenPOWER on IntegriCloud