summaryrefslogtreecommitdiffstats
path: root/sys/dev/dgb
Commit message (Collapse)AuthorAgeFilesLines
* Remove #include <sys/dkstat.h>phk2003-02-161-1/+0
|
* Be consistent about "static" functions: if the function is markedphk2002-09-281-1/+1
| | | | | | static in its prototype, mark it static at the definition too. Inspired by: FlexeLint warning #512
* Change the suser() API to take advantage of td_ucred as well as do ajhb2002-04-011-3/+3
| | | | | | | | | | | | general cleanup of the API. The entire API now consists of two functions similar to the pre-KSE API. The suser() function takes a thread pointer as its only argument. The td_ucred member of this thread must be valid so the only valid thread pointers are curthread and a few kernel threads such as thread0. The suser_cred() function takes a pointer to a struct ucred as its first argument and an integer flag as its second argument. The flag is currently only used for the PRISON_ROOT flag. Discussed on: smp@
* Remove __P.alfred2002-03-201-16/+16
|
* Repair some warnings. These are accessing idle portions of shared memorypeter2002-02-271-5/+9
| | | | buffers.
* Don't call cdevsw_add().phk2001-11-041-3/+0
|
* KSE Milestone 2julian2001-09-121-10/+10
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* Fairwell dgmbrian2001-06-274-7110/+0
|
* New-busify and ansify.brian2001-04-141-895/+1061
| | | | | I've cleaned up a bit of the formatting here, but it's still a long way from style(9).
* Send the remains (such as I have located) of "block major numbers" tophk2001-03-262-2/+0
| | | | the bit-bucket.
* Extend kqueue down to the device layer.jlemon2001-02-152-4/+6
| | | | Backwards compatible approach suggested by: peter
* Add curly braces ({}) around each struct speedtab to quiet warnings.jhb2001-01-232-38/+38
|
* Completed move of Digiboard drivers to dev/dgbbabkin2001-01-082-6/+6
|
* Changed the copyright notice to BSD-style. The original GPL copyrightbabkin2001-01-054-24/+110
| | | | | was used due to confusion. Now this code should be moved out of the gnu ghetto subdirectory.
* Move suser() and suser_xxx() prototypes and a related #define fromphk2000-10-292-2/+0
| | | | | | | | | <sys/proc.h> to <sys/systm.h>. Correctly document the #includes needed in the manpage. Add one now needed #include of <sys/systm.h>. Remove the consequent 48 unused #includes of <sys/proc.h>.
* Remove unneeded #include <machine/clock.h>phk2000-10-152-2/+0
|
* Mass update of isa drivers using compatability shims to usepeter2000-05-282-2/+22
| | | | COMPAT_ISA_DRIVER() so that we can get rid of the evil isa_compat.h table.
* Compile in the case that anyone ever actually uses LEAVE_FREE_CHARS.hoek2000-05-211-1/+1
| | | | | | It's not clear what this does nor why they would do it, but it should compile, now. This could be a case where fixing the code so that it compiles merely masks more devious dysfunctional behaviour.
* Remove #if NDGB > 0 and #if NDGM > 0peter2000-01-292-9/+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-286-6/+6
|
* 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
|
* 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.
* 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.
* 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-162-5/+5
| | | | integers. Don't forget to cast to (void *) as well.
* 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.
* Make COMPAT_43 and COMPAT_SUNOS new-style options.eivind1997-12-161-1/+3
|
OpenPOWER on IntegriCloud