summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/com.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Cleanup serial console handling and remove some of the MD code from com.c.jsing2008-04-241-27/+9
| | | | | | | | | | Specify the serial configuration from within the MD code, rather than passing things via macros. This will allow other platforms to more readily change the serial console configuration. Committing this so it actually gets tested. ok dlg@
* Increase buffer size sent to the fifo, and clamp the size correctly.deraadt2008-04-091-5/+6
| | | | Scrub the buffer afterwards, too
* Cleanup cn_pri. Change constants to more meaningful names, rather thanjsing2008-01-231-4/+4
| | | | | | | the hp300 related ones currently in use. CN_NORMAL becomes CN_LOWPRI, CN_INTERNAL becomes CN_MIDPRI and CN_REMOTE becomes CN_HIGHPRI. ok miod@
* Make comconsrate initialized to TTYDEF_SPEED at compile-time, for portsmiod2008-01-121-2/+2
| | | | which need to setup the chip before comcnattach() is invoked.
* the rsc-console on the v880 operates at 115200, not the 9600 we think wedlg2008-01-081-5/+10
| | | | | | | | | have to force all console devices to. this change passes the right speed to the com code, and continues to use it when the device is opened as the console device. figured out by kettenis@ ok kettenis@ miod@
* fix compilation with KDGBjasper2007-08-221-6/+2
| | | | | | from Nicholas Marriott ok deraadt@
* Delay switching to the real serial console until we attach the serial device.kettenis2007-07-151-7/+1
| | | | | | | | The variety of different serial devices is just too big to make a decision up front. This should make the second serial port on four-digit B/C/J-class workstation work as a serial console too. ok miod@
* ansify/de-registerjasper2007-06-221-96/+37
| | | | no binary change
* backout while the amd64 puc situation is rethoughtderaadt2007-05-081-1/+73
|
* move com_activate() to where it belongsderaadt2007-05-081-34/+1
|
* put more foo_detach() routines where they are usedderaadt2007-05-081-40/+1
|
* In a drivers activate() entry point, if on DVACT_DEACTIVATE it doesmiod2006-06-231-2/+1
| | | | | | something, then it MUST return zero on DVACT_ACTIVATE, not EOPNOTSUPP; this very popular bug has been cut and pasted a lot of times... ok deraadt@ mickey@
* 2 lines of code in most drivers, to do the timestamping; ok miod kettenisderaadt2006-04-271-1/+5
|
* in detach, mark device with COM_SW_DEAD, so that close() will not goderaadt2006-03-271-1/+6
| | | | | | tapping additional registes. allows it to work on macppc, where doing such a tap after unplug is very bad. drahn helped fkr@bytemine.de ok miod and drahn
* Let cons_init() and cons_init_bell() initialize the whole consdev structure,miod2006-01-011-10/+4
| | | | | thus removing the need for drivers to initialize cn_pri to CN_DEAD when hardware probe fails.
* Move contents of sys/select.h to sys/selinfo.h in preparation for amillert2005-11-211-2/+2
| | | | | userland-visible sys/select.h. Consistent with what Net and Free do. OK deraadt@, tested with full ports build by naddy@.
* fix kgdb compilation; input and ok miod@.fgsch2005-11-111-1/+3
|
* Share com probe code between com and pccom; allows us to get rid of awkwardmiod2005-09-261-236/+3
| | | | | | code duplication in cardbus, pcmcia and puc attachments. Joint effort with fgs@; blessed deraadt@
* fix sparc64 console; same diff as miodderaadt2005-07-181-2/+2
|
* COM_CONSOLE & DDB fixderaadt2005-07-181-2/+2
|
* Allow the console support code not to be compiled in; this will bemiod2005-07-171-7/+30
| | | | | | necessary for and only used on sparc, shortly. Reluctantely ok deraadt@
* Enable IR receive mode only for infrared capable PXA2x0 UARTs. Normaluwe2005-07-111-7/+14
| | | | | | | | | reception is blocked while the IR receiver or transmitter is enabled. Also enable the PXA2x0 UART before clearing the FIFO (suggested by drahn@ some time ago), and disable the UART in compwroff(). ok deraadt@
* xscale UART FIFOs are 32 bytes deep; found by deraadt@uwe2005-07-021-3/+3
|
* - Merge changes from pxacom back into the common com driver.uwe2005-05-271-17/+144
| | | | | | | | | Changes to the common com driver (partly from NetBSD): - Multiply before divide in comspeed() to avoid overflow (from NetBSD). - Don't call getc() and send -1 if the output queue is empty. - Take UART clock frequency as a parameter instead of using COM_FREQ. ok deraadt@
* Use bus_addr_t instead of int for port address/offset, ok mickeypefo2004-10-201-5/+5
|
* remove old arc stuff and add sgi support.pefo2004-08-091-5/+7
| | | | ok mickey@
* serial console hack from tom. who, after having been told a few timesderaadt2004-05-301-1/+5
| | | | to commit it, has not. what is going on guys?
* Remove OpenBSD/pegaos, this has been announced before but delayed untildrahn2004-05-031-3/+1
| | | | | the tree was stable. No point in code supporting a company which screws its employees being in the OpenBSD tree.
* Use isa iot for pegasos com console attachment, perhaps this coulddrahn2003-10-311-1/+3
| | | | be adopted MI?
* Merge tty_attach() in ttymalloc() and tty_detach() in ttyfree(). The need formiod2003-10-031-3/+1
| | | | | | | | | separate tty registering is gone now that sparc has switched to wscons, and this makes the code less error-prone. Also, remove tests for ttymalloc() failure, since it uses M_WAITOK. ok millert@ deraadt@, tested by various people as well besides me...
* Replace select backends with poll backends. selscan() and pollscan()millert2003-09-231-8/+8
| | | | | | | now call the poll backend. With this change we implement greater poll(2) functionality instead of emulating it via the select backend. Adapted from NetBSD and including some changes from FreeBSD. Tested by many, deraadt@ OK
* change arguments to suser. suser now takes the process, and a flagstedu2003-08-151-2/+2
| | | | | | | | | argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@
* move prototype for com_raisedtr() to comvar.h (just like pccom).jason2003-07-151-2/+1
|
* terms 3 & 4 cleanup based on "terms" filederaadt2003-06-031-4/+1
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* comparam() does not need an spltty() for it, already called there.mickey2002-12-191-11/+7
| | | | | | time-bound loops in com_common_cnputc() and lower to spltty(), which i guess is left from times when timeouts were processed at splhigh(). jason@ tested and ok, art@ ok
* ifndef __HAVE_GENERIC_SOFT_INTERRUPTS leaved a label without a statement after it. Fix.art2002-10-171-1/+3
|
* Remove kernel support for NTP. ok deraadt@ and tholo@nordin2002-07-061-18/+1
|
* com.c is not a block device, no bdev_decl() for it.miod2002-06-111-2/+1
|
* Don't enable interrupts until an open() is done. Until then the driverpefo2002-04-091-2/+4
| | | | | is not handling them and may throw the kernel into a spurious interrupt loop. ok art@
* First round of __P removal in sysmillert2002-03-141-7/+7
|
* compare pointers with NULL not 0jason2002-03-141-3/+3
|
* restore CN_REMOTE priority, as it always was there.mickey2002-02-051-3/+6
| | | | | anyway, only i386 uses that path and only if forced anyway. also do not do comprobe1() on hppa since that hoses the port.
* Move SET/CLR/ISSET macros to param.h. fgsch@ and millert@ oknordin2002-01-301-6/+1
|
* CONADDR is defined elsewhere for hppamickey2002-01-251-2/+2
|
* oops, make the kgdb var's non-staticericj2002-01-231-4/+4
|
* allow this to compile with KGDBericj2002-01-231-2/+2
|
* restore some of that dead code needed for dev/cons functionalitymickey2001-10-051-1/+59
|
* #ifdef FOO works much better when FOO isn't misspelled.art2001-10-021-2/+2
|
* Enable break interrupt earlier.art2001-09-301-6/+4
|