[dma] Remove debug-specific behaviour from dma.h

When using the flat address space DMA API, all mapping and unmapping
operations are no-ops and are elided at build time.  We currently
attempt to record mapping and allocation counts if debugging is
enabled, as a way to allow for some visibility into potentially
unpaired DMA operations.

This does not work in practice: debugging is enabled at a per-object
level and so is enabled for the objects that include a header file
rather than for the header file itself.  It is common for DMA mappings
and unmappings to be in different object files (e.g. a receive DMA
buffer may be allocated and mapped in iobuf.o but then unmapped in
netdevice.o), and so the mapping and allocation counts will be correct
only if debugging is enabled in all of the relevant object files at
the same time.

Remove this debugging code since it is unusable in practice.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
1 file changed
tree: 57151ab07f5d61ea5b7b98bda014d645d10e4ad4
  1. .claude/
  2. .github/
  3. contrib/
  4. src/
  5. AGENTS.md
  6. CHANGELOG.md
  7. CLAUDE.md
  8. CONTRIBUTING.md
  9. COPYING
  10. COPYING.GPLv2
  11. COPYING.UBDL
  12. README.md
  13. RELEASE.md
  14. RELNOTES.tmpl.md
  15. SECURITY.md
README.md

iPXE network bootloader

Build Coverity Release

iPXE is the leading open source network boot firmware. It provides a full PXE implementation enhanced with additional features such as:

  • boot from a web server via HTTP or HTTPS,

  • boot from an iSCSI, FCoE, or AoE SAN,

  • control the boot process with a script,

  • create interactive forms and menus.

You can use iPXE to replace the existing PXE ROM on your network card, or you can chainload into iPXE to obtain the features of iPXE without the hassle of reflashing.

iPXE is free, open-source software licensed under the GNU GPL (with some portions under GPL-compatible licences).

You can download the rolling release binaries (built from the latest commit), or use the most recent stable release.

For full documentation, visit the iPXE website.