| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The Exar XR17V354 has 4 ports that have a 256-byte FIFO, use a
frequency of 125Mhz, and have a unique sleep register. A custom
interrupt handler is setup in puc for these ports so it can check a
register which reports which ports triggered the interrupt, rather
than having to run comintr for every port every time.
To avoid probing for these ports in com_attach_subr which requires
access to registers that may be reserved on certain platforms, pass
the sc_uarttype from com_puc_attach since the port type is already
known based on the puc device vendor/id.
Input from kettenis, tested in snaps
|
|
|
|
|
|
|
| |
driver. The information by the driver is supposed more reliable than
the information which was set up earlier.
ok patrick
|
|
|
|
|
|
|
|
|
|
|
|
| |
As more and more teardown functions include barriers, or any kind of
context change, it is unsafe to continue to assume that such code paths
are atomic. So a good practise is to only free descriptor when we're
sure that no other context can access them.
Found while looking at visa@'s ttkqflush() replacement diff. The same
pattern is present in many USB drivers as found with Peter Stuge.
ok visa@
|
|
|
|
|
|
|
|
| |
All callers sleep indefinitely.
With help from visa@.
ok visa@, ratchov@, kn@
|
|
|
|
| |
ok visa@, patrick@
|
|
|
|
|
| |
that aren't guaranteed to be there and may even belong to a different device.
This triggers a fault on hppa machines like the C3000 for example.
|
|
|
|
|
|
|
|
|
| |
frequency of 125Mhz, and have a unique sleep register. A custom
interrupt handler is setup in puc for these ports so it can check a
register which reports which ports triggered the interrupt, rather
than having to run comintr for every port every time.
ok mlarkin deraadt
|
|
|
|
|
|
|
|
|
| |
that are mostly NS16550 compatible but use 32-bit instead of 8-bit registers
such as the Synopsys Designware UARTs found on many armv7, arm64 and amd64
SoCs.
tested by florian@, blum@
ok deraadt@
|
|
|
|
|
|
|
| |
The account flag `ASU' will no longer be set but that makes suser()
mpsafe since it no longer mess with a per-process field.
No objection from millert@, ok tedu@, bluhm@
|
|
|
|
| |
ok deraadt@ krw@
|
|
|
|
|
|
|
| |
Using a name with the 'db_' prefix makes it invisible from the dynamic
profiler.
ok deraadt@, kettenis@, visa@
|
|
|
|
|
|
| |
It doesn't compile und hasn't been working during the last decade.
ok kettenis@, deraadt@
|
| |
|
|
|
|
| |
"looks correct" deraadt@ guenther@ on an earlier rev
|
|
|
|
|
|
|
|
| |
This allows glue drivers to set the type based on other information (such as
Oopen Firmware or device tree properties) without going through to risky
code paths.
ok deraadt@, visa@
|
|
|
|
| |
ok mpi@ kspillner@
|
| |
|
|
|
|
|
|
|
|
|
| |
be any characters. If the chip is not actually there for some reason, we'd
be spinning so early in the resume sequence, we'd probably go mad trying to
find the reason..
ok kettenis
request: people with serial ports on their laptops, try to run a "cu" over
a suspend/resume cycle, and see if you see "input noise"
|
|
|
|
|
| |
bus-independent fashion.
ok kettenis
|
|
|
|
| |
ok miod@
|
|
|
|
| |
operation which requires it.
|
|
|
|
|
|
| |
false positives like the DUART on the MPC8347 as found on socppc.
ok deraadt@
|
|
|
|
|
|
|
|
|
| |
with sleep mode. So skip the wakeup code as well if we are a serial console.
The port on the v445 almost certainly isn't a real st16650 and probably
doesn't implement sleep mode (perhaps someone cut the soft core down a bit
too much?). But it is indistinguishable from it, so we have to deal with it.
ok deraadt@
|
|
|
|
|
|
|
|
| |
case the kernel will still be using the port even after the last process closes
it. And on machines like the v445 the firmware won't be happy if the console
port is in sleep mode when the kernel reboots or halts.
ok miod@
|
|
|
|
| |
ok mpi@, miod@
|
|
|
|
|
|
|
|
| |
that's ever used it, and it's long since been changed to use
DVACT_{QUIESCE,SUSPEND,RESUME} instead.
ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it
up a few weeks ago
|
|
|
|
|
| |
errors if the fifo is read when the fifo is empty. Dont read an empty fifo.
ok deraaadt@ fgsch@
|
|
|
|
|
| |
it will crash with 'External Non-Linefetch Abort (S)'.
similar diff provided by drahn@. tested by jasper@, deraadt@ ok.
|
|
|
|
| |
no functional change.
|
|
|
|
| |
Tested by sthen@, ok deraadt@
|
|
|
|
|
|
|
| |
for using cu(1) between two OpenBSD machines. Probably doesn't work for
serial consoles but we don't support those on puc(4) anyway.
ok deraadt@
|
|
|
|
| |
ok deraadt matthew millert
|
|
|
|
|
|
|
|
| |
max-baud-rate hint. Adjust TTYHOG (the nearly full logic) to this new
situation. The larger buffers are required by the very high speed
KDDI devices in Japan (CF com, or USB ucom) so those are the only two
drivers which currently ask for a larger buffer size.
ok yasuoka miod
|
|
|
|
| |
(sub-38400) port speeds. Inspired by netbsd. ok fgsch krw deraadt miod
|
|
|
|
|
|
|
|
| |
it defines. In some cases, this means pulling in uvm.h or pcb.h
instead, but most of the inclusions were just noise. Tested on
alpha, amd64, armish, hppa, i386, macpcc, sgi, sparc64, and vax,
mostly by krw and naddy.
ok krw@
|
|
|
|
| |
a process instead of using curproc. ok deraadt
|
|
|
|
|
|
|
|
|
|
| |
supported it doesn't do any harm), so put the KNOTE() in selwakeup() itself and
remove it from any occurences where both are used, except one for kqueue itself
and one in sys_pipe.c (where the selwakeup is under a PIPE_SEL flag).
Based on a diff from tedu.
ok deraadt
|
|
|
|
| |
ok jsing@, miod@
|
|
|
|
| |
ok miod
|
|
|
|
| |
miod@ deraadt@ ok.
|
|
|
|
|
|
|
| |
calls can go directly into selwakeup() safely
long discussion with nicm, murmers of consent from tedu and miod, noone
else seems to care of kqueue is busted as long as it makes their sockets
move data fast... pretty sad.
|
|
|
|
|
|
| |
This is needed for the addition of further suspend/resume actions.
Okay deraadt@, marco@.
|
|
|
|
|
|
|
| |
conversions.
ok kettenis@
ok krw@ (possibly for the second time :)
|
| |
|
|
|
|
|
|
|
| |
This should take care of the simpler ones (i.e., timeout values of
integer multiples of hz).
ok krw@, art@
|
|
|
|
| |
tested by jbg@, "it is right" deraadt@
|
|
|
|
|
|
|
|
|
| |
what type of console was specified, so when a glass console was used it was
still configuring serial bits. this makes it so serial config only occurs
for serial console devices.
found by jolan@, thib@, and maybe sthen@
sorry guys
|
|
|
|
| |
Spotted by drahn@, ok dlg@
|
|
|
|
| |
ok dlg@
|
| |
|