From dabc7fa76423340f1e5c6898614172cb3326c696 Mon Sep 17 00:00:00 2001 From: knakahara Date: Fri, 23 Oct 2015 08:40:08 +0000 Subject: [PATCH] fix build failure on dreamcast. --- sys/arch/dreamcast/dev/g2/gapspci_pci.c | 8 ++++---- sys/arch/dreamcast/include/pci_machdep.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/arch/dreamcast/dev/g2/gapspci_pci.c b/sys/arch/dreamcast/dev/g2/gapspci_pci.c index 0452e09cc25e..e8d3d711f363 100644 --- a/sys/arch/dreamcast/dev/g2/gapspci_pci.c +++ b/sys/arch/dreamcast/dev/g2/gapspci_pci.c @@ -1,4 +1,4 @@ -/* $NetBSD: gapspci_pci.c,v 1.16 2015/10/02 05:22:50 msaitoh Exp $ */ +/* $NetBSD: gapspci_pci.c,v 1.17 2015/10/23 08:40:08 knakahara Exp $ */ /*- * Copyright (c) 2001 Marcus Comstedt. @@ -38,7 +38,7 @@ */ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: gapspci_pci.c,v 1.16 2015/10/02 05:22:50 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: gapspci_pci.c,v 1.17 2015/10/23 08:40:08 knakahara Exp $"); #include #include @@ -62,7 +62,7 @@ void gaps_decompose_tag(void *, pcitag_t, int *, int *, int *); pcireg_t gaps_conf_read(void *, pcitag_t, int); void gaps_conf_write(void *, pcitag_t, int, pcireg_t); -int gaps_intr_map(struct pci_attach_args *, pci_intr_handle_t *); +int gaps_intr_map(const struct pci_attach_args *, pci_intr_handle_t *); const char *gaps_intr_string(void *, pci_intr_handle_t, char *buf, size_t len); void *gaps_intr_establish(void *, pci_intr_handle_t, @@ -195,7 +195,7 @@ gaps_conf_write(void *v, pcitag_t tag, int reg, pcireg_t val) } int -gaps_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp) +gaps_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp) { *ihp = SYSASIC_EVENT_EXT; diff --git a/sys/arch/dreamcast/include/pci_machdep.h b/sys/arch/dreamcast/include/pci_machdep.h index 8af798b59035..30cbc71422f4 100644 --- a/sys/arch/dreamcast/include/pci_machdep.h +++ b/sys/arch/dreamcast/include/pci_machdep.h @@ -1,4 +1,4 @@ -/* $NetBSD: pci_machdep.h,v 1.8 2014/03/29 19:28:27 christos Exp $ */ +/* $NetBSD: pci_machdep.h,v 1.9 2015/10/23 08:40:08 knakahara Exp $ */ /*- * Copyright (c) 2001 Marcus Comstedt @@ -65,7 +65,7 @@ struct dreamcast_pci_chipset { void *pc_intr_v; - int (*pc_intr_map)(struct pci_attach_args *, + int (*pc_intr_map)(const struct pci_attach_args *, pci_intr_handle_t *); const char *(*pc_intr_string)(void *, pci_intr_handle_t, char *, size_t);