summaryrefslogtreecommitdiffstats
path: root/sys/gnu
Commit message (Collapse)AuthorAgeFilesLines
* recording cvs-1.6 file deathpeter1995-12-3025-11732/+0
|
* Fixed erroneous resending of the output buffer.bde1995-12-291-11/+34
| | | | | | | | Fixed panics for events on nonexistent ports. Fixed devconf class initialization and devconf state tracking. Submitted by: Serge A. Babkin <babkin@hq.icb.chel.su>
* Fixed syntax errors caused by EXCEPTION() when DEBUG is defined.bde1995-12-221-3/+9
| | | | Added includes to get the prototype for printf() when DEBUG is defined.
* Changed the definition of DEBUG to agree with -DDEBUG to avoid warningsbde1995-12-221-2/+2
| | | | when DEBUG is an option.
* Staticize and remove $Log$.phk1995-12-175-448/+38
|
* Staticize.phk1995-12-1713-137/+147
|
* Fixed the type of some sysinit functions.bde1995-12-141-2/+2
|
* Another mega commit to staticize things.phk1995-12-144-16/+10
|
* Make math_emulators LKMable.phk1995-12-141-7/+57
|
* Restored variables that are used iff QUOTA is defined.bde1995-12-104-0/+12
| | | | | ext2fs still uses #if in many cases where the rest of the kernel uses #ifdef (for QUOTA...).
* Replaced nxreset by noreset (if the reset function gets called, then thebde1995-12-101-2/+2
| | | | | | | device must be configured. It's hard to tell whether a reset function should be noreset or nullreset since reset functions are never called. Most drivers use nullreset but noreset has the advantage of complaining if somehow gets called).
* Removed new alias d_size_t for d_psize_t.bde1995-12-103-8/+13
| | | | | | | | | | Removed old aliases d_rdwr_t and d_ttycv_t for d_read_t/d_write_t and d_devtotty_t. Sorted declarations of switch functions into switch order. Removed duplicated comments and declarations of nonexistent switch functions.
* Restored used includes of <vm/vm_extern.h>.bde1995-12-104-0/+4
|
* Julian forgot to make the *devsw structures static.phk1995-12-087-20/+158
|
* Pass 3 of the great devsw changesjulian1995-12-087-239/+304
| | | | | | | | | | | | | | | | | | | | | | | 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.. :)
* Untangled the vm.h include file spaghetti.dg1995-12-071-1/+3
|
* Replaced #includes of <sys/user.h> by less gross headers, usuallybde1995-12-061-2/+3
| | | | | | | <sys/vm.h>. Many device drivers need only the definition of vtophys() from vm. Added nearby #includes of <sys/conf.h> where appropriate.
* Removed unnecessary #includes of <sys/user.h>. Some of these were justbde1995-12-061-3/+7
| | | | | | | 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.
* Fixed ity's d_stop entry. itystop() wasn't used. itystop() is inadequatebde1995-12-051-3/+7
| | | | | | | | | | | | | but probably harmless. It's hard to tell because apparently no one runs ity. Fixed ity's d_reset entry. `nx' entries should never be used for existing devices. conf.c: Moved a prototype to a better place. Removed a stale #define.
* If you're going to mechanically replicate something in 50 filesjulian1995-11-297-20/+56
| | | | it's best to not have a (compiles cleanly) typo in it! (sigh)
* OK, that's it..julian1995-11-297-48/+372
| | | | | | | | | | | | | | | | | | | | | | | | 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)
* Completed function declarations, added prototypes and removed redundantbde1995-11-212-16/+76
| | | | declarations.
* Correct some serious porting errors. The worst one was that thedyson1995-11-196-18/+82
| | | | vnode was being placed upon the mount point twice!!!
* Fixed the type of nic_listen(). A trailing arg was missing.bde1995-11-181-5/+9
| | | | Fixed calls to s_intr(). There was sometimes an extra trailing arg.
* Fixed a call to the listen function. A trailing arg was missing.bde1995-11-161-10/+16
| | | | | | | | | | | | Fixed the type of isdn_check(). A trailing arg was missing. Included "conf.h" to get some prototypes. Completed function declarations. Added prototypes. Removed some useless includes.
* Completed function declarations.bde1995-11-161-14/+41
| | | | Added prototypes.
* Fixed the type of ity_input(). A trailing arg was missing.bde1995-11-161-7/+10
| | | | | | | | Completed function declarations. Added prototypes. Removed some useless includes.
* Fixed the type of itel_input(). A trailing arg was missing.bde1995-11-161-4/+8
| | | | | | Included "conf.h" to get some prototypes. Removed some useless includes.
* Fixed the types of iioutput() and ii_input(). Trailing args were missing.bde1995-11-161-5/+12
| | | | Completed function declarations.
* Get rid of the last debug sysctl variables of the old style.phk1995-11-144-6/+6
|
* ext2_inode_cnv.c:bde1995-11-0914-48/+70
| | | | | | | | | | | | | | | Included <sys/vnode.h> and its prerequisite <sys/proc.h>, and cleaned up includes. The vop_t changes made the non-inclusion of vnode.h fatal instead of just sloppy. i386_bitops.h: Changed `extern inline' to `static inline'. `extern inline' is a Linuxism that stops things from compiling without -O. Fixed idempotency identifier. Misc: Added prototypes. Staticized some functions so that prototypes are unnecessary. Added casts. Cleaned up includes.
* Introduced a type `vop_t' for vnode operation functions and usedbde1995-11-094-270/+270
| | | | | | | | | | | | | | | it 1138 times (:-() in casts and a few more times in declarations. This change is null for the i386. The type has to be `typedef int vop_t(void *)' and not `typedef int vop_t()' because `gcc -Wstrict-prototypes' warns about the latter. Since vnode op functions are called with args of different (struct pointer) types, neither of these function types is any use for type checking of the arg, so it would be preferable not to use the complete function type, especially since using the complete type requires adding 1138 casts to avoid compiler warnings and another 40+ casts to reverse the function pointer conversions before calling the functions.
* Cleaned up some lint and some obvious prototyping errors.dyson1995-11-0814-76/+52
|
* Omitted a '#if FIFO' in ext2_vnops.cdyson1995-11-062-0/+4
| | | | Submitted by: Justin Gibbs
* Changes to existing files for ext2fs support. The UFS mods need reworkdyson1995-11-054-4/+14
| | | | | in the future as they are a bit crufty -- but at least the stuff is in the tree now.
* Main code for the ext2fs filesystem. Please refer to the COPYRIGHT.INFOdyson1995-11-0535-0/+13232
| | | | | | | | | | file for GPL restrictions. This code was ported to the BSD platform by Godmar Back <gback@facility.cs.utah.edu> and specifically to FreeBSD by John Dyson. This code is still green and should be used with caution. Additional changes to UFS necessary to make this code work will be commited seperately. Submitted by: Godmar Back <gback@facility.cs.utah.edu> Obtained from: Lites/Mach4
* Fix ufs_bmap so that triple indirect blocks might work.dyson1995-11-052-4/+4
| | | | Submitted by: Godmar Back <gback@facility.cs.utah.edu>
* Moved prototypes for devswitch functions from conf.c and driver sourcesbde1995-11-041-11/+1
| | | | | | | to <machine/conf.h>. conf.h was mechanically generated by `grep ^d_ conf.c >conf.h'. This accounts for part of its ugliness. The prototypes should be moved back to the driver sources when the functions are staticalized.
* Fix select().bde1995-10-121-59/+25
| | | | | | | Remove some unused code and never-working backwards compatibility code. Add prototypes. Reviewed by: babkin@hq.icb.chel.su (Serge Babkin)
* I have applied my last changes correcting the bug in dgbselect() to itjkh1995-10-042-102/+46
| | | | | | | | | | | | and here is the patch. Submit it please. Thank you! BTW, there is a new option "NDGBPORTS". By default it is equal to NDGB*16 and means the number of ports of all Digiboards for which the tty structures are reserved. It can be set to the real value in config-file like: options "NDGBPORTS=8" Submitted by: Serge A. Babkin <babkin@hq.icb.chel.su>
* Fix benign type mismatches in isa interrupt handlers. Many returned intbde1995-09-191-3/+7
| | | | instead of void.
* Fix benign type mismatches in devsw functions. 82 out of 299 devswbde1995-09-085-35/+47
| | | | functions were wrong.
* Finish bringing this driver up to rev 2.2 - now compiles without warnings.jkh1995-09-041-6/+19
|
* Added VOP_GETPAGES/VOP_PUTPAGES and also the "backwards" block countdyson1995-09-042-10/+56
| | | | for VOP_BMAP. Updated affected filesystems...
* Bring the Digiboard driver (ALPHA version) into -current. Includesjkh1995-09-034-0/+3120
| | | | | latest patches for PC/Xe boards. Submitted by: "Serge A. Babkin" <babkin@hq.icb.chel.su>
* Use tsleep() instead of ttysleep() to wait for carrier since a generationbde1995-07-311-4/+48
| | | | change isn't an error.
* Obtained from: partly from ancient patches of mine via 1.1.5bde1995-07-311-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce TS_CONNECTED and TS_ZOMBIE states. TS_CONNECTED is set while a connection is established. It is set while (TS_CARR_ON or CLOCAL is set) and TS_ZOMBIE is clear. TS_ZOMBIE is set for on to off transitions of TS_CARR_ON that occur when CLOCAL is clear and is cleared for off to on transitions of CLOCAL. I/o can only occur while TS_CONNECTED is set. TS_ZOMBIE prevents further i/o. Split the input-event sleep address TSA_CARR_ON(tp) into TSA_CARR_ON(tp) and TSA_HUP_OR_INPUT(tp). The former address is now used only for off to on carrier transitions and equivalent CLOCAL transitions. The latter is used for all input events, all carrier transitions and certain CLOCAL transitions. There are some harmless extra wakeups for rare connection- related events. Previously there were too many extra wakeups for non-rare input events. Drivers now call l_modem() instead of setting TS_CARR_ON directly to handle even the initial off to on transition of carrier. They should always have done this. l_modem() now handles TS_CONNECTED and TS_ZOMBIE as well as TS_CARR_ON. gnu/isdn/iitty.c: Set TS_CONNECTED for first open ourself to go with bogusly setting CLOCAL. i386/isa/syscons.c, i386/isa/pcvt/pcvt_drv.c: We fake carrier, so don't also fake CLOCAL. kern/tty.c: Testing TS_CONNECTED instead of TS_CARR_ON fixes TIOCCONS forgetting to test CLOCAL. TS_ISOPEN was tested instead, but that broke when we disabled the clearing of TS_ISOPEN for certain transitions of CLOCAL. Testing TS_CONNECTED fixes ttyselect() returning false success for output to devices in state !TS_CARR_ON && !CLOCAL. Optimize the other selwakeup() call (this is not related to the other changes). kern/tty_pty.c: ptcopen() can be declared in traditional C now that dev_t isn't short.
* Obtained from: partly from ancient patches of mine via 1.1.5bde1995-07-221-3/+14
| | | | | Give names to the magic tty i/o sleep addresses and use them. This makes it easier to remember what the addresses are for and to keep them unique.
* Move the inline code for waking up writers to a new functionbde1995-07-221-11/+9
| | | | | | | | | | | ttwwakeup(). The conditions for doing the wakeup will soon become more complicated and I don't want them duplicated in all drivers. It's probably not worth making ttwwakeup() a macro or an inline function. The cost of the function call is relatively small when there is a process to wake up. There is usually a process to wake up for large writes and the system call overhead dwarfs the function call overhead for small writes.
* Obtained from: partly from ancient patches by ache and me via 1.1.5bde1995-07-211-3/+19
| | | | | Nuke `symbolic sleep message strings'. Use unique literal messages so that `ps l' shows unambiguously where processes are sleeping.
OpenPOWER on IntegriCloud