summaryrefslogtreecommitdiffstats
path: root/sys/dev/sio
Commit message (Collapse)AuthorAgeFilesLines
* Change "dev_t gdbdev" to "void *gdb_arg", some possible paths for GDBphk2003-02-161-4/+4
| | | | will not have a dev_t.
* Whatever dumbass wrote sio_pci.c didn't include a detach method.imp2003-02-161-0/+1
| | | | | | | | | | | Wearing said pointy hat, correct the oversight and hope nobody notices. # this should make xircom modems happier to detach once other bugs with # the cardbus layer are fixed. Noticed by: scottl Conical Hat to: imp
* No need to wrap siodetach() with sio_pccard_detach.imp2003-02-161-9/+1
|
* Remove #include <sys/dkstat.h>phk2003-02-161-1/+0
|
* Set si_drv1 to our softc for all the six dev_t's we create for a serial port.phk2003-02-021-0/+2
|
* Add PCI id for Quatech SSCLP-200/300 lowprofile single-port RS422/485 card.phk2003-01-311-0/+7
|
* Be nice. There are evidentally a number of different cards thatimp2002-12-211-2/+4
| | | | | | | | | | identify themselves as serial cards that it would be desirable to attach a different driver than sio to. Since we are claiming all serial cards, this is not possible. Instead, return -100 to indicate that we're willing to take the card, but still allow other drivers to attach. Pointed out by: Maksim Yevmenkin
* Make 'rclk' a uintptr_t to quiet warnings.jhb2002-11-071-3/+3
|
* s/modunload/kldunloadimp2002-10-111-1/+1
|
* Be consistent about "static" functions: if the function is markedphk2002-09-281-3/+3
| | | | | | static in its prototype, mark it static at the definition too. Inspired by: FlexeLint warning #512
* Add yet a quick flag to sio: 0x100000 "Scratch pad register missing".phk2002-09-271-6/+5
| | | | | | | The advanced stage of computer assisted hardware design and verification is aptly illustrated by the fact that this is necessary because only the first ports in a single-chip, dual-port async PC-Card product lacks this register.
* Move the com_emr register definition to sioreg.h.nyan2002-09-241-0/+1
|
* Move the com_scr register address definition over with the other seven.phk2002-09-221-2/+0
| | | | Approved by: bde
* Don't probe the interrupt on puc(4) attached devices.phk2002-09-031-1/+1
|
* Only try to flush the FIFO of 500 characters, return EIO if that fails.phk2002-08-281-1/+6
| | | | | This at least prevents the total hang of the machine when I open a PCCARD sio device on -current, but it does not solve the problem.
* Add missing quotes around ID string in __FBSDID().tmm2002-07-161-1/+1
| | | | Pointy hat to: obrien
* Add PCI ID and configuration hint for Netmos Nm9845 PCI 6-ports serialsobomax2002-07-101-0/+1
| | | | | | | card. Submitted by: Oleg Antoshin <oleh@at2000.kiev.ua> MFC after: 3 days
* Remove a couple of __P() stragglers.peter2002-06-291-3/+3
|
* set siocnunit to the correct value. This fixes the freeze on boot forn_hibma2002-06-231-2/+4
| | | | | | alphas. Submitted by: Bernd Walter <ticso@cicely5.cicely.de>
* Make this compile on Alpha.n_hibma2002-06-221-2/+2
|
* Make the speed used by gdb over serial settable in the kernel configuration.n_hibma2002-06-182-21/+54
| | | | | | This facilitates the use in circumstances where you are using a serial console as well. GDB doesn't support anything higher than 9600 baud (19k2 if you are lucky), but the console does.
* ebus sio(4) attachment.obrien2002-06-181-0/+113
| | | | Submitted by: tmm
* Add another Askey ISA modem ID.dwmalone2002-05-061-0/+1
| | | | | PR: 35813 Submitted by: Chris Knight <chris@aims.com.au>
* Simplify the RFC2783 and PPS_SYNC timestamp collection API.phk2002-04-261-7/+2
|
* Change callers of mtx_init() to pass in an appropriate lock type name. Injhb2002-04-041-1/+2
| | | | | | | most cases NULL is passed, but in some cases such as network driver locks (which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used. Tested on: i386, alpha, sparc64
* Change the suser() API to take advantage of td_ucred as well as do ajhb2002-04-011-3/+3
| | | | | | | | | | | | 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@
* Support more than 32 sio unit numbers. The maximum unit number is nowbde2002-03-311-8/+12
| | | | | | | | | | | (65536 * 32 - 1), but MAKEDEV only supports up to (32 * 32 -1). Device names use the unit number in base 32 for all "digits". This required fixing an old bug in MAKEDEV:ttyminor(). Its arg was the global $unit instead of $1. Reminded by: Valentin K. Ponomarenko <valka@krog.ukrtel.net> MFC-after: 1 week
* Hacks for measuring interrupt latency. Interrupt latency can bebde2002-03-311-2/+42
| | | | | | | | | | | | | | measured accurately for periodic interrupts provided the interrupts don't need to be serviced very quickly to keep their period almost constant. sio output interrupts have this property (interrupt service can be delayed for up to 1 character time without the period changing). This is non-optional and undocumented so that it can be added and removed easily. It has no significant effect unless it is enabled by hacking on a variable using a debugger. Hardclock and statclock interrupts would work even better for this, at least on i386's, provided their interrupt handlers are fast (as they are in -current but not in -stable or in my version of -current).
* Include <machine/limits.h> for definition of ULONG_MAX.mike2002-03-251-0/+1
|
* Fixed some style bugs in the removal of __P(()). The main ones werebde2002-03-232-20/+20
| | | | | | not removing tabs before "__P((", and not outdenting continuation lines to preserve non-KNF lining up of code with parentheses. Switch to KNF formatting and/or rewrap the whole prototype in some cases.
* Add PCI ID for the SeaLevel Ultra 530.PCI single port card.jhb2002-03-201-0/+1
| | | | Sponsored by: The Weather Channel
* Remove __P.alfred2002-03-206-37/+37
|
* Add device ID for Xircom modem. Also add work around from gwk@sgi.comimp2002-03-162-3/+10
| | | | | | | | to put the device into 8 bit mode a second time. This appears to have no ill effects on other devices, and appears to be necessary for the xircom modem. Submitted by: gwk@sgi.com, many others that found his patch in the archives.
* Add pc98 support.nyan2002-03-081-0/+3
|
* Add two IrDA controller ID: IBM TP240(Probably NSC compatible), and SMC IrCCtakawata2002-03-031-0/+2
| | | | controller.
* Until I can figure out how to live without the volatile qualifier onimp2002-02-261-1/+1
| | | | comdefaultrate, comment out the support for machdep.conspeed for now.
* Add an experimental tunable: machdep.conspeed.imp2002-02-261-0/+1
| | | | # I'm not sure where to document this.
* Add the puc (PCI "Universal" Communications) driver. The idea and some ofjhay2002-02-161-0/+89
| | | | | | | | | | | | | the structure definitions come from NetBSD to make it easier to share card definitions. The driver only acts as a shim between the pci bus and the sio driver. Later pci parallel ports could also be supported through this driver. Support for most single and multiport pci serial cards should be as simple as adding its definition to pucdata.c Tested with the following pci cards: Moxa Industio CP-114, 4 port RS-232,RS-422/485 Syba Tech Ltd. PCI-4S2P-550-ECP, 4 port RS-232 + 2 parallel ports Netmos NM9835 PCI-2S-550, 2 port RS-232
* Add pc98 support.nyan2002-01-311-0/+3
|
* Remove obsolete COMBRD* definitions.nyan2002-01-311-6/+0
|
* Add support for different serial clock frequencies and not just thejhay2002-01-306-72/+100
| | | | | | | standard one of 1.8432MHz. This will be used by the puc (PCI "universal" communication card) device driver. Reviewed by: bde
* Cosmetic fix: Not every machine that uses the sio driver has a BIOS.bmah2002-01-171-1/+1
| | | | Pointed out by: imp
* While I'm not sure that I like the wording of the BIOS message in theimp2002-01-171-1/+2
| | | | | | | | | | previous commit, it should always print due to lack of {} around the second line in the if statement. The message should likely say something more like "There's no hardware responding at this IRQ. Device not present (or disbaled)," but that is too long. We generally don't give elementary advise in device driver messages anyway. Be that as it may, the problem with it printing all the time should be corrected.
* Make sio device probe messages less misleading, for the case thatbmah2002-01-171-1/+4
| | | | | | | | a port is either disabled or not responding. PR: 33963 Submitted by: Kevin Oberman <oberman@es.net> MFC after: 2 weeks
* Change the preemption code for software interrupt thread schedules andjhb2002-01-051-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mutex releases to not require flags for the cases when preemption is not allowed: The purpose of the MTX_NOSWITCH and SWI_NOSWITCH flags is to prevent switching to a higher priority thread on mutex releease and swi schedule, respectively when that switch is not safe. Now that the critical section API maintains a per-thread nesting count, the kernel can easily check whether or not it should switch without relying on flags from the programmer. This fixes a few bugs in that all current callers of swi_sched() used SWI_NOSWITCH, when in fact, only the ones called from fast interrupt handlers and the swi_sched of softclock needed this flag. Note that to ensure that swi_sched()'s in clock and fast interrupt handlers do not switch, these handlers have to be explicitly wrapped in critical_enter/exit pairs. Presently, just wrapping the handlers is sufficient, but in the future with the fully preemptive kernel, the interrupt must be EOI'd before critical_exit() is called. (critical_exit() can switch due to a deferred preemption in a fully preemptive kernel.) I've tested the changes to the interrupt code on i386 and alpha. I have not tested ia64, but the interrupt code is almost identical to the alpha code, so I expect it will work fine. PowerPC and ARM do not yet have interrupt code in the tree so they shouldn't be broken. Sparc64 is broken, but that's been ok'd by jake and tmm who will be fixing the interrupt code for sparc64 shortly. Reviewed by: peter Tested on: i386, alpha
* Add PNP Id for Create Labs Phoneblaster.sheldonh2001-12-301-0/+1
| | | | | PR: kern/32891 Submitted by: Louis Mamakos <louie@TransSys.COM>
* Fixed locking bugs in rev.1.346:bde2001-12-281-2/+6
| | | | | | | | | | | | | | | (1) Don't attempt aquire the non-recursive lock sio_lock recursively. Doing so caused unbounded recursion in some setups. E.g., if DDB, BREAK_TO_DEBUGGER and WITNESS are configured; if the debugger is entered using a break, then WITNESS will actually detect the invalid recursion and will add to it attempting to print a message about it. (2) Don't use sio_lock before it has been initialized. The old check (sio_inited != 0) didn't work when sio_inited was boolean because sio_inited was set too early, and became just wrong when sio_inited was changed to a tri-state variable in rev.1.348. Reported and fixed in another way by: fenner (1)
* Fix typo first, then controvert.tanimura2001-12-241-1/+1
|
* Back out an inappropriate backout. If Anyone wants to set the FIFOdillon2001-12-231-1/+6
| | | | | | level that high they should first fix the problems with the system that cause silo overflows. It is far more important for the serial device to work.
* Backed out previous unapproved commit.bde2001-12-231-6/+1
|
OpenPOWER on IntegriCloud