Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Add a register offset for the Capability List Po...



details:   https://anonhg.NetBSD.org/src/rev/7c515b33cdf0
branches:  trunk
changeset: 485880:7c515b33cdf0
user:      kleink <kleink%NetBSD.org@localhost>
date:      Mon May 08 10:45:52 2000 +0000

description:
Add a register offset for the Capability List Pointer in header type 2.

XXX Ideally the PCI-Cardbus Bridge header should be restructured to just
XXX present standard register definitions, making it ~safe to be included.

diffstat:

 sys/dev/pci/pcireg.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r f129dbc07273 -r 7c515b33cdf0 sys/dev/pci/pcireg.h
--- a/sys/dev/pci/pcireg.h      Mon May 08 10:15:17 2000 +0000
+++ b/sys/dev/pci/pcireg.h      Mon May 08 10:45:52 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcireg.h,v 1.24 2000/04/28 17:12:45 uch Exp $  */
+/*     $NetBSD: pcireg.h,v 1.25 2000/05/08 10:45:52 kleink Exp $       */
 
 /*
  * Copyright (c) 1995, 1996, 1999
@@ -347,7 +347,8 @@
 /*
  * capabilities link list (PCI rev. 2.2)
  */
-#define PCI_CAPLISTPTR_REG             0x34
+#define PCI_CAPLISTPTR_REG             0x34    /* header type 0 */
+#define PCI_CARDBUS_CAPLISTPTR_REG     0x14    /* header type 2 */
 #define PCI_CAPLIST_PTR(cpr) ((cpr) & 0xff)
 #define PCI_CAPLIST_NEXT(cr) (((cr) >> 8) & 0xff)
 #define PCI_CAPLIST_CAP(cr) ((cr) & 0xff)



Home | Main Index | Thread Index | Old Index