Permalink
Browse files

MFC r257070:

Move the PCI_DMA_BOUNDARY definition into the pcivar.h.

Approved by:	re (glebius)
  • Loading branch information...
1 parent 0c11a37 commit e31542bdb57e185d2629a8bcbb249018e3c863f6 @kostikbel kostikbel committed Nov 1, 2013
Showing with 9 additions and 4 deletions.
  1. +0 −4 sys/dev/pci/pci.c
  2. +9 −0 sys/dev/pci/pcivar.h
View
@@ -70,10 +70,6 @@ __FBSDID("$FreeBSD$");
#include "pcib_if.h"
#include "pci_if.h"
-#if (BUS_SPACE_MAXADDR > 0xFFFFFFFF)
-#define PCI_DMA_BOUNDARY 0x100000000
-#endif
-
#define PCIR_IS_BIOS(cfg, reg) \
(((cfg)->hdrtype == PCIM_HDRTYPE_NORMAL && reg == PCIR_BIOS) || \
((cfg)->hdrtype == PCIM_HDRTYPE_BRIDGE && reg == PCIR_BIOS_1))
View
@@ -499,6 +499,15 @@ void pci_restore_state(device_t dev);
void pci_save_state(device_t dev);
int pci_set_max_read_req(device_t dev, int size);
+
+#ifdef BUS_SPACE_MAXADDR
+#if (BUS_SPACE_MAXADDR > 0xFFFFFFFF)
+#define PCI_DMA_BOUNDARY 0x100000000
+#else
+#define PCI_DMA_BOUNDARY 0
+#endif
+#endif
+
#endif /* _SYS_BUS_H_ */
/*

0 comments on commit e31542b

Please sign in to comment.