Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/include Provide a pci_intr_setattr implementati...
details: https://anonhg.NetBSD.org/src/rev/0a7b4dbed979
branches: trunk
changeset: 353083:0a7b4dbed979
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Wed Apr 19 12:58:59 2017 +0000
description:
Provide a pci_intr_setattr implementation. For chipset tags that don't
implement pc_intr_setattr, simply return ENODEV.
diffstat:
sys/arch/arm/include/pci_machdep.h | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diffs (32 lines):
diff -r b5728d83ca4a -r 0a7b4dbed979 sys/arch/arm/include/pci_machdep.h
--- a/sys/arch/arm/include/pci_machdep.h Wed Apr 19 12:26:00 2017 +0000
+++ b/sys/arch/arm/include/pci_machdep.h Wed Apr 19 12:58:59 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_machdep.h,v 1.11 2017/04/16 18:02:50 jmcneill Exp $ */
+/* $NetBSD: pci_machdep.h,v 1.12 2017/04/19 12:58:59 jmcneill Exp $ */
/*
* Modified for arm32 by Mark Brinicombe
@@ -37,6 +37,8 @@
* Machine-specific definitions for PCI autoconfiguration.
*/
+#include <sys/errno.h>
+
/*
* Types provided to machine-independent PCI code
*/
@@ -116,4 +118,13 @@
#define pci_conf_interrupt(c, b, d, i, s, p) \
(*(c)->pc_conf_interrupt)((c)->pc_conf_v, (b), (d), (i), (s), (p))
+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 /* _ARM_PCI_MACHDEP_H_ */
Home |
Main Index |
Thread Index |
Old Index