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)
Oct 27 2024, 2:16 AM
Unknown Object (File)
Oct 4 2024, 11:36 PM
Unknown Object (File)
Sep 30 2024, 6:03 AM
Unknown Object (File)
Sep 2 2024, 9:39 PM
Unknown Object (File)
Aug 19 2024, 6:52 AM
Unknown Object (File)
Aug 19 2024, 3:30 AM
Unknown Object (File)
Aug 11 2024, 9:12 PM
Unknown Object (File)
Jul 7 2024, 5:58 PM
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.