Module Name:    src
Committed By:   pooka
Date:           Tue Aug 26 10:58:13 UTC 2014

Modified Files:
        src/sys/rump/dev/lib/libpci: rumpdev_pci.c

Log Message:
Implement pci_intr_setattr()

(well, kinda.  it just ignores the MPSAFE param for now, but that's
easy to fix later)


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/rump/dev/lib/libpci/rumpdev_pci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/dev/lib/libpci/rumpdev_pci.c
diff -u src/sys/rump/dev/lib/libpci/rumpdev_pci.c:1.3 src/sys/rump/dev/lib/libpci/rumpdev_pci.c:1.4
--- src/sys/rump/dev/lib/libpci/rumpdev_pci.c:1.3	Tue Apr 15 13:47:06 2014
+++ src/sys/rump/dev/lib/libpci/rumpdev_pci.c	Tue Aug 26 10:58:13 2014
@@ -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 @@ pci_intr_establish(pci_chipset_tag_t pc,
 	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)
 {

Reply via email to