diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-06-09 04:16:47 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-06-09 04:16:47 +0000 |
commit | 44c36db7e3a52250f43957ab6647237285824d99 (patch) | |
tree | de33906d04e4601b071a408276d9830989a548f5 /sys/arch/sparc64/include/pci_machdep.h | |
parent | 6784bdd5dcebb6201a487b01c2c50e0083a88100 (diff) |
add PCITAG_BUS/DEV/FUNC for decoding PCI tags
Diffstat (limited to 'sys/arch/sparc64/include/pci_machdep.h')
-rw-r--r-- | sys/arch/sparc64/include/pci_machdep.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/sparc64/include/pci_machdep.h b/sys/arch/sparc64/include/pci_machdep.h index d3757a2d68e..bd3838bc0c3 100644 --- a/sys/arch/sparc64/include/pci_machdep.h +++ b/sys/arch/sparc64/include/pci_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.h,v 1.6 2002/06/08 18:06:02 jason Exp $ */ +/* $OpenBSD: pci_machdep.h,v 1.7 2002/06/09 04:16:46 jason Exp $ */ /* $NetBSD: pci_machdep.h,v 1.7 2001/07/20 00:07:14 eeh Exp $ */ /* @@ -66,6 +66,9 @@ struct sparc_pci_chipset { */ #define PCITAG_NODE(x) (int)(((x)>>32)&0xffffffff) +#define PCITAG_BUS(t) (((x) >> 16) & 0xff) +#define PCITAG_DEV(t) (((x) >> 11) & 0x05) +#define PCITAG_FUNC(t) (((x) >> 8) & 0x07) #define PCITAG_OFFSET(x) ((x)&0xffffffff) #define PCITAG_CREATE(n,b,d,f) (((u_int64_t)(n)<<32)|((b)<<16)|((d)<<11)|((f)<<8)) #define PCITAG_SETNODE(t,n) ((t)&0xffffffff)|(((n)<<32) |