summaryrefslogtreecommitdiffstats
path: root/sys/dev/si
Commit message (Collapse)AuthorAgeFilesLines
* Remove #include <sys/dkstat.h>phk2003-02-161-1/+0
|
* Cast a pointer to uintptr_t instead ot u_int.jhb2002-11-071-1/+1
|
* Be consistent about functions being static.phk2002-10-161-1/+1
| | | | Spotted by: FlexeLint.
* Do not try and probe random PNP devices, This Is Bad.peter2002-07-271-23/+29
| | | | Display reasons why probe/attach fails.
* Make si_debug tunable.peter2002-07-271-0/+1
|
* Change the suser() API to take advantage of td_ucred as well as do ajhb2002-04-011-5/+5
| | | | | | | | | | | | 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@
* KSE Milestone 2julian2001-09-121-14/+14
| | | | | | | | | | | | | | 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
* Send the remains (such as I have located) of "block major numbers" tophk2001-03-261-1/+0
| | | | the bit-bucket.
* Use ttymalloc() instead of roll-our-own.peter2001-02-191-14/+1
|
* Extend kqueue down to the device layer.jlemon2001-02-151-2/+3
| | | | Backwards compatible approach suggested by: peter
* Convert more malloc+bzero to malloc+M_ZERO.dwmalone2000-12-081-4/+3
| | | | | 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>.
* Remove unneeded #include <sys/proc.h> lines.phk2000-10-291-1/+0
|
* This driver doesn't have a software interrupt handler, so don't attempt tojhb2000-10-251-8/+0
| | | | schedule a non-existant handler to run.
* Remove unneeded #include <machine/clock.h>phk2000-10-151-1/+0
|
* Always leave SP_DCEN on (monitor DCD). Otherwise the firmware *really*peter2000-01-252-2234/+2249
| | | | | | | | | | | | | | | | | does ignore DCD. Even TIOCMGET cannot read DCD as the firmware doesn't report it. This has pretty interesting effects for ppp(8) which runs in clocal mode and polls carrier (!). (Specialix's linux driver does this too) Also update the firmware to 3.0.6 for the SX cards, as apparently there was a problem with floating (disconnected) DCD pins causing stray carrier transitions, especially at port open time. It seems to work here, and carrier loss is detected nearly immediately rather than having to wait for a LQR timeout (a few minutes) before ppp(8) gives up. DCD problem noted by: nsayer
* Ack! I totally botched the pci probe routine which resulted in it tryingpeter2000-01-241-6/+10
| | | | to match everything else *but* a specialix pci card. *blush*.
* A bit more newbusification of si. This still isn't quite finished.peter2000-01-248-601/+747
| | | | | Split out the bus attachments so the impact of the bus xxxvar.h files with the inline macros for the ivars are confined to one file each.
* Initial attempt at newbusification of the specialix si/xio/sx driver.peter2000-01-233-470/+496
| | | | | | | The files were repo copied from their original location and are part way towards being portable. This should unbreak the EISA support in the driver. I have not updated files* yet as I'm not quite finished.
* Fix some -Wunused warningspeter1999-11-182-4/+0
|
* Zap cdevsw_add() - the make_dev's take care of it and don't usepeter1999-10-081-10/+0
| | | | the cdevsw[] array.
* Introduce ttyread() and ttywrite() which do the canonical thing.phk1999-09-281-25/+1
| | | | | | 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-23/+9
| | | | | | | | | | | | | | | | | | | | | 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
* Null commit to get last commit message recorded:phk1999-08-301-0/+1
| | | | Avoid name clash with dev_t member si_tty.
* *** empty log message ***phk1999-08-301-2/+2
|
* $Id$ -> $FreeBSD$peter1999-08-283-3/+3
|
* A few style changes (fixes hopefully) and some more tidying up. Fix (?)peter1999-08-271-101/+104
| | | | the volatile cast warnings.
* Don't return 0 for an unknown ioctl (!). This was breaking ppp(8).peter1999-08-271-10/+9
| | | | Slight tidy up while here.
* Convert DEVFS hooks in (most) drivers to make_dev().phk1999-08-231-40/+9
| | | | | | | | | | | | | | | | 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().
* printf("%x",dev); -> printf("%s",devtoname(dev));nsayer1999-08-181-11/+11
|
* 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-3/+3
| | | | layout and dev_t structure is being (ab)used.
* These two drivers have not been converted for newbus eisa yet.peter1999-05-021-1/+6
|
* s/static foo_devsw_installed = 0;/static int foo_devsw_installed;/.dt1999-04-281-2/+2
| | | | (Edited automatically)
* Suser() simplification:phk1999-04-271-6/+6
| | | | | | | | | | | | | | | | | | | 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.
* Staticize.eivind1999-04-112-2/+2
|
* SX ISA cards are only 32k wide in 8 bit mode (which is the onlynsayer1999-03-301-2/+2
| | | | | | | mode supported by the manufacturer). PR: 6255 Submitted by: nsayer
* Update Specialix download microcode for the transputer based serial hostpeter1999-03-241-2142/+2246
| | | | | | | cards from the 3.0-beta to 3.0.4 release. Submitted-by: Nick Sayer <nsayer@quack.kfu.com> PR: 10674
* Use suser() to check for super user rather than examining cr_uid directly.phk1999-01-301-2/+3
| | | | | | Use TTYDEF_SPEED rather than 9600 a couple of places. Reviewed by: bde, with a few grumbles.
* Silence warnings.eivind1999-01-121-3/+3
|
* Fixed printf format errors. `struct eisa_device' uses a strange typebde1998-08-231-8/+8
| | | | for the unit number (like most SCSI drivers).
* Added D_TTY to the cdevswitch flags for all tty drivers. This is requiredbde1998-08-231-9/+9
| | | | | | | | | 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.
* Cast an int to (intptr_t) before casting it to (void *).bde1998-08-161-4/+4
| | | | Don't cast a pointer to a long just to print it.
* Fixed yet more ioctl breakage due to the type of the `cmd' arg chaningingbde1998-08-161-6/+6
| | | | from int to u_long but not changing here.
* Add a macro tweak.steve1998-06-132-4/+5
| | | | | PR: 6932 Submitted by: Nick Sayer <nsayer@quack.kfu.com>
* Correct name and number for sxdc modulesphk1998-06-101-3/+3
| | | | | | PR: 6891 Reviewed by: phk Submitted by: Nick Sayer <nsayer@quack.kfu.com>
OpenPOWER on IntegriCloud