Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hppa/include Provide pci_intr_setattr (which does n...
details: https://anonhg.NetBSD.org/src/rev/258f04e49d27
branches: trunk
changeset: 369411:258f04e49d27
user: skrll <skrll%NetBSD.org@localhost>
date: Tue Aug 16 08:42:25 2022 +0000
description:
Provide pci_intr_setattr (which does nothing atm)
diffstat:
sys/arch/hppa/include/pci_machdep.h | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diffs (28 lines):
diff -r 4187cd59fa0a -r 258f04e49d27 sys/arch/hppa/include/pci_machdep.h
--- a/sys/arch/hppa/include/pci_machdep.h Tue Aug 16 08:40:33 2022 +0000
+++ b/sys/arch/hppa/include/pci_machdep.h Tue Aug 16 08:42:25 2022 +0000
@@ -53,6 +53,8 @@
pci_intr_handle_t *);
const char *(*pc_intr_string)(void *, pci_intr_handle_t,
char *, size_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 *);
@@ -86,6 +88,15 @@
#define pci_intr_disestablish(c, iv) \
(*(c)->pc_intr_disestablish)((c)->_cookie, (iv))
+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);
+}
+
#define pciide_machdep_compat_intr_establish(a, b, c, d, e) (NULL)
#define pciide_machdep_compat_intr_disestablish(a, b) ((void)(a), (void)(b))
Home |
Main Index |
Thread Index |
Old Index