7dd7f8baa2
enabled on amd64). Add a dmat64 field to various PCI attach structures, and pass it down where needed. Implement a simple new function called pci_dma64_available(pa) to test if 64bit DMA addresses may be used. This returns 1 iff _PCI_HAVE_DMA64 is defined in <machine/pci_machdep.h>, and there is more than 4G of memory.
6 lines
121 B
C
6 lines
121 B
C
/* $NetBSD: pci_machdep.h,v 1.2 2003/06/15 23:08:55 fvdl Exp $ */
|
|
|
|
#define _PCI_HAVE_DMA64
|
|
|
|
#include <x86/pci_machdep.h>
|