pci.4: Update the information on pci_bar_mmap to match pciio.h

Reviewed by:	kib,markj,ziaee
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D49639

(cherry picked from commit cc05f8de571dcb9f8c64a4151d7a5567873295e3)
This commit is contained in:
Navdeep Parhar 2025-04-02 12:15:46 -07:00
parent 47cdd7a9eb
commit f44e1748e2

View file

@ -22,7 +22,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.Dd October 4, 2022
.Dd April 2, 2025
.Dt PCI 4
.Os
.Sh NAME
@ -372,16 +372,18 @@ The input parameters and results are passed in the
.Va pci_bar_mmap
structure, which has the following fields:
.Bl -tag -width Vt struct pcise pbm_sel
.It Vt uint64_t pbm_map_base
.It Vt void *pbm_map_base
Reports the established mapping base to the caller.
If
.Va PCIIO_BAR_MMAP_FIXED
flag was specified, then this field must be filled before the call
with the desired address for the mapping.
.It Vt uint64_t pbm_map_length
.It Vt size_t pbm_map_length
Reports the mapped length of the BAR, in bytes.
Its .Vt uint64_t value is always multiple of machine pages.
.It Vt int64_t pbm_bar_length
Its
.Vt size_t
value is always multiple of machine pages.
.It Vt uint64_t pbm_bar_length
Reports length of the bar as exposed by the device.
.It Vt int pbm_bar_off
Reports offset from the mapped base to the start of the