Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arc/include PRovide pci_intr_setattr
details: https://anonhg.NetBSD.org/src/rev/830d67289438
branches: trunk
changeset: 369423:830d67289438
user: skrll <skrll%NetBSD.org@localhost>
date: Tue Aug 16 14:00:03 2022 +0000
description:
PRovide pci_intr_setattr
diffstat:
sys/arch/arc/include/pci_machdep.h | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diffs (32 lines):
diff -r f93a3db854ed -r 830d67289438 sys/arch/arc/include/pci_machdep.h
--- a/sys/arch/arc/include/pci_machdep.h Tue Aug 16 13:59:18 2022 +0000
+++ b/sys/arch/arc/include/pci_machdep.h Tue Aug 16 14:00:03 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_machdep.h,v 1.14 2022/08/16 13:59:18 skrll Exp $ */
+/* $NetBSD: pci_machdep.h,v 1.15 2022/08/16 14:00:03 skrll Exp $ */
/* NetBSD: pci_machdep.h,v 1.3 1999/03/19 03:40:46 cgd Exp */
/*
@@ -66,6 +66,8 @@
pci_intr_handle_t *);
const char *(*pc_intr_string)(pci_chipset_tag_t,
pci_intr_handle_t, char *, size_t);
+ int (*pc_intr_setattr)(void *, pci_intr_handle_t *,
+ int, uint64_t);
void *(*pc_intr_establish)(pci_chipset_tag_t,
pci_intr_handle_t, int, int (*)(void *), void *);
void (*pc_intr_disestablish)(pci_chipset_tag_t, void *);
@@ -103,4 +105,13 @@
#define pci_conf_hook(c, b, d, f, i) \
(*(c)->pc_conf_hook)((c), (b), (d), (f), (i))
+static inline int
+pci_intr_setattr(pci_chipset_tag_t pc, pci_intr_handle_t *ihp,
+ int attr, uint64_t data)
+{
+ if (!pc->pc_intr_setattr)
+ return ENODEV;
+ return pc->pc_intr_setattr(pc, ihp, attr, data);
+}
+
#endif /* _MACHINE_PCI_MACHDEP_H_ */
Home |
Main Index |
Thread Index |
Old Index