Module Name:    src
Committed By:   riastradh
Date:           Sat Oct 29 11:04:23 UTC 2022

Modified Files:
        src/sys/arch/landisk/include: pci_machdep.h
        src/sys/arch/landisk/landisk: shpcic_machdep.c

Log Message:
landisk: Add stub pci_intr_setattr.

No MP on sh4 as far as I know so no need to do anything for
PCI_INTR_MPSAFE.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/landisk/include/pci_machdep.h
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/landisk/landisk/shpcic_machdep.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/arch/landisk/include/pci_machdep.h
diff -u src/sys/arch/landisk/include/pci_machdep.h:1.5 src/sys/arch/landisk/include/pci_machdep.h:1.6
--- src/sys/arch/landisk/include/pci_machdep.h:1.5	Sat Mar 29 23:51:02 2014
+++ src/sys/arch/landisk/include/pci_machdep.h	Sat Oct 29 11:04:23 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: pci_machdep.h,v 1.5 2014/03/29 23:51:02 joerg Exp $	*/
+/*	$NetBSD: pci_machdep.h,v 1.6 2022/10/29 11:04:23 riastradh Exp $	*/
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All rights reserved.
@@ -58,6 +58,8 @@ struct pci_attach_args;
 void landisk_pci_attach_hook(device_t, device_t,
     struct pcibus_attach_args *);
 int landisk_pci_intr_map(const struct pci_attach_args *, pci_intr_handle_t *);
+int landisk_pci_intr_setattr(const struct pci_attach_args *,
+    pci_intr_handle_t *, int, uint64_t);
 const char *landisk_pci_intr_string(pci_chipset_tag_t, pci_intr_handle_t,
     char *, size_t);
 const struct evcnt *landisk_pci_intr_evcnt(pci_chipset_tag_t,pci_intr_handle_t);
@@ -83,6 +85,8 @@ int landisk_pci_conf_hook(void *, int, i
 	landisk_pci_attach_hook(pa, self, pba)
 #define	pci_intr_map(pa, ihp) \
 	landisk_pci_intr_map(pa, ihp)
+#define	pci_intr_setattr(pa, ihp, attr, data) \
+	landisk_pci_intr_setattr(pa, ihp, attr, data)
 #define	pci_intr_string(v, ih, buf, len) \
 	landisk_pci_intr_string(v, ih, buf, len)
 #define	pci_intr_evcnt(v, ih) \

Index: src/sys/arch/landisk/landisk/shpcic_machdep.c
diff -u src/sys/arch/landisk/landisk/shpcic_machdep.c:1.7 src/sys/arch/landisk/landisk/shpcic_machdep.c:1.8
--- src/sys/arch/landisk/landisk/shpcic_machdep.c:1.7	Sat Mar 29 19:28:29 2014
+++ src/sys/arch/landisk/landisk/shpcic_machdep.c	Sat Oct 29 11:04:23 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: shpcic_machdep.c,v 1.7 2014/03/29 19:28:29 christos Exp $	*/
+/*	$NetBSD: shpcic_machdep.c,v 1.8 2022/10/29 11:04:23 riastradh Exp $	*/
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All rights reserved.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: shpcic_machdep.c,v 1.7 2014/03/29 19:28:29 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: shpcic_machdep.c,v 1.8 2022/10/29 11:04:23 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -117,6 +117,19 @@ bad:
 	return 1;
 }
 
+int
+landisk_pci_intr_setattr(const struct pci_attach_args *pa,
+    pci_intr_handle_t *ihp, int attr, uint64_t data)
+{
+
+	switch (attr) {
+	case PCI_INTR_MPSAFE:
+		return 0;
+	default:
+		return ENODEV;
+	}
+}
+
 const char *
 landisk_pci_intr_string(void *v, pci_intr_handle_t ih, char *buf, size_t len)
 {

Reply via email to