| 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
|
|
|
|
|
|
|
|
|
| |
assuming each BAR is four byte-wide. For 64-bit BARs this is not true,
so we need to skip the next entry if we encounter one. Otherwise we
corrupt the 64-bit BAR we just mapped.
ok kettenis@
"quite a hack" deraadt@
|
|
|
|
|
|
| |
which was broken by the previous commit.
ok jsg@, mpi@
|
|
|
|
| |
OK mpi
|
|
|
|
|
|
| |
Revert previous commit; the XR17V35X probe that was added accesses registers
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
|
|
|
|
|
|
|
| |
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
|
|
|
|
|
| |
cleaning up some shutdown-hook related code on the way.
(A few drivers related to sparc are still skipped at kettenis' request)
ok kettenis mlarkin, tested by many others too
|
|
|
|
|
| |
of relying on bus_space_subregion(9) to fail. Fixes double console attachment
seen by otto@
|
|
|
|
|
|
| |
common cases.
ok mikeb@
|
|
|
|
| |
by krw and myself.
|
|
|
|
|
|
| |
that the .o file is half the size. Tested by camield (who just doubled
the table size recently for a 16-port device). Hopefully no regressions,
since this is a pretty large change of a very large table.
|
|
|
|
|
|
|
| |
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@
|
|
|
|
| |
Tested and okay sthen@.
|
| |
|
| |
|
|
|
|
|
| |
unused variables, tested by todd
ok kettenis
|
|
|
|
| |
Tested by millert@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
available ports e.g.
puc0 at pci1 dev 7 function 0 "Moxa C168H" rev 0x02: com, com, com, com,
com, com, com, com
vs
puc0 at pci1 dev 7 function 0 "Moxa C168H" rev 0x02: ports: 8 com
and panicing is an extreme behaviour if we dont know the name of a port
simply print a message informing of the unknown port and dont attempt to
attach it.
ok deraadt
|
|
|
|
|
| |
forces the com(4) uart type to ST16C654 since that's what's on it;
from Alexei G. Malinin (alexei.malinin@inetcomm.ru)
|
|
|
|
| |
on sparc64 again
|
|
|
|
|
|
| |
tested on puc@pci by fkr and meself on the cardbus.
still needs a bit more work but generally works.
deraadt@ ok and some input from miod@
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
All callers actually took all arguments to pci_intr_map from pci_attach_args
structs, so this simplifies code.
This also allows more complicated interrupt assignment schemes like the one
on sparc64.
This makes sparc64 pci interrupts work.
Inspired by the same change in NetBSD.
|
|
|
|
|
|
|
| |
put a size limitation of the PCI region to map. That makes the PERC 3/Di
raid controller usable, as it publishes too much PCI memory for us to map
in the kernel virtual memory. As we only access the first 256 byte it is
of no use to map 128MB of kvm.
|
| |
|
| |
|
|
|