summaryrefslogtreecommitdiffstats
path: root/sys/gnu/i386
Commit message (Collapse)AuthorAgeFilesLines
* Remember folks, it's:msmith1999-10-123-0/+3
| | | | | | | | 1) test 2) commit 3) test again Guess who forgot 1 and 3? 8)
* remove unused #includephk1999-10-113-3/+0
|
* Introduce ttyread() and ttywrite() which do the canonical thing.phk1999-09-282-103/+5
| | | | | | Use them in many tty drivers. Reviewed by: julian, bde
* Remove five now unused fields from struct cdevsw. They should neverphk1999-09-252-10/+0
| | | | | | | | 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
* This patch clears the way for removing a number of tty relatedphk1999-09-252-50/+12
| | | | | | | | | | | | | | | | | | | | | fields in struct cdevsw: d_stop moved to struct tty. d_reset already unused. d_devtotty linkage now provided by dev_t->si_tty. These fields will be removed from struct cdevsw together with d_params and d_maxio Real Soon Now. The changes in this patch consist of: initialize dev->si_tty in *_open() initialize tty->t_stop remove devtotty functions rename ttpoll to ttypoll a few adjustments to these changes in the generic code a bump of __FreeBSD_version add a couple of FreeBSD tags
* $Id$ -> $FreeBSD$peter1999-08-2846-46/+46
|
* Convert DEVFS hooks in (most) drivers to make_dev().phk1999-08-232-94/+31
| | | | | | | | | | | | | | | | 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-312-36/+9
| | | | | | | | | | | | | | | | | | | | | | | | | 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-302-14/+42
| | | | | | | | | | | | | 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 some of the places where too much inside knowledge about major/minorphk1999-05-082-8/+6
| | | | layout and dev_t structure is being (ab)used.
* Add an additional probe, hopefully allowing me to distinguishbrian1999-05-031-6/+10
| | | | | between the PC/Xi and PC/Xem boards. Now all I need is for someone with a PC/Xem to tell me what the probe says....
* s/size == 0;/size = 0;/peter1999-05-022-6/+6
| | | | | PR: 11409 Submitted by: Christopher Peterson <cpeterso@cs.washington.edu>
* s/static foo_devsw_installed = 0;/static int foo_devsw_installed;/.dt1999-04-282-4/+4
| | | | (Edited automatically)
* Suser() simplification:phk1999-04-272-8/+8
| | | | | | | | | | | | | | | | | | | 1: s/suser/suser_xxx/ 2: Add new function: suser(struct proc *), prototyped in <sys/proc.h>. 3: s/suser_xxx(\([a-zA-Z0-9_]*\)->p_ucred, \&\1->p_acflag)/suser(\1)/ The remaining suser_xxx() calls will be scrutinized and dealt with later. There may be some unneeded #include <sys/cred.h>, but they are left as an exercise for Bruce. More changes to the suser() API will come along with the "jail" code.
* Fix so that this driver works again when compiled with EGCS (whichdavidn1999-04-221-31/+31
| | | | | apparently has a much better optimiser, requiring 'volatile' memory to be declared as such).
* Remove unused function int fi() {return 0;}eivind1999-04-111-4/+1
|
* Staticize.eivind1999-04-111-2/+2
|
* Make NDGBPORTS an official option.joerg1999-03-131-1/+2
|
* Use suser() to check for super user rather than examining cr_uid directly.phk1999-01-302-4/+6
| | | | | | Use TTYDEF_SPEED rather than 9600 a couple of places. Reviewed by: bde, with a few grumbles.
* Remove LKM support, src/lkm that built it is gone and it never worked as anpeter1999-01-171-35/+1
| | | | LKM anyway. It does work as a preloaded KLD module though.
* PR: kern/8819dillon1998-12-131-55/+55
| | | | | Trivial change of macro name from DEBUG to AWE_DEBUG to avoid conflict with kernel DEBUG option.
* The "easy" fixes for compiling the kernel -Wunused: remove unreferenced staticarchie1998-12-072-24/+6
| | | | and local variables, goto labels, and functions declared but not defined.
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()archie1998-12-041-1/+1
| | | | | | | | | | | | | | for possible buffer overflow problems. Replaced most sprintf()'s with snprintf(); for others cases, added terminating NUL bytes where appropriate, replaced constants like "16" with sizeof(), etc. These changes include several bug fixes, but most changes are for maintainability's sake. Any instance where it wasn't "immediately obvious" that a buffer overflow could not occur was made safer. Reviewed by: Bruce Evans <bde@zeta.org.au> Reviewed by: Matthew Dillon <dillon@apollo.backplane.com> Reviewed by: Mike Spengler <mks@networkcs.com>
* Finished updating module event handlers to be compatible withbde1998-11-151-2/+2
| | | | modeventhand_t.
* Initialize earlier (ie: before npx) in case it makes any difference.peter1998-10-181-4/+8
| | | | | Print a message when it attaches to pmath_emulate if bootverbose so that we can be sure it's online.
* OOPS!peter1998-10-181-2/+2
| | | | | | Supply the moduledata handle rather than the event dispatcher function. This should explain the panic on boot problem that's been discussed in -current at the moment. Both machines had GNU_MATH_EMULATE.
* *gulp*. Jordan specifically OK'ed this..peter1998-10-161-9/+29
| | | | | | | | This is the bulk of the support for doing kld modules. Two linker_sets were replaced by SYSINIT()'s. VFS's and exec handlers are self registered. kld is now a superset of lkm. I have converted most of them, they will follow as a seperate commit as samples. This all still works as a static a.out kernel using LKM's.
* Fixed printf format errors. Only one left in LINT on i386's.bde1998-08-242-21/+17
|
* Added D_TTY to the cdevswitch flags for all tty drivers. This is requiredbde1998-08-232-16/+18
| | | | | | | | | for the Lite2 fix for always returning EIO in dead_read(). Cleaned up the cdevswitch initializers for all tty drivers. Removed explicit calls to ttsetwater() from all (tty) drivers. ttsetwater() is now called centrally for opens, not just for parameter changes.
* Use [u]intptr_t instead of [u_]long for casts between pointers andbde1998-08-166-22/+28
| | | | integers. Don't forget to cast to (void *) as well.
* Use offsetof() to avoid some casts from pointers to integers (of abde1998-08-151-1/+3
| | | | possibly different size).
* Remove some #if 0'd and commented-out code.brian1998-08-121-34/+2
| | | | Fix a COMPAT_43 type.
* Synced with dgb.c. Important changes from 1.29 (ioctl handlingbde1998-08-121-52/+27
| | | | | | | | | | | | | | was broken), 1.30 (COMPAT_43 option header was missing), 1.31 (DEVFS option header was missing), 1.33 (garbage pointers were followed in debugging code). Cosmetic changes from 1.27, 1.32, 1.36, 1.37. Of course, the DEVFS code didn't even compile. Fixed. Not tested. Forgotten by: brian This file should not exist. It is the same as dgb.c except for lots of renamed variables, about 250 lines removed, and only about 100 lines of real differences.
* Fixed printf format errors.bde1998-08-121-7/+6
| | | | This file is disgusting.
* Add Id keywordbrian1998-08-053-2/+9
|
* Add driver dgm - for the Digiboard PC/Xembrian1998-08-044-0/+7023
| | | | | Submitted by: "IBS / Andre Oppermann" <andre@pipeline.ch> DEVFS additions: brian
* This commit fixes various 64bit portability problems required fordfr1998-06-071-2/+2
| | | | | | | | | | FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change. The prototype FreeBSD/alpha machdep will follow in a couple of days time.
* - breakage of the warnings about pessimized i/o port types.brian1998-04-212-31/+12
| | | | | | | | | | - pessimized i/o port types. - other pessimized types. - Don't use DEBUG (causes LINT warnings). Use DGB_DEBUG instead. - commented out code. - cloned code that doesn't apply ("Smarts" is for the cy driver only). Submitted by: bde
* Correct the digiboard device names in agreementbrian1998-04-211-11/+16
| | | | with the man page (POLA).
* o Move debug stuff down a bit so that it doesn't try tobrian1998-04-211-31/+38
| | | | | | | | dereference uninitialized pointers. o Fix DEVFS permissions o Fix DEVFS minor numbers o Add initial & lock devices for cua device. o Fix permissions in line with sio.
* Support compiling with `gcc -ansi'.bde1998-04-151-9/+9
|
* Make all file-system (MFS, FFS, NFS, LFS, DEVFS) related option new-style.eivind1998-01-241-1/+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.
* update the AWE32 wave table driver to Iwai's 0.4.2c version. This alsojmg1998-01-084-24/+100
| | | | | | includes the patches to make it work under -current from Randall Hopper. Remove the old AWE driver.
* This commit was generated by cvs2svn to compensate for changes in r32345,jmg1998-01-086-0/+5488
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * import of GPL'd AWE32 Sound Driver v0.4.2cjmg1998-01-086-0/+5488
| | | | Submitted by: Randall Hopper
* Make COMPAT_43 and COMPAT_SUNOS new-style options.eivind1997-12-161-1/+3
|
* Use ENOIOCTL instead of -1 (= ERESTART) for tty ioctls that arebde1997-12-061-3/+3
| | | | | not handled at a particular level. This fixes mainly restarting of interrupted TIOCDRAINs and TIOCSETA{W,F}s.
* Update select -> poll in drivers.peter1997-09-141-2/+2
|
* Removed unused #includes (bogus #includes were necessary because fusword()bde1997-08-312-4/+2
| | | | was declared in the wrong place).
* Fixed bitrot in fpu LKMs.bde1997-07-201-7/+4
|
OpenPOWER on IntegriCloud