svn commit: r257070 - head/sys/dev/pci
Konstantin Belousov
kib at FreeBSD.org
Thu Oct 24 20:21:38 UTC 2013
Author: kib
Date: Thu Oct 24 20:21:37 2013
New Revision: 257070
URL: http://svnweb.freebsd.org/changeset/base/257070
Log:
Move the PCI_DMA_BOUNDARY definition into the pcivar.h.
Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Modified:
head/sys/dev/pci/pci.c
head/sys/dev/pci/pcivar.h
Modified: head/sys/dev/pci/pci.c
==============================================================================
--- head/sys/dev/pci/pci.c Thu Oct 24 20:13:40 2013 (r257069)
+++ head/sys/dev/pci/pci.c Thu Oct 24 20:21:37 2013 (r257070)
@@ -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))
Modified: head/sys/dev/pci/pcivar.h
==============================================================================
--- head/sys/dev/pci/pcivar.h Thu Oct 24 20:13:40 2013 (r257069)
+++ head/sys/dev/pci/pcivar.h Thu Oct 24 20:21:37 2013 (r257070)
@@ -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_ */
/*
More information about the svn-src-all
mailing list