| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
correcting some misthinking.
Discussed with (really this time): bde
|
|
|
|
|
|
|
|
|
|
|
| |
release) the sio spin mutex, as use of synchronization primitives in
the debugger can result in substantial problems. With this patch in
place entering the debugger via a serial console is made
substantially more reliable.
MFC after: 1 week
Tested by: kris
Discussed with: bde
|
|
|
|
| |
PR: 48468
|
| |
|
|
|
|
|
|
|
| |
Tested on every device except sio_pci and the pc98 fd.c. Perhaps something
similar should be done for the "disabled" hints also.
MFC after: 2 weeks
|
|
|
|
| |
NB: device names are now consistent: {cua,tty}d$(port)[.lock,.init]
|
| |
|
| |
|
|
|
|
|
|
| |
reserved for the device drivers:
Add a t_lsc field for line discipline private use.
|
| |
|
|
|
|
|
|
|
|
| |
Use the init/lock*in/out fields in struct tty and remove them from our softc.
Use tty->t_sc to find out softc when convenient.
Mostly OK'ed by: bde
|
|
|
|
|
|
|
| |
happens because the sio device was never opened and com->tp is
therefore NULL. ttygone can't swallow a NULL, so guard against that
possibility. Other places in this function make similar checks, so I
believe this is correct.
|
|
|
|
|
|
|
|
|
| |
future:
rename ttyopen() -> tty_open() and ttyclose() -> tty_close().
We need the ttyopen() and ttyclose() for the new generic cdevsw
functions for tty devices in order to have consistent naming.
|
|
|
|
| |
Move dtrwait logic to the generic TTY level.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
it's in the way even more. Basicly: remove all alpha specific console
support from gfb(4), sio(4) and syscons(4). Rewrite the alpha console
initialization to be identical to all other platforms. In a nutshell:
call cninit().
The platform specific code now only sets or clears RB_SERIAL and thus
automaticly causes the right console to be selected.
sio.c:
o Replace the remote GDB hacks and use the GDB debug port interface
instead.
o Make debugging code conditional upon KDB instead of DDB.
o Call kdb_alt_break() instead of db_alt_break().
o Call kdb_enter() instead of breakpoint().
o Remove the ugly compatibility of using the console as the debug
port.
|
|
|
|
|
|
| |
Change the return type for t_break to void.
Add t_ioctl (more about this later).
|
|
|
|
|
|
|
|
| |
'tty:' prefix is largely redundant.
- Fix the priority of the low-priority TTY SWIs that are hung off of the
softclock thread.
Submitted by: bde (2)
|
| |
|
|
|
|
|
|
|
|
| |
copies.
No current line disciplines have a dynamically changing hotchar, and
expecting to receive anything sensible during a change in ldisc is
insane so no locking of the hotchar field is necessary.
|
| |
|
|
|
|
|
| |
The RFC-2783 PPS-API (<sys/timepps.h>) provides better and more
configurable service.
|
| |
|
|
|
|
|
|
| |
from the trafic functions.
Do not use com_addr() when we don't need it.
|
|
|
|
| |
Bump __FreeBSD_version accordingly.
|
|
|
|
|
| |
We inherited this from the sparc32 port of BSD4.4-Lite1. We have neither
a sparc32 port nor a SunOS4.x compatibility desire these days.
|
|
|
|
|
|
| |
Broadcom 802.11g/GPRS CardBus card.
Submitted by: Yann Berthier yb at sainte-barbe dot org
|
|
|
|
|
|
|
|
|
| |
called ttyldoptim().
Use this function from all the relevant drivers.
I belive no drivers finger linesw[] directly anymore, paving the way for
locking and refcounting.
|
| |
|
|
|
|
|
|
| |
linesw[] directly to using the ttyld...() functions
The ttyld...() functions ar inline so there is no performance hit.
|
|
|
|
| |
the linedisc directly.
|
|
|
|
| |
->l_close() did it and ttyclose certainly will.
|
|
|
|
|
| |
ttyclose() has been called. It's already been done once by ttyclose,
and probably once by the line-discipline too.
|
| |
|
|
|
|
|
|
| |
redundant includes and fix some of the include disordering.
Submitted by: bde
|
|
|
|
|
|
|
| |
the modules.
Also generate usbdevs.h automatically now, but a non-kernel file is
stopping that at the moment.
|
|
|
|
|
|
|
| |
returns okay when HW probe fails. This happens when comconsole flag is
set but VGA console is used instead.
Back out requested by: bde (He will be looking at other solutions from scratch)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Define option FORCECONSPEED to force the serial console to
be CONSPEED. I've run into a lot of boards in which
the detect for prior speed doesn't work and ends up with
broken console since it is at the wrong speed.
- If a serial port is marked as a console, but console=vidconsole
and if the serial ports doesn't exist it will be probed and
attached at a 8250 chip. Then writes to that will freeze the
system.
- Add an option flags 0x400000 to mark this as a potential
comconsole in-case the one flaged with 0x10 does not exist
in the system.
This makes it easier to deploy on systems with one or two serial ports.
Obtained from: IronPort
|
|
|
|
|
| |
driver because sio(4) uses ISA-specific functions. uart(4) has full
support for the respective hardware and should be used instead.
|
| |
|
|
|
|
|
|
|
| |
license, per letter dated July 22, 1999 and email from Peter Wemm,
Alan Cox and Robert Watson.
Approved by: core, peter, alc, rwatson
|
| |
|
|
|
|
|
|
|
| |
license, per letter dated July 22, 1999 and email from Peter Wemm,
Alan Cox and Robert Watson.
Approved by: core, peter, alc, rwatson
|
|
|
|
|
|
|
| |
bus_alloc_resource_any commit.
Submitted by: bde
Pointy-hat: njl
|
|
|
|
|
| |
Submitted by: Mark Santcroos <marks@ripe.net>
Reviewed by: imp, dfr, bde
|
|
|
|
|
|
|
|
| |
Introduce d_version field in struct cdevsw, this must always be
initialized to D_VERSION.
Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing
four D_NOGIANT flags and adding 145 D_NEEDGIANT flags.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add missing D_TTY flags to various drivers.
Complete asserts that dev_t's passed to ttyread(), ttywrite(),
ttypoll() and ttykqwrite() have (d_flags & D_TTY) and a struct tty
pointer.
Make ttyread(), ttywrite(), ttypoll() and ttykqwrite() the default
cdevsw methods for D_TTY drivers and remove the explicit initializations
in various drivers cdevsw structures.
|
|
|
|
|
|
|
| |
Free approx 86 major numbers with a mostly automatically generated patch.
A number of strategic drivers have been left behind by caution, and a few
because they still (ab)use their major number.
|
|
|
|
| |
Submitted by: Stanford Metacompilation research group
|
| |
|
|
|
|
| |
Remove a rendundant $FreeBSD$
|