Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/include Provide pci_intr_setattr
details: https://anonhg.NetBSD.org/src/rev/59637f2f0682
branches: trunk
changeset: 369420:59637f2f0682
user: skrll <skrll%NetBSD.org@localhost>
date: Tue Aug 16 13:50:54 2022 +0000
description:
Provide pci_intr_setattr
diffstat:
sys/arch/mips/include/pci_machdep.h | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diffs (34 lines):
diff -r ddf3c1e570d2 -r 59637f2f0682 sys/arch/mips/include/pci_machdep.h
--- a/sys/arch/mips/include/pci_machdep.h Tue Aug 16 13:23:12 2022 +0000
+++ b/sys/arch/mips/include/pci_machdep.h Tue Aug 16 13:50:54 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_machdep.h,v 1.9 2020/07/26 08:08:41 simonb Exp $ */
+/* $NetBSD: pci_machdep.h,v 1.10 2022/08/16 13:50:54 skrll Exp $ */
/*
* Copyright (c) 1996 Carnegie-Mellon University.
@@ -68,6 +68,8 @@
const char *(*pc_intr_string)(void *, pci_intr_handle_t,
char *, size_t);
const struct evcnt *(*pc_intr_evcnt)(void *, pci_intr_handle_t);
+ int (*pc_intr_setattr)(void *, pci_intr_handle_t *,
+ int, uint64_t);
void *(*pc_intr_establish)(void *, pci_intr_handle_t,
int, int (*)(void *), void *);
void (*pc_intr_disestablish)(void *, void *);
@@ -110,6 +112,15 @@
#define pci_conf_interrupt(c, b, d, p, s, lp) \
(*(c)->pc_conf_interrupt)((c)->pc_intr_v, (b), (d), (p), (s), (lp))
+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);
+}
+
/*
* mips-specific PCI functions.
* NOT TO BE USED DIRECTLY BY MACHINE INDEPENDENT CODE.
Home |
Main Index |
Thread Index |
Old Index