Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/dev/lib/libpci Implement pci_intr_setattr()
details: https://anonhg.NetBSD.org/src/rev/e586cb7477bb
branches: trunk
changeset: 331831:e586cb7477bb
user: pooka <pooka%NetBSD.org@localhost>
date: Tue Aug 26 10:58:13 2014 +0000
description:
Implement pci_intr_setattr()
(well, kinda. it just ignores the MPSAFE param for now, but that's
easy to fix later)
diffstat:
sys/rump/dev/lib/libpci/rumpdev_pci.c | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diffs (38 lines):
diff -r 0e5795eec037 -r e586cb7477bb sys/rump/dev/lib/libpci/rumpdev_pci.c
--- a/sys/rump/dev/lib/libpci/rumpdev_pci.c Tue Aug 26 10:46:39 2014 +0000
+++ b/sys/rump/dev/lib/libpci/rumpdev_pci.c Tue Aug 26 10:58:13 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpdev_pci.c,v 1.3 2014/04/15 13:47:06 pooka Exp $ */
+/* $NetBSD: rumpdev_pci.c,v 1.4 2014/08/26 10:58:13 pooka Exp $ */
/*
* Copyright (c) 2013 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpdev_pci.c,v 1.3 2014/04/15 13:47:06 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpdev_pci.c,v 1.4 2014/08/26 10:58:13 pooka Exp $");
#include <sys/cdefs.h>
#include <sys/param.h>
@@ -147,6 +147,19 @@
return rumpcomp_pci_irq_establish(ih, func, arg);
}
+int
+pci_intr_setattr(pci_chipset_tag_t pc, pci_intr_handle_t *ih,
+ int attr, uint64_t data)
+{
+
+ switch (attr) {
+ case PCI_INTR_MPSAFE:
+ return 0;
+ default:
+ return ENODEV;
+ }
+}
+
void
pci_intr_disestablish(pci_chipset_tag_t pc, void *not_your_above_ih)
{
Home |
Main Index |
Thread Index |
Old Index