summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2000-11-08 14:17:18 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2000-11-08 14:17:18 +0000
commit7dbcb2c94fdc4e0bf29091d61358406e17ff392b (patch)
tree8ed045a2c9d095f486273f89de20625c824cca0c /sys/dev/pci
parent1b79a11f795a212f1423dca8a713fa6bc970f9c1 (diff)
Defines for min_gnt and max_lat fields in the bhlc reg.
Not used yet.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/pcireg.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/dev/pci/pcireg.h b/sys/dev/pci/pcireg.h
index 53f6c641a58..25fce40e534 100644
--- a/sys/dev/pci/pcireg.h
+++ b/sys/dev/pci/pcireg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcireg.h,v 1.14 2000/09/20 17:39:05 niklas Exp $ */
+/* $OpenBSD: pcireg.h,v 1.15 2000/11/08 14:17:17 art Exp $ */
/* $NetBSD: pcireg.h,v 1.26 2000/05/10 16:58:42 thorpej Exp $ */
/*
@@ -399,6 +399,16 @@ typedef u_int8_t pci_intr_line_t;
#define PCI_INTERRUPT_LINE(icr) \
(((icr) >> PCI_INTERRUPT_LINE_SHIFT) & PCI_INTERRUPT_LINE_MASK)
+#define PCI_MIN_GNT_SHIFT 16
+#define PCI_MIN_GNT_MASK 0xff
+#define PCI_MIN_GNT(icr) \
+ (((icr) >> PCI_MIN_GNT_SHIFT) & PCI_MIN_GNT_MASK)
+
+#define PCI_MAX_LAT_SHIFT 24
+#define PCI_MAX_LAT_MASK 0xff
+#define PCI_MAX_LAT(icr) \
+ (((icr) >> PCI_MAX_LAT_SHIFT) & PCI_MAX_LAT_MASK)
+
#define PCI_INTERRUPT_PIN_NONE 0x00
#define PCI_INTERRUPT_PIN_A 0x01
#define PCI_INTERRUPT_PIN_B 0x02