Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Cleanup serial console handling and remove some of the MD code from com.c. | 2008-04-24 | 1 | -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. | 2008-04-09 | 1 | -5/+6 | ||
| | | | | Scrub the buffer afterwards, too | |||||
* | Cleanup cn_pri. Change constants to more meaningful names, rather than | 2008-01-23 | 1 | -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 ports | 2008-01-12 | 1 | -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 we | 2008-01-08 | 1 | -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 KDGB | 2007-08-22 | 1 | -6/+2 | ||
| | | | | | | from Nicholas Marriott ok deraadt@ | |||||
* | Delay switching to the real serial console until we attach the serial device. | 2007-07-15 | 1 | -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-register | 2007-06-22 | 1 | -96/+37 | ||
| | | | | no binary change | |||||
* | backout while the amd64 puc situation is rethought | 2007-05-08 | 1 | -1/+73 | ||
| | ||||||
* | move com_activate() to where it belongs | 2007-05-08 | 1 | -34/+1 | ||
| | ||||||
* | put more foo_detach() routines where they are used | 2007-05-08 | 1 | -40/+1 | ||
| | ||||||
* | In a drivers activate() entry point, if on DVACT_DEACTIVATE it does | 2006-06-23 | 1 | -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 kettenis | 2006-04-27 | 1 | -1/+5 | ||
| | ||||||
* | in detach, mark device with COM_SW_DEAD, so that close() will not go | 2006-03-27 | 1 | -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, | 2006-01-01 | 1 | -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 a | 2005-11-21 | 1 | -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@. | 2005-11-11 | 1 | -1/+3 | ||
| | ||||||
* | Share com probe code between com and pccom; allows us to get rid of awkward | 2005-09-26 | 1 | -236/+3 | ||
| | | | | | | code duplication in cardbus, pcmcia and puc attachments. Joint effort with fgs@; blessed deraadt@ | |||||
* | fix sparc64 console; same diff as miod | 2005-07-18 | 1 | -2/+2 | ||
| | ||||||
* | COM_CONSOLE & DDB fix | 2005-07-18 | 1 | -2/+2 | ||
| | ||||||
* | Allow the console support code not to be compiled in; this will be | 2005-07-17 | 1 | -7/+30 | ||
| | | | | | | necessary for and only used on sparc, shortly. Reluctantely ok deraadt@ | |||||
* | Enable IR receive mode only for infrared capable PXA2x0 UARTs. Normal | 2005-07-11 | 1 | -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@ | 2005-07-02 | 1 | -3/+3 | ||
| | ||||||
* | - Merge changes from pxacom back into the common com driver. | 2005-05-27 | 1 | -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 mickey | 2004-10-20 | 1 | -5/+5 | ||
| | ||||||
* | remove old arc stuff and add sgi support. | 2004-08-09 | 1 | -5/+7 | ||
| | | | | ok mickey@ | |||||
* | serial console hack from tom. who, after having been told a few times | 2004-05-30 | 1 | -1/+5 | ||
| | | | | to commit it, has not. what is going on guys? | |||||
* | Remove OpenBSD/pegaos, this has been announced before but delayed until | 2004-05-03 | 1 | -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 could | 2003-10-31 | 1 | -1/+3 | ||
| | | | | be adopted MI? | |||||
* | Merge tty_attach() in ttymalloc() and tty_detach() in ttyfree(). The need for | 2003-10-03 | 1 | -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() | 2003-09-23 | 1 | -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 flags | 2003-08-15 | 1 | -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). | 2003-07-15 | 1 | -2/+1 | ||
| | ||||||
* | terms 3 & 4 cleanup based on "terms" file | 2003-06-03 | 1 | -4/+1 | ||
| | ||||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-02 | 1 | -6/+2 | ||
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | |||||
* | comparam() does not need an spltty() for it, already called there. | 2002-12-19 | 1 | -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. | 2002-10-17 | 1 | -1/+3 | ||
| | ||||||
* | Remove kernel support for NTP. ok deraadt@ and tholo@ | 2002-07-06 | 1 | -18/+1 | ||
| | ||||||
* | com.c is not a block device, no bdev_decl() for it. | 2002-06-11 | 1 | -2/+1 | ||
| | ||||||
* | Don't enable interrupts until an open() is done. Until then the driver | 2002-04-09 | 1 | -2/+4 | ||
| | | | | | is not handling them and may throw the kernel into a spurious interrupt loop. ok art@ | |||||
* | First round of __P removal in sys | 2002-03-14 | 1 | -7/+7 | ||
| | ||||||
* | compare pointers with NULL not 0 | 2002-03-14 | 1 | -3/+3 | ||
| | ||||||
* | restore CN_REMOTE priority, as it always was there. | 2002-02-05 | 1 | -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@ ok | 2002-01-30 | 1 | -6/+1 | ||
| | ||||||
* | CONADDR is defined elsewhere for hppa | 2002-01-25 | 1 | -2/+2 | ||
| | ||||||
* | oops, make the kgdb var's non-static | 2002-01-23 | 1 | -4/+4 | ||
| | ||||||
* | allow this to compile with KGDB | 2002-01-23 | 1 | -2/+2 | ||
| | ||||||
* | restore some of that dead code needed for dev/cons functionality | 2001-10-05 | 1 | -1/+59 | ||
| | ||||||
* | #ifdef FOO works much better when FOO isn't misspelled. | 2001-10-02 | 1 | -2/+2 | ||
| | ||||||
* | Enable break interrupt earlier. | 2001-09-30 | 1 | -6/+4 | ||
| |