summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/stallion.c
Commit message (Collapse)AuthorAgeFilesLines
* Convert more malloc+bzero to malloc+M_ZERO.dwmalone2000-12-081-10/+6
| | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net>
* Move suser() and suser_xxx() prototypes and a related #define fromphk2000-10-291-1/+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>.
* Fix typo (accessable --> accessible).alex2000-06-141-1/+1
| | | | | | PR: 18588 Submitted by: Anatoly Vorobey <mellon@pobox.com> Reviewed by: asmodai
* Mass update of isa drivers using compatability shims to usepeter2000-05-281-1/+6
| | | | COMPAT_ISA_DRIVER() so that we can get rid of the evil isa_compat.h table.
* Introduce ttyread() and ttywrite() which do the canonical thing.phk1999-09-281-38/+2
| | | | | | Use them in many tty drivers. Reviewed by: julian, bde
* Remove five now unused fields from struct cdevsw. They should neverphk1999-09-251-5/+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-251-22/+8
| | | | | | | | | | | | | | | | | | | | | 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
* Fix various trivial warnings from LINTphk1999-08-281-3/+1
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Use devtoname() to print dev_t's instead of casting them to long or u_longbde1999-08-231-8/+8
| | | | for misprinting in %lx format.
* Simplify cdevsw registration.phk1999-05-311-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | | 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-301-7/+21
| | | | | | | | | | | | | 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.
* Simplify the COMPAT_PCI_DRIVER/DATA_SET hack. We can add:peter1999-05-091-5/+1
| | | | | | | | #define COMPAT_PCI_DRIVER(name,data) DATA_SET(pcidevice_set,data) .. to 2.2.x and 3.x if people think it's worth it. Driver writers can do this if it's not defined. (The reason for this is that I'm trying to progressively eliminate use of linker_sets where it hurts modularity and runtime load capability, and these DATA_SET's keep getting in the way.)
* Fix some of the places where too much inside knowledge about major/minorphk1999-05-081-15/+14
| | | | layout and dev_t structure is being (ab)used.
* Fix up a few easy 'assignment used as truth value' and 'suggest parenspeter1999-05-061-2/+3
| | | | | around && within ||' type warnings. I'm pretty sure I have not masked any problems here, I've committed real problem fixes seperately.
* s/static foo_devsw_installed = 0;/static int foo_devsw_installed;/.dt1999-04-281-2/+2
| | | | (Edited automatically)
* Suser() simplification:phk1999-04-271-4/+4
| | | | | | | | | | | | | | | | | | | 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.
* Use COMPAT_PCI_DRIVER() for registration if it exists. This shouldn'tpeter1999-04-241-1/+5
| | | | hurt the driver portability to 3.x too much for where drivers are shared.
* Use suser() to check for super user rather than examining cr_uid directly.phk1999-01-301-3/+4
| | | | | | Use TTYDEF_SPEED rather than 9600 a couple of places. Reviewed by: bde, with a few grumbles.
* Silence warnings.eivind1999-01-121-3/+3
|
* Initialize isa_devtab entries for interrupt handlers in individualbde1998-10-221-2/+5
| | | | | | | device drivers, not in ioconf.c. Use a different hack in isa_device.h so that a new config(8) is not required yet. pc98 parts approved by: kato
* Fixed printf format errors.bde1998-08-231-18/+23
| | | | | | | Fixed style bugs in the int to u_long ioctl command arg changes. This driver doesn't use the u_foo BSDism. Don't smash ioctl command args back to int.
* Added D_TTY to the cdevswitch flags for all tty drivers. This is requiredbde1998-08-231-7/+8
| | | | | | | | | 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.
* 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.
* Support compiling with `gcc -ansi'.bde1998-04-151-7/+7
|
* Removed unused #includes.bde1998-03-281-2/+1
|
* Implement the spirit but not the letter of Terrys hot-char patch.phk1998-02-131-8/+2
| | | | | | | The differences Terrys patch and this patch are: * Remove a lot of un-needed comments. * Don't put l_hotchar at the front of stuct linesw, there is no need to. * Use the #defines for the hotchar in the SLIP and PPP line disciplines
* Staticize.eivind1998-02-091-5/+5
|
* 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.bde1997-07-201-4/+1
|
* Remove unneeded prototype (and warning) for stlintr().davidn1997-03-241-2/+1
|
* Don't include <sys/ioctl.h> in the kernel. Stage 1: don't includebde1997-03-241-2/+1
| | | | | it when it is not used. In most cases, the reasons for including it went away when the special ioctl headers became self-sufficient.
* Make stlintr() public to allow correct linkage.davidn1997-03-241-3/+3
|
* Don't #include <sys/fcntl.h> in <sys/file.h> if KERNEL is defined.bde1997-03-231-2/+2
| | | | | Fixed everything that depended on getting fcntl.h stuff from the wrong place. Most things don't depend on file.h stuff at all.
* Submitted by: Greg Ungerer <gerg@stallion.oz.au>davidn1997-03-131-25/+36
| | | | Update to version 1.0.0 of stallion.c from author.
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-221-1/+1
| | | | ready for it yet.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Remove devconf, it never grew up to be of any use.phk1996-09-061-2/+1
|
* Clean up -Wunused warnings.gpalmer1996-06-121-11/+8
| | | | Reviewed by: Greg Ungerer <gerg@stallion.oz.au>
* Add $Id$peter1996-05-041-6/+7
| | | | | | Compile for FreeBSD-2.2 (it compiles for 2.0.5, 2.1 and 2.2) Use -current include file locations Use -current pciintr calling conventions
* Import kernel parts of the v0.0.5alpha Stallion driver(s).peter1996-05-041-56/+263
| | | | | | | | | | This is now two seperate drivers that support (I think) all of Stallions's range, including the high performance intelligent cards, and their older cards. Submitted by: Greg Ungerer (gerg@stallion.oz.au) (User-mode parts and patches to follow)
* Import v0.0.4alpha of the Stallion driver.peter1996-05-041-2/+2
| | | | Sumbitted by: Greg Ungerer (gerg@stallion.oz.au)
* Import v0.0.3alpha of Stallion driver.peter1996-05-041-48/+274
| | | | Submitted by: Greg Ungerer (gerg@stallion.oz.au)
* Import v0.0.2 alpha of the Stallion driverpeter1996-05-041-53/+139
| | | | Submitted by: Greg Ungerer (gerg@stallion.oz.au)
* Initial import of driver for the Stallion EasyIO and EasyConnection 8/32peter1996-05-041-0/+2601
boards by Greg Ungerer (gerg@stallion.oz.au). (v0.0.1 alpha) This is a multiple import of all revisions available to build up a history. This driver supports only some of the Stallion range, in particular, not the highly intelligent cards. That comes in shortly. Submitted by: Greg Ungerer (gerg@stallion.oz.au)
OpenPOWER on IntegriCloud