]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
iflib: introduce isc_dma_width
authorMarcin Wojtas <mw@FreeBSD.org>
Wed, 24 Feb 2021 22:56:45 +0000 (23:56 +0100)
committerMarcin Wojtas <mw@FreeBSD.org>
Wed, 24 Feb 2021 23:25:39 +0000 (00:25 +0100)
commit6dd69f0064f1e54671cdb46ce5975a332fb761e8
tree47cf4387ac75e063bd5628443337a293b677ec97
parentcc3fa1e29fda2cc761e793a61cef3bd2522b3468
iflib: introduce isc_dma_width

Some DMA controllers are unable to address the full host memory space
and are instead limited to a subset of address range (e.g. 48-bit).

Allow the driver to specify the maximum allowed DMA addressing width
(in bits) for the NIC hardware, by introducing a new field in
if_softc_ctx.

If said field is omitted (set to 0), the lowaddr of DMA window bounds
defaults to BUS_SPACE_MAXADDR.

Submitted by: Artur Rojek <ar@semihalf.com>
Obtained from: Semihalf
Sponsored by: Amazon, Inc.
Differential Revision: https://reviews.freebsd.org/D28706
sys/net/iflib.c
sys/net/iflib.h