summaryrefslogtreecommitdiff
path: root/sys/dev/ic/com.c
AgeCommit message (Collapse)Author
2006-01-01Let cons_init() and cons_init_bell() initialize the whole consdev structure,Miod Vallat
thus removing the need for drivers to initialize cn_pri to CN_DEAD when hardware probe fails.
2005-11-21Move contents of sys/select.h to sys/selinfo.h in preparation for aTodd C. Miller
userland-visible sys/select.h. Consistent with what Net and Free do. OK deraadt@, tested with full ports build by naddy@.
2005-11-11fix kgdb compilation; input and ok miod@.Federico G. Schwindt
2005-09-26Share com probe code between com and pccom; allows us to get rid of awkwardMiod Vallat
code duplication in cardbus, pcmcia and puc attachments. Joint effort with fgs@; blessed deraadt@
2005-07-18fix sparc64 console; same diff as miodTheo de Raadt
2005-07-18COM_CONSOLE & DDB fixTheo de Raadt
2005-07-17Allow the console support code not to be compiled in; this will beMiod Vallat
necessary for and only used on sparc, shortly. Reluctantely ok deraadt@
2005-07-11Enable IR receive mode only for infrared capable PXA2x0 UARTs. NormalUwe Stuehler
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@
2005-07-02xscale UART FIFOs are 32 bytes deep; found by deraadt@Uwe Stuehler
2005-05-27- Merge changes from pxacom back into the common com driver.Uwe Stuehler
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@
2004-10-20Use bus_addr_t instead of int for port address/offset, ok mickeyPer Fogelstrom
2004-08-09remove old arc stuff and add sgi support.Per Fogelstrom
ok mickey@
2004-05-30serial console hack from tom. who, after having been told a few timesTheo de Raadt
to commit it, has not. what is going on guys?
2004-05-03Remove OpenBSD/pegaos, this has been announced before but delayed untilDale Rahn
the tree was stable. No point in code supporting a company which screws its employees being in the OpenBSD tree.
2003-10-31Use isa iot for pegasos com console attachment, perhaps this couldDale Rahn
be adopted MI?
2003-10-03Merge tty_attach() in ttymalloc() and tty_detach() in ttyfree(). The need forMiod Vallat
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...
2003-09-23Replace select backends with poll backends. selscan() and pollscan()Todd C. Miller
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
2003-08-15change arguments to suser. suser now takes the process, and a flagsTed Unangst
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@
2003-07-15move prototype for com_raisedtr() to comvar.h (just like pccom).Jason Wright
2003-06-03terms 3 & 4 cleanup based on "terms" fileTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-12-19comparam() does not need an spltty() for it, already called there.Michael Shalayeff
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
2002-10-17ifndef __HAVE_GENERIC_SOFT_INTERRUPTS leaved a label without a statement ↵Artur Grabowski
after it. Fix.
2002-07-06Remove kernel support for NTP. ok deraadt@ and tholo@Thomas Nordin
2002-06-11com.c is not a block device, no bdev_decl() for it.Miod Vallat
2002-04-09Don't enable interrupts until an open() is done. Until then the driverPer Fogelstrom
is not handling them and may throw the kernel into a spurious interrupt loop. ok art@
2002-03-14First round of __P removal in sysTodd C. Miller
2002-03-14compare pointers with NULL not 0Jason Wright
2002-02-05restore CN_REMOTE priority, as it always was there.Michael Shalayeff
anyway, only i386 uses that path and only if forced anyway. also do not do comprobe1() on hppa since that hoses the port.
2002-01-30Move SET/CLR/ISSET macros to param.h. fgsch@ and millert@ okThomas Nordin
2002-01-25CONADDR is defined elsewhere for hppaMichael Shalayeff
2002-01-23oops, make the kgdb var's non-staticEric Jackson
2002-01-23allow this to compile with KGDBEric Jackson
2001-10-05restore some of that dead code needed for dev/cons functionalityMichael Shalayeff
2001-10-02#ifdef FOO works much better when FOO isn't misspelled.Artur Grabowski
2001-09-30Enable break interrupt earlier.Artur Grabowski
2001-09-30Next round of cleanups.Artur Grabowski
- some KNF. - disable interrupts earlier in attach. - give it some more time in attach to finish earlier output. - explicit bus_space_barrier in comcnputc. - dead code.
2001-09-30Remove dead code.Artur Grabowski
2001-09-30Remove the COM_HAYESP code. It doesn't appear to have been ever used andArtur Grabowski
it's very intrusive and makes the code less readable.
2001-09-30Move out the com at commulti attachment into an ownfile.Artur Grabowski
Same story as isapnp - not tested because i386 uses pccom.
2001-09-30Move out com at isapnp attachment into an own file.Artur Grabowski
Not tested because the only system with isapnp is i386 and i386 uses pccom.
2001-09-29Next step in making the com driver improvable.Artur Grabowski
Split out the com at isa attachment into its own file.
2001-09-29- compoll is now scheduled once for every sc instead of just one timeout forArtur Grabowski
all ports and looping over them. - support for generic soft interrupts.
2001-09-27Simplify comstart a bit.Artur Grabowski
2001-09-27Enable #if 0'd code in comcnputc() so serial console works correctly;Todd C. Miller
art@openbsd.org
2001-09-27Split out comattach that does isa and isapnp attachment and initialization,Artur Grabowski
into comattach that does the isa stuff and com_attach_subr that does the init.
2001-04-17Implement cnbell(), an optional entrypoint that rings the console bell; fromAaron Campbell
NetBSD. deraadt@ ok
2001-03-15Put back new timeouts. This time with correct timeout for compoll.Artur Grabowski
2001-03-15typoTheo de Raadt
2001-03-15back out new timeouts until I find out why they break alpha.Artur Grabowski