Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/pci Remove the "first" argument from pci_kn30...
details: https://anonhg.NetBSD.org/src/rev/c6b0419e4635
branches: trunk
changeset: 984040:c6b0419e4635
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sat Jun 19 16:13:40 2021 +0000
description:
Remove the "first" argument from pci_kn300_pickintr(). It's redundant with
information we already have, and is a needless divergence from other
"pickintr" routines.
diffstat:
sys/arch/alpha/pci/mcpcia.c | 8 +++-----
sys/arch/alpha/pci/pci_kn300.c | 8 ++++----
sys/arch/alpha/pci/pci_kn300.h | 4 ++--
3 files changed, 9 insertions(+), 11 deletions(-)
diffs (84 lines):
diff -r 5bade2f7c32b -r c6b0419e4635 sys/arch/alpha/pci/mcpcia.c
--- a/sys/arch/alpha/pci/mcpcia.c Sat Jun 19 16:05:07 2021 +0000
+++ b/sys/arch/alpha/pci/mcpcia.c Sat Jun 19 16:13:40 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mcpcia.c,v 1.32 2021/06/18 22:17:53 thorpej Exp $ */
+/* $NetBSD: mcpcia.c,v 1.33 2021/06/19 16:13:40 thorpej Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: mcpcia.c,v 1.32 2021/06/18 22:17:53 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mcpcia.c,v 1.33 2021/06/19 16:13:40 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -126,7 +126,6 @@
static void
mcpciaattach(device_t parent, device_t self, void *aux)
{
- static int first = 1;
struct mcbus_dev_attach_args *ma = aux;
struct mcpcia_softc *mcp = device_private(self);
struct mcpcia_config *ccp;
@@ -174,8 +173,7 @@
/*
* Set up interrupts
*/
- pci_kn300_pickintr(ccp, first);
- first = 0;
+ pci_kn300_pickintr(ccp);
/*
* Attach PCI bus
diff -r 5bade2f7c32b -r c6b0419e4635 sys/arch/alpha/pci/pci_kn300.c
--- a/sys/arch/alpha/pci/pci_kn300.c Sat Jun 19 16:05:07 2021 +0000
+++ b/sys/arch/alpha/pci/pci_kn300.c Sat Jun 19 16:13:40 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_kn300.c,v 1.38 2020/09/25 03:40:11 thorpej Exp $ */
+/* $NetBSD: pci_kn300.c,v 1.39 2021/06/19 16:13:40 thorpej Exp $ */
/*
* Copyright (c) 1998 by Matthew Jacob
@@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: pci_kn300.c,v 1.38 2020/09/25 03:40:11 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_kn300.c,v 1.39 2021/06/19 16:13:40 thorpej Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -85,12 +85,12 @@
static void kn300_disable_intr(struct mcpcia_config *, int);
void
-pci_kn300_pickintr(struct mcpcia_config *ccp, int first)
+pci_kn300_pickintr(struct mcpcia_config *ccp)
{
char *cp;
pci_chipset_tag_t pc = &ccp->cc_pc;
- if (first) {
+ if (kn300_pci_intr == NULL) {
int g;
#define PCI_KN300_IRQ_STR 16
diff -r 5bade2f7c32b -r c6b0419e4635 sys/arch/alpha/pci/pci_kn300.h
--- a/sys/arch/alpha/pci/pci_kn300.h Sat Jun 19 16:05:07 2021 +0000
+++ b/sys/arch/alpha/pci/pci_kn300.h Sat Jun 19 16:13:40 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_kn300.h,v 1.3 2009/03/14 14:45:53 dsl Exp $ */
+/* $NetBSD: pci_kn300.h,v 1.4 2021/06/19 16:13:40 thorpej Exp $ */
/*
* Copyright (c) 1998 by Matthew Jacob
@@ -30,4 +30,4 @@
* SUCH DAMAGE.
*/
-void pci_kn300_pickintr(struct mcpcia_config *, int);
+void pci_kn300_pickintr(struct mcpcia_config *);
Home |
Main Index |
Thread Index |
Old Index