aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/pci/pcireg.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2009-03-05 15:33:04 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2009-03-05 15:33:04 +0000
commitc4e8c9df9eeab46fa7e885cfda40feeb48af0314 (patch)
tree715599f2e35ace9045187a26f03520e98da860cc /sys/dev/pci/pcireg.h
parentd004885d3a458502c42e379ec19b024e5efcbb08 (diff)
downloadsrc-c4e8c9df9eeab46fa7e885cfda40feeb48af0314.tar.gz
src-c4e8c9df9eeab46fa7e885cfda40feeb48af0314.zip
Always read/write the full 64-bit value of 64-bit BARs. Specifically,
when determining the size of a BAR by writing all 1's to the BAR and reading back the result, always operate on the full 64-bit size. Reviewed by: imp MFC after: 1 month
Notes
Notes: svn path=/head/; revision=189401
Diffstat (limited to 'sys/dev/pci/pcireg.h')
-rw-r--r--sys/dev/pci/pcireg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/pcireg.h b/sys/dev/pci/pcireg.h
index 04e0f35fcb8d..9dfe7913a5ea 100644
--- a/sys/dev/pci/pcireg.h
+++ b/sys/dev/pci/pcireg.h
@@ -132,7 +132,7 @@
#define PCIM_BAR_MEM_1MB 2 /* Locate below 1MB in PCI <= 2.1 */
#define PCIM_BAR_MEM_64 4
#define PCIM_BAR_MEM_PREFETCH 0x00000008
-#define PCIM_BAR_MEM_BASE 0xfffffff0
+#define PCIM_BAR_MEM_BASE 0xfffffffffffffff0ULL
#define PCIM_BAR_IO_RESERVED 0x00000002
#define PCIM_BAR_IO_BASE 0xfffffffc
#define PCIR_CIS 0x28