summaryrefslogtreecommitdiffstats
path: root/sys/dev/si/si.c
Commit message (Collapse)AuthorAgeFilesLines
* 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-281-1/+1
|
* 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.
* 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-131-3/+3
| | | | | 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>
* 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.
* Removed unused #includes.bde1998-03-281-2/+1
|
* Several changes:peter1998-03-231-251/+492
| | | | | | | | | | | | | | - Implement proper EISA probing. - Better support for the new transputer based host cards. - use standard termios settings, one can use the intial/lock devices. - use a simple bcopy since some cards/systems apparently don't support 32 bit accesses. - hard reset and halt host card CPU prior to download in case of a soft restart. - recognize new remote module types (ASIC vs. CD1400 based) - a number of cosmetic changes (my fault, not Nick's) Submitted by: Nick Sayer <nsayer@quack.kfu.com>
* Merge from 2.2, plus some other changes. In the config file entry,peter1998-03-211-48/+66
| | | | 'vector siintr' isn't used since the handler is assigned internally.
* Update to support SI/XIO PCI host cards (Z280 based) and the enhancedpeter1998-02-151-8/+208
| | | | | | | SXISA and SXPCI host cards (Transputer based). PR: 4836, 5021, 5654 Submitted by: Nick Sayer <nick@specialix.com>
* Implement the spirit but not the letter of Terrys hot-char patch.phk1998-02-131-13/+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
* Make the debug options new-style.eivind1998-01-311-1/+2
| | | | | This also zaps a DPT option from lint; it wasn't referenced from anywhere.
* 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
|
* 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.
* aha1542.c aic6360.c cy.c fd.c ft.cgibbs1997-09-211-4/+4
| | | | | | | | | | | | if_ie.c if_wl.c if_zp.c isa.c isa_device.h labpc.c mcd.c ncr5380.c scd.c seagate.c si.c sio.c tw.c ultra14f.c wcd.c wd.c: Update for changes in the callout interface. apic_vector.s icu_vector.s ipl.s ipl_funcs.c: Add CAM software/hardware interrupt support.
* Update select -> poll in drivers.peter1997-09-141-2/+2
|
* Removed unused #includes.bde1997-07-201-5/+1
|
* Fixed the type of timeout functions and removed casts that hid thebde1997-04-201-7/+7
| | | | type mismatches. There was no problem in practice (at least on 386's).
* Don't include <sys/ioctl.h> in the kernel. Stage 5: includebde1997-03-241-2/+4
| | | | | | <sys/ioctl_compat.h> and sometimes <sys/filio.h> instead of <sys/ioctl.h> in tty-related files. <sys/ttycom.h> is still usually imported bogusly via <sys/termios.h>.
* 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.
* 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.
* Some warning cleanups. There were some needless casts that also causedpeter1996-09-271-15/+12
| | | | | gcc -Wcast-qual to scream. There's still quite a few left, but since I'm cleaning out my tree, I'll commit these now.
* Remove devconf, it never grew up to be of any use.phk1996-09-061-34/+1
|
* Extend the poll code so that it can periodically scan the host cardspeter1996-08-121-4/+11
| | | | | | | for work regardless of whether there was an interrupt. This needs more work, it should be able to run better when there are more than 3 host cards present, ie: all cards in polling-only mode with no IRQ. (The host cards have a choice of 3 irq's, 11, 12, or 15, or just polling)
* make si.c compile in kernels without COMPAT_43.peter1996-08-031-2/+5
|
* ttysleep() can return EWOULDBLOCK, not ETIMEDOUT as the comment in tty.cpeter1996-07-261-2/+2
| | | | | | suggests. Pointed out by: bde
OpenPOWER on IntegriCloud