diff options
author | 2002-06-09 04:16:46 +0000 | |
---|---|---|
committer | 2002-06-09 04:16:46 +0000 | |
commit | 1d24711894624ddde6cde4d3a115e69ca63d248f (patch) | |
tree | 72b98429a765953cfe2de047c3c23d317900893b | |
parent | knf/cleanup/dead code removal. (diff) | |
download | wireguard-openbsd-1d24711894624ddde6cde4d3a115e69ca63d248f.tar.xz wireguard-openbsd-1d24711894624ddde6cde4d3a115e69ca63d248f.zip |
add PCITAG_BUS/DEV/FUNC for decoding PCI tags
-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) |