Page MenuHomeFreeBSD

sfxge(4): add efsys macro to get memory region size
ClosedPublic

Authored by arybchik on Nov 21 2018, 11:38 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 11 2024, 9:00 PM
Unknown Object (File)
Jan 21 2024, 1:28 AM
Unknown Object (File)
Jan 4 2024, 8:10 AM
Unknown Object (File)
Dec 22 2023, 11:50 PM
Unknown Object (File)
Nov 30 2023, 7:14 PM
Unknown Object (File)
May 21 2023, 5:01 AM
Unknown Object (File)
May 21 2023, 5:01 AM
Unknown Object (File)
May 21 2023, 4:58 AM
Subscribers

Details

Summary

EFSYS_MEM_SIZE() reports the DMA mapped size of an efsys_mem_t
allocated region (the allocation size may be different due to
memory allocator and DMA alignment restrictions).

This ensures that common code internals have explicit knowledge
of the usable size of DMA mapped memory regions.

Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.

Test Plan

amd64 tinderbox kernel builds tested
driver loaded/unloaded, interfaces up/down, traffic works fine

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Nov 27 2018, 1:02 PM
This revision was automatically updated to reflect the committed changes.