diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-06-14 03:48:42 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-06-14 03:48:42 +0000 |
commit | 3fd0b2b75cf2d5a6ede3b5d462662d5b4f271adf (patch) | |
tree | f3cb65c1d8bca5ba76e13460733080373ea3f10c /sys/arch | |
parent | b652cbe4c422956a12f33f9edc5dac3b9a5f900e (diff) |
add PCITAG_NODE and PCITAG_OFFSET
ok drahn
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/riscv64/include/pci_machdep.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/riscv64/include/pci_machdep.h b/sys/arch/riscv64/include/pci_machdep.h index 40763fc767b..e2c7a7b0ec2 100644 --- a/sys/arch/riscv64/include/pci_machdep.h +++ b/sys/arch/riscv64/include/pci_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.h,v 1.1 2021/05/19 19:32:25 kettenis Exp $ */ +/* $OpenBSD: pci_machdep.h,v 1.2 2021/06/14 03:48:41 deraadt Exp $ */ /* * Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -29,6 +29,9 @@ typedef struct machine_pci_chipset *pci_chipset_tag_t; typedef u_long pcitag_t; +#define PCITAG_NODE(x) ((x) >> 32) +#define PCITAG_OFFSET(x) ((x) & 0xffffffff) + /* Supported interrupt types. */ #define PCI_NONE 0 #define PCI_INTX 1 |