summaryrefslogtreecommitdiff
path: root/sys/dev/si
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Correct name and number for sxdc modulesPoul-Henning Kamp1998-06-101-3/+3
| | | | | | | | | PR: 6891 Reviewed by: phk Submitted by: Nick Sayer <nsayer@quack.kfu.com> Notes: svn path=/head/; revision=36856
* This commit fixes various 64bit portability problems required forDoug Rabson1998-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. Notes: svn path=/head/; revision=36735
* Removed unused #includes.Bruce Evans1998-03-281-2/+1
| | | | Notes: svn path=/head/; revision=34928
* Several changes:Peter Wemm1998-03-233-283/+518
| | | | | | | | | | | | | | | | | - 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> Notes: svn path=/head/; revision=34832
* New versions of Specialix host card download code.Peter Wemm1998-03-232-0/+3466
| | | | | | | Submitted by: Nick Sayer <nick@quack.kfu.com> Notes: svn path=/head/; revision=34830
* merge from 2.2Peter Wemm1998-03-211-2/+3
| | | | Notes: svn path=/head/; revision=34736
* Merge from 2.2, plus some other changes. In the config file entry,Peter Wemm1998-03-211-48/+66
| | | | | | | 'vector siintr' isn't used since the handler is assigned internally. Notes: svn path=/head/; revision=34735
* Update to support SI/XIO PCI host cards (Z280 based) and the enhancedPeter Wemm1998-02-153-10/+235
| | | | | | | | | | SXISA and SXPCI host cards (Transputer based). PR: 4836, 5021, 5654 Submitted by: Nick Sayer <nick@specialix.com> Notes: svn path=/head/; revision=33395
* Implement the spirit but not the letter of Terrys hot-char patch.Poul-Henning Kamp1998-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 Notes: svn path=/head/; revision=33322
* Make the debug options new-style.Eivind Eklund1998-01-311-1/+2
| | | | | | | | This also zaps a DPT option from lint; it wasn't referenced from anywhere. Notes: svn path=/head/; revision=32929
* Make all file-system (MFS, FFS, NFS, LFS, DEVFS) related option new-style.Eivind Eklund1998-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. Notes: svn path=/head/; revision=32726
* Make COMPAT_43 and COMPAT_SUNOS new-style options.Eivind Eklund1997-12-161-1/+3
| | | | Notes: svn path=/head/; revision=31778
* Use ENOIOCTL instead of -1 (= ERESTART) for tty ioctls that areBruce Evans1997-12-061-3/+3
| | | | | | | | not handled at a particular level. This fixes mainly restarting of interrupted TIOCDRAINs and TIOCSETA{W,F}s. Notes: svn path=/head/; revision=31577
* aha1542.c aic6360.c cy.c fd.c ft.cJustin T. Gibbs1997-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. Notes: svn path=/head/; revision=29677
* ipl.h:Justin T. Gibbs1997-09-211-1/+4
| | | | | | | | | | Add CAM software/hardware interrupt support. si.h: Update for changes in the callout interface. Notes: svn path=/head/; revision=29676
* Update select -> poll in drivers.Peter Wemm1997-09-141-2/+2
| | | | Notes: svn path=/head/; revision=29368