Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/marvell catch up with pci_intr_string changes
details: https://anonhg.NetBSD.org/src/rev/d3633d2b400b
branches: trunk
changeset: 795011:d3633d2b400b
user: christos <christos%NetBSD.org@localhost>
date: Sun Mar 30 01:17:51 2014 +0000
description:
catch up with pci_intr_string changes
diffstat:
sys/dev/marvell/mvpex.c | 13 +++++--------
sys/dev/marvell/mvpexvar.h | 4 ++--
2 files changed, 7 insertions(+), 10 deletions(-)
diffs (61 lines):
diff -r 48af4e702969 -r d3633d2b400b sys/dev/marvell/mvpex.c
--- a/sys/dev/marvell/mvpex.c Sun Mar 30 01:15:03 2014 +0000
+++ b/sys/dev/marvell/mvpex.c Sun Mar 30 01:17:51 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mvpex.c,v 1.9 2014/03/15 13:33:48 kiyohara Exp $ */
+/* $NetBSD: mvpex.c,v 1.10 2014/03/30 01:17:51 christos Exp $ */
/*
* Copyright (c) 2008 KIYOHARA Takashi
* All rights reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mvpex.c,v 1.9 2014/03/15 13:33:48 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mvpex.c,v 1.10 2014/03/30 01:17:51 christos Exp $");
#include "opt_pci.h"
#include "pci.h"
@@ -620,10 +620,8 @@
/* ARGSUSED */
const char *
-mvpex_intr_string(void *v, pci_intr_handle_t pin)
+mvpex_intr_string(void *v, pci_intr_handle_t pin, char *buf size_t len)
{
- static char intrstr[32];
-
switch (pin) {
case PCI_INTERRUPT_PIN_A:
case PCI_INTERRUPT_PIN_B:
@@ -634,10 +632,9 @@
default:
return NULL;
}
- snprintf(intrstr, sizeof(intrstr), "interrupt pin INT%c#",
- (char)('A' - 1 + pin));
+ snprintf(buf, len, "interrupt pin INT%c#", (char)('A' - 1 + pin));
- return intrstr;
+ return buf;
}
/* ARGSUSED */
diff -r 48af4e702969 -r d3633d2b400b sys/dev/marvell/mvpexvar.h
--- a/sys/dev/marvell/mvpexvar.h Sun Mar 30 01:15:03 2014 +0000
+++ b/sys/dev/marvell/mvpexvar.h Sun Mar 30 01:17:51 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mvpexvar.h,v 1.4 2014/03/15 13:33:48 kiyohara Exp $ */
+/* $NetBSD: mvpexvar.h,v 1.5 2014/03/30 01:17:51 christos Exp $ */
/*
* Copyright (c) 2009 KIYOHARA Takashi
* All rights reserved.
@@ -70,7 +70,7 @@
int mvpex_conf_hook(void *, int, int, int, pcireg_t);
void mvpex_conf_interrupt(void *, int, int, int, int, int *);
int mvpex_intr_map(const struct pci_attach_args *, pci_intr_handle_t *);
-const char *mvpex_intr_string(void *, pci_intr_handle_t);
+const char *mvpex_intr_string(void *, pci_intr_handle_t, char *, size_t);
const struct evcnt *mvpex_intr_evcnt(void *, pci_intr_handle_t);
void *mvpex_intr_establish(void *, pci_intr_handle_t, int, int (*)(void *),
void *);
Home |
Main Index |
Thread Index |
Old Index