| Age | Commit message (Collapse) | Author |
|
PR kern/57063
|
|
|
|
|
|
|
|
|
|
Just use `static inline' like everything else.
|
|
This is called either via tp->t_oproc, which is done with tty_lock
held (thus, at IPL_VM = IPL_TTY), or from comparam which is called at
IPL_TTY, either via comopen or tp->t_param.
|
|
This was introduced in rev. 1.292, whose commit message was...
`Delete dead code.' I guess December 6, 2009 was Opposite Day?
|
|
|
|
No functional change.
|
|
|
|
zeroes?!) to avoid out of array accesses - there are RTL8192EU
variants with 2 TX chains.
|
|
|
|
|
|
This just uses a subregion with PMC_TCO_BASE automatically applied.
No functional change intended.
|
|
This is an intermediate step that will let us decouple it from access
via PMBASE.
|
|
For PMC-specific ones, change `lpcib_' to `pmc_'. These are in a
separate PCI device in newer chipsets.
For TCO-specific ones, which may live in different places, whether at
their own base address or as an offset from PMBASE, just leave it as
`tco_' or `tcotimer'.
No functional change intended.
|
|
|
|
|
|
|
|
|
|
Observed with on a Sun Ultra 24, NetBSD/amd64:
tpm0 at acpi0 (TPM, IFX0102-1): io 0x4e-0x4f,0x4700-0x470b mem 0xfed40000-0xfed44fff
tpm0: device 0x000b15d1 rev 0x10
tpm0: read 8 bytes, expected 10tpm0: deactivating entropy source
|
|
|
|
I had tested this change, but forgot to amend the commit before
exporting to CVS.
|
|
curcpu() might be stale by the time we're done, but it's still safe
to pass it to cpu_index, and this is just used as a best-effort
mechanism to keep I/O on queues handled by the same CPU.
bp is not always provided, and bp->b_ci is not always assigned,
e.g. when dumping. (If bp->b_ci is supposed to be always assigned,
then we need to audit all the paths into it to assign it in those
where it's not.)
Fixes dump on nvme.
|
|
|
|
I deleted it in the previous commit, oops.
|
|
Tested up to mtu=9000. Hardware may allow up to mtu=16364
(frame length=16382), but this has not been tested.
- Separate calls to eqos_setup_rxdesc() from eqos_setup_rxbuf().
if m_getcl() fails, discard the packets received at that time
and reuse for the next buffer.
- Restore m_adj(m, ETHER_ALIGN) with limited conditions.
Only if MCLBYTES is greater than 2050, so it is not normally aligned.
|
|
Avoid confusion because some definitions are different bits with the same name for TX and RX.
no functional changes.
|
|
Even if the jumbo frame setting is off, eqos will DMA transfer frames of
2048 bytes or more in increments of 2048 bytes if they are received.
If the start position of the mbuf data is shifted by ETHER_ALIGN bytes
in m_adj(), up to 2048 bytes of data will be written from the +ETHER_ALIGN
position, causing overflow of the mbuf cluster.
|
|
- Several registers needed to be initialized
- Add some register definitions
|
|
|
|
and TSC calibration if the boot is delayed for more than ~430 seconds (or
less, depending on HPET frequency). The result is a badly misconfigured
timecounter.
Change the measurement interval to ~1e6 HPET ticks (<100ms) during
the calibration to avoid the overflow. This introduces an error of
1ppm, compared to the previous unspecified but typical error of 0.1ppm.
But this is still much less than the guaranteed maximum frequency drift
of the HPET counter itself, which is 500ppm.
|
|
|
|
|
|
bytes.
ether_input() can now trust M_HASFCS to accurately represent the packet
contents.
Discussed on tech-net@
|
|
|
|
(such as AppleTalk).
Instead, remove/preserve the final four bytes in the packet ourselves on a per-
protocol basis, as we do in arch/arm/xscale/ixp425_if_npe.c (and dev/ic/gem.c,
and so forth).
|
|
|
|
|
|
committed in 1.206, and the total disaster that the attempt to
revert those in 1.207 created.
|
|
|
|
|
|
|
|
for global commands is 0xffffffff. While the driver only supports 16bit
numbers (device minor & 0xffff), we need to use the full value for pass
through commands.
This fixes e.g. logpage requests on the controller level.
|
|
to the correct bit position.
|
|
|
|
|
|
adjust our internal state, as this implicitly resets the current
descriptor pointer.
Previously "ifconfig eqos0 down; ifconfig eqos0 up" made the interface
non-functional.
|
|
|