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 Use the default implementation of attach_...
details: https://anonhg.NetBSD.org/src/rev/cf94cad7c6fb
branches: trunk
changeset: 379885:cf94cad7c6fb
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri Jun 25 03:46:30 2021 +0000
description:
Use the default implementation of attach_hook().
diffstat:
sys/arch/alpha/pci/dwlpx_pci.c | 12 ++----------
sys/arch/alpha/pci/mcpcia_pci.c | 12 ++----------
2 files changed, 4 insertions(+), 20 deletions(-)
diffs (94 lines):
diff -r 275e31ab765b -r cf94cad7c6fb sys/arch/alpha/pci/dwlpx_pci.c
--- a/sys/arch/alpha/pci/dwlpx_pci.c Fri Jun 25 03:45:59 2021 +0000
+++ b/sys/arch/alpha/pci/dwlpx_pci.c Fri Jun 25 03:46:30 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwlpx_pci.c,v 1.20 2021/05/07 16:58:34 thorpej Exp $ */
+/* $NetBSD: dwlpx_pci.c,v 1.21 2021/06/25 03:46:30 thorpej Exp $ */
/*
* Copyright (c) 1997 by Matthew Jacob
@@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: dwlpx_pci.c,v 1.20 2021/05/07 16:58:34 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwlpx_pci.c,v 1.21 2021/06/25 03:46:30 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -47,8 +47,6 @@
#define KV(_addr) ((void *)ALPHA_PHYS_TO_K0SEG((_addr)))
-static void dwlpx_attach_hook(device_t, device_t,
- struct pcibus_attach_args *);
static int dwlpx_bus_maxdevs(void *, int);
static pcitag_t dwlpx_make_tag(void *, int, int, int);
static void dwlpx_decompose_tag(void *, pcitag_t, int *, int *,
@@ -60,7 +58,6 @@ void
dwlpx_pci_init(pci_chipset_tag_t pc, void *v)
{
pc->pc_conf_v = v;
- pc->pc_attach_hook = dwlpx_attach_hook;
pc->pc_bus_maxdevs = dwlpx_bus_maxdevs;
pc->pc_make_tag = dwlpx_make_tag;
pc->pc_decompose_tag = dwlpx_decompose_tag;
@@ -68,11 +65,6 @@ dwlpx_pci_init(pci_chipset_tag_t pc, voi
pc->pc_conf_write = dwlpx_conf_write;
}
-static void
-dwlpx_attach_hook(device_t parent, device_t self, struct pcibus_attach_args *pba)
-{
-}
-
static int
dwlpx_bus_maxdevs(void *cpv, int busno)
{
diff -r 275e31ab765b -r cf94cad7c6fb sys/arch/alpha/pci/mcpcia_pci.c
--- a/sys/arch/alpha/pci/mcpcia_pci.c Fri Jun 25 03:45:59 2021 +0000
+++ b/sys/arch/alpha/pci/mcpcia_pci.c Fri Jun 25 03:46:30 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mcpcia_pci.c,v 1.13 2021/05/07 16:58:34 thorpej Exp $ */
+/* $NetBSD: mcpcia_pci.c,v 1.14 2021/06/25 03:46:54 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: mcpcia_pci.c,v 1.13 2021/05/07 16:58:34 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mcpcia_pci.c,v 1.14 2021/06/25 03:46:54 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -46,8 +46,6 @@
#define KV(_addr) ((void *)ALPHA_PHYS_TO_K0SEG((_addr)))
-static void mcpcia_attach_hook(device_t, device_t,
- struct pcibus_attach_args *);
static int mcpcia_bus_maxdevs(void *, int);
static pcitag_t mcpcia_make_tag(void *, int, int, int);
static void mcpcia_decompose_tag(void *, pcitag_t, int *, int *, int *);
@@ -58,7 +56,6 @@ void
mcpcia_pci_init(pci_chipset_tag_t pc, void *v)
{
pc->pc_conf_v = v;
- pc->pc_attach_hook = mcpcia_attach_hook;
pc->pc_bus_maxdevs = mcpcia_bus_maxdevs;
pc->pc_make_tag = mcpcia_make_tag;
pc->pc_decompose_tag = mcpcia_decompose_tag;
@@ -66,11 +63,6 @@ mcpcia_pci_init(pci_chipset_tag_t pc, vo
pc->pc_conf_write = mcpcia_conf_write;
}
-static void
-mcpcia_attach_hook(device_t parent, device_t self, struct pcibus_attach_args *pba)
-{
-}
-
static int
mcpcia_bus_maxdevs(void *cpv, int busno)
{
Home |
Main Index |
Thread Index |
Old Index