aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/si
Commit message (Collapse)AuthorAgeFilesLines
...
* More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).Dag-Erling Smørgrav2003-03-021-2/+2
| | | | Notes: svn path=/head/; revision=111748
* Remove #include <sys/dkstat.h>Poul-Henning Kamp2003-02-161-1/+0
| | | | Notes: svn path=/head/; revision=111002
* Cast a pointer to uintptr_t instead ot u_int.John Baldwin2002-11-071-1/+1
| | | | Notes: svn path=/head/; revision=106572
* Be consistent about functions being static.Poul-Henning Kamp2002-10-161-1/+1
| | | | | | | Spotted by: FlexeLint. Notes: svn path=/head/; revision=105215
* Do not try and probe random PNP devices, This Is Bad.Peter Wemm2002-07-271-23/+29
| | | | | | | Display reasons why probe/attach fails. Notes: svn path=/head/; revision=100744
* Make si_debug tunable.Peter Wemm2002-07-271-0/+1
| | | | Notes: svn path=/head/; revision=100743
* Change the suser() API to take advantage of td_ucred as well as do aJohn Baldwin2002-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@ Notes: svn path=/head/; revision=93593
* KSE Milestone 2Julian Elischer2001-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 Notes: svn path=/head/; revision=83366
* Send the remains (such as I have located) of "block major numbers" toPoul-Henning Kamp2001-03-261-1/+0
| | | | | | | the bit-bucket. Notes: svn path=/head/; revision=74810
* Use ttymalloc() instead of roll-our-own.Peter Wemm2001-02-191-14/+1
| | | | Notes: svn path=/head/; revision=72685
* Extend kqueue down to the device layer.Jonathan Lemon2001-02-151-2/+3
| | | | | | | Backwards compatible approach suggested by: peter Notes: svn path=/head/; revision=72521
* Convert more malloc+bzero to malloc+M_ZERO.David Malone2000-12-081-4/+3
| | | | | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net> Notes: svn path=/head/; revision=69781
* Move suser() and suser_xxx() prototypes and a related #define fromPoul-Henning Kamp2000-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>. Notes: svn path=/head/; revision=67893
* Remove unneeded #include <sys/proc.h> lines.Poul-Henning Kamp2000-10-291-1/+0
| | | | Notes: svn path=/head/; revision=67882
* This driver doesn't have a software interrupt handler, so don't attempt toJohn Baldwin2000-10-251-8/+0
| | | | | | | schedule a non-existant handler to run. Notes: svn path=/head/; revision=67586
* Remove unneeded #include <machine/clock.h>Poul-Henning Kamp2000-10-151-1/+0
| | | | Notes: svn path=/head/; revision=67164
* Always leave SP_DCEN on (monitor DCD). Otherwise the firmware *really*Peter Wemm2000-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 Notes: svn path=/head/; revision=56592
* Ack! I totally botched the pci probe routine which resulted in it tryingPeter Wemm2000-01-241-6/+10
| | | | | | | to match everything else *but* a specialix pci card. *blush*. Notes: svn path=/head/; revision=56506
* A bit more newbusification of si. This still isn't quite finished.Peter Wemm2000-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. Notes: svn path=/head/; revision=56505
* Initial attempt at newbusification of the specialix si/xio/sx driver.Peter Wemm2000-01-233-465/+491
| | | | | | | | | | 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. Notes: svn path=/head/; revision=56498
* Fix some -Wunused warningsPeter Wemm1999-11-182-4/+0
| | | | Notes: svn path=/head/; revision=53358
* Zap cdevsw_add() - the make_dev's take care of it and don't usePeter Wemm1999-10-081-10/+0
| | | | | | | the cdevsw[] array. Notes: svn path=/head/; revision=52033
* Introduce ttyread() and ttywrite() which do the canonical thing.Poul-Henning Kamp1999-09-281-25/+1
| | | | | | | | | Use them in many tty drivers. Reviewed by: julian, bde Notes: svn path=/head/; revision=51756
* Remove five now unused fields from struct cdevsw. They should neverPoul-Henning Kamp1999-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 Notes: svn path=/head/; revision=51658
* This patch clears the way for removing a number of tty relatedPoul-Henning Kamp1999-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 Notes: svn path=/head/; revision=51654
* Null commit to get last commit message recorded:Poul-Henning Kamp1999-08-301-0/+1
| | | | | | | Avoid name clash with dev_t member si_tty. Notes: svn path=/head/; revision=50671
* *** empty log message ***Poul-Henning Kamp1999-08-301-2/+2
| | | | Notes: svn path=/head/; revision=50669
* $Id$ -> $FreeBSD$Peter Wemm1999-08-283-3/+3
| | | | Notes: svn path=/head/; revision=50477
* A few style changes (fixes hopefully) and some more tidying up. Fix (?)Peter Wemm1999-08-271-101/+104
| | | | | | | the volatile cast warnings. Notes: svn path=/head/; revision=50442
* Don't return 0 for an unknown ioctl (!). This was breaking ppp(8).Peter Wemm1999-08-271-10/+9
| | | | | | | Slight tidy up while here. Notes: svn path=/head/; revision=50435
* Convert DEVFS hooks in (most) drivers to make_dev().Poul-Henning Kamp1999-08-231-39/+8
| | | | | | | | | | | | | | | | | | | 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(). Notes: svn path=/head/; revision=50254
* printf("%x",dev); -> printf("%s",devtoname(dev));Nick Sayer1999-08-181-11/+11
| | | | Notes: svn path=/head/; revision=50016
* Simplify cdevsw registration.Poul-Henning Kamp1999-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. Notes: svn path=/head/; revision=47640
* This commit should be a extensive NO-OP:Poul-Henning Kamp1999-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. Notes: svn path=/head/; revision=47625
* Simplify the COMPAT_PCI_DRIVER/DATA_SET hack. We can add:Peter Wemm1999-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.) Notes: svn path=/head/; revision=46813
* Fix some of the places where too much inside knowledge about major/minorPoul-Henning Kamp1999-05-081-3/+3
| | | | | | | layout and dev_t structure is being (ab)used. Notes: svn path=/head/; revision=46679
* These two drivers have not been converted for newbus eisa yet.Peter Wemm1999-05-021-1/+6
| | | | Notes: svn path=/head/; revision=46332
* s/static foo_devsw_installed = 0;/static int foo_devsw_installed;/.Dmitrij Tejblum1999-04-281-2/+2
| | | | | | | (Edited automatically) Notes: svn path=/head/; revision=46153
* Suser() simplification:Poul-Henning Kamp1999-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. Notes: svn path=/head/; revision=46112
* Use COMPAT_PCI_DRIVER() for registration if it exists. This shouldn'tPeter Wemm1999-04-241-1/+5
| | | | | | | hurt the driver portability to 3.x too much for where drivers are shared. Notes: svn path=/head/; revision=46024
* Staticize.Eivind Eklund1999-04-112-2/+2
| | | | Notes: svn path=/head/; revision=45577
* SX ISA cards are only 32k wide in 8 bit mode (which is the onlyNick Sayer1999-03-301-2/+2
| | | | | | | | | | mode supported by the manufacturer). PR: 6255 Submitted by: nsayer Notes: svn path=/head/; revision=45161
* Update Specialix download microcode for the transputer based serial hostPeter Wemm1999-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 Notes: svn path=/head/; revision=44985
* Use suser() to check for super user rather than examining cr_uid directly.Poul-Henning Kamp1999-01-301-2/+3
| | | | | | | | | Use TTYDEF_SPEED rather than 9600 a couple of places. Reviewed by: bde, with a few grumbles. Notes: svn path=/head/; revision=43425
* Silence warnings.Eivind Eklund1999-01-121-3/+3
| | | | Notes: svn path=/head/; revision=42546
* Fixed printf format errors. `struct eisa_device' uses a strange typeBruce Evans1998-08-231-8/+8
| | | | | | | for the unit number (like most SCSI drivers). Notes: svn path=/head/; revision=38487
* Added D_TTY to the cdevswitch flags for all tty drivers. This is requiredBruce Evans1998-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. Notes: svn path=/head/; revision=38485
* Cast an int to (intptr_t) before casting it to (void *).Bruce Evans1998-08-161-4/+4
| | | | | | | Don't cast a pointer to a long just to print it. Notes: svn path=/head/; revision=38353
* Fixed yet more ioctl breakage due to the type of the `cmd' arg chaningingBruce Evans1998-08-161-6/+6
| | | | | | | from int to u_long but not changing here. Notes: svn path=/head/; revision=38351
* Add a macro tweak.Steve Price1998-06-132-4/+5
| | | | | | | | PR: 6932 Submitted by: Nick Sayer <nsayer@quack.kfu.com> Notes: svn path=/head/; revision=36956