artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff1608b
)
add PCITAG_NODE and PCITAG_OFFSET
author
deraadt
<deraadt@openbsd.org>
Mon, 14 Jun 2021 03:48:41 +0000
(
03:48
+0000)
committer
deraadt
<deraadt@openbsd.org>
Mon, 14 Jun 2021 03:48:41 +0000
(
03:48
+0000)
ok drahn
sys/arch/riscv64/include/pci_machdep.h
patch
|
blob
|
history
diff --git
a/sys/arch/riscv64/include/pci_machdep.h
b/sys/arch/riscv64/include/pci_machdep.h
index
40763fc
..
e2c7a7b
100644
(file)
--- 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