Module Name: src
Committed By: dyoung
Date: Wed Apr 6 01:32:06 UTC 2011
Modified Files:
src/sys/arch/landisk/include: pci_machdep.h
src/sys/arch/landisk/landisk: shpcic_machdep.c
Log Message:
Fix fallout from pci_attach_args constification.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/landisk/include/pci_machdep.h
cvs rdiff -u -r1.2 -r1.3 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.1 src/sys/arch/landisk/include/pci_machdep.h:1.2
--- src/sys/arch/landisk/include/pci_machdep.h:1.1 Fri Sep 1 21:26:18 2006
+++ src/sys/arch/landisk/include/pci_machdep.h Wed Apr 6 01:32:06 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_machdep.h,v 1.1 2006/09/01 21:26:18 uwe Exp $ */
+/* $NetBSD: pci_machdep.h,v 1.2 2011/04/06 01:32:06 dyoung Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
@@ -57,7 +57,7 @@
*/
void landisk_pci_attach_hook(struct device *, struct device *,
struct pcibus_attach_args *);
-int landisk_pci_intr_map(struct pci_attach_args *, pci_intr_handle_t *);
+int landisk_pci_intr_map(const struct pci_attach_args *, pci_intr_handle_t *);
const char *landisk_pci_intr_string(pci_chipset_tag_t, pci_intr_handle_t);
const struct evcnt *landisk_pci_intr_evcnt(pci_chipset_tag_t,pci_intr_handle_t);
void *landisk_pci_intr_establish(pci_chipset_tag_t, pci_intr_handle_t, int,
Index: src/sys/arch/landisk/landisk/shpcic_machdep.c
diff -u src/sys/arch/landisk/landisk/shpcic_machdep.c:1.2 src/sys/arch/landisk/landisk/shpcic_machdep.c:1.3
--- src/sys/arch/landisk/landisk/shpcic_machdep.c:1.2 Sun Aug 2 00:06:44 2009
+++ src/sys/arch/landisk/landisk/shpcic_machdep.c Wed Apr 6 01:32:06 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: shpcic_machdep.c,v 1.2 2009/08/02 00:06:44 nonaka Exp $ */
+/* $NetBSD: shpcic_machdep.c,v 1.3 2011/04/06 01:32:06 dyoung 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.2 2009/08/02 00:06:44 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: shpcic_machdep.c,v 1.3 2011/04/06 01:32:06 dyoung Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -89,7 +89,7 @@
}
int
-landisk_pci_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
+landisk_pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
{
int pin = pa->pa_intrpin;
int line = pa->pa_intrline;