summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-07-12 04:22:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-07-12 04:22:10 +0000
commit10a156ceb2e2cf11206bea8f26ee603fe3a2e4bc (patch)
tree2c0548d4106b9bf8e6864ea48a06ec04ea743ea1 /sys
parentbe3c1481f2b46aed7de9bea6f6b911a83ae0238e (diff)
fix bhlcr shift values; fgsch@olimpo.com.br
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/pcireg.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/pcireg.h b/sys/dev/pci/pcireg.h
index 23144e8da3f..221899817ce 100644
--- a/sys/dev/pci/pcireg.h
+++ b/sys/dev/pci/pcireg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcireg.h,v 1.8 1998/04/25 00:17:44 deraadt Exp $ */
+/* $OpenBSD: pcireg.h,v 1.9 1998/07/12 04:22:09 deraadt Exp $ */
/* $NetBSD: pcireg.h,v 1.11 1996/08/10 15:42:33 mycroft Exp $ */
/*
@@ -226,7 +226,7 @@ typedef u_int8_t pci_revision_t;
#define PCI_BIST(bhlcr) \
(((bhlcr) >> PCI_BIST_SHIFT) & PCI_BIST_MASK)
-#define PCI_HDRTYPE_SHIFT 24
+#define PCI_HDRTYPE_SHIFT 16
#define PCI_HDRTYPE_MASK 0xff
#define PCI_HDRTYPE(bhlcr) \
(((bhlcr) >> PCI_HDRTYPE_SHIFT) & PCI_HDRTYPE_MASK)
@@ -234,12 +234,12 @@ typedef u_int8_t pci_revision_t;
#define PCI_HDRTYPE_MULTIFN(bhlcr) \
((PCI_HDRTYPE(bhlcr) & 0x80) != 0)
-#define PCI_LATTIMER_SHIFT 24
+#define PCI_LATTIMER_SHIFT 8
#define PCI_LATTIMER_MASK 0xff
#define PCI_LATTIMER(bhlcr) \
(((bhlcr) >> PCI_LATTIMER_SHIFT) & PCI_LATTIMER_MASK)
-#define PCI_CACHELINE_SHIFT 24
+#define PCI_CACHELINE_SHIFT 0
#define PCI_CACHELINE_MASK 0xff
#define PCI_CACHELINE(bhlcr) \
(((bhlcr) >> PCI_CACHELINE_SHIFT) & PCI_CACHELINE_MASK)