Remove MD codes from arch/powerpc/ibm4xx.
This commit is contained in:
parent
2fa6ad9b68
commit
1a445aab8a
@ -1,79 +0,0 @@
|
||||
/* $NetBSD: autoconf.c,v 1.1 2005/01/13 17:11:14 shige Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2004 Shigeyuki Fukushima.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer in the documentation and/or other materials provided
|
||||
* with the distribution.
|
||||
* 3. The name of the author may not be used to endorse or promote
|
||||
* products derived from this software without specific prior
|
||||
* written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
|
||||
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
|
||||
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.1 2005/01/13 17:11:14 shige Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/device.h>
|
||||
#include <sys/conf.h>
|
||||
#include <sys/systm.h>
|
||||
|
||||
#include <machine/cpu.h>
|
||||
|
||||
/*
|
||||
* Machine-dependent functions
|
||||
* cpu_rootconf: sys/kern/init_main.c
|
||||
* device_register: sys/kern/subr_autoconf.c
|
||||
*/
|
||||
|
||||
/*
|
||||
* machine-dependent function pointers
|
||||
*/
|
||||
void (*md_device_register) __P((struct device *dev, void *aux)) = NULL;
|
||||
|
||||
/*
|
||||
* cpu_rootconf:
|
||||
* Setup root device.
|
||||
* Configure swap area.
|
||||
*/
|
||||
void
|
||||
cpu_rootconf(void)
|
||||
{
|
||||
|
||||
setroot(booted_device, booted_partition);
|
||||
}
|
||||
|
||||
/*
|
||||
* device_register:
|
||||
*/
|
||||
void
|
||||
device_register(struct device *dev, void *aux)
|
||||
{
|
||||
|
||||
/* 4xx common procedure is here. */
|
||||
;
|
||||
|
||||
/* machine-dependent procdure is here. */
|
||||
if (md_device_register != NULL)
|
||||
md_device_register(dev, aux);
|
||||
}
|
@ -1,136 +0,0 @@
|
||||
/* $NetBSD: machdep.c,v 1.2 2005/01/21 19:24:11 shige Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2004 Shigeyuki Fukushima.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer in the documentation and/or other materials provided
|
||||
* with the distribution.
|
||||
* 3. The name of the author may not be used to endorse or promote
|
||||
* products derived from this software without specific prior
|
||||
* written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
|
||||
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
|
||||
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.2 2005/01/21 19:24:11 shige Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
||||
#include <uvm/uvm_extern.h>
|
||||
|
||||
#include <net/netisr.h>
|
||||
|
||||
#include <machine/cpu.h>
|
||||
|
||||
/*
|
||||
* Machine-dependent global variables
|
||||
* exec_map: sys/uvm/uvm_extern.h
|
||||
* mb_map: sys/uvm/uvm_extern.h
|
||||
* phys_map: sys/uvm/uvm_extern.h
|
||||
* machine: sys/sys/systm.h
|
||||
* machine_arch: sys/sys/systm.h
|
||||
*/
|
||||
struct vm_map *exec_map = NULL;
|
||||
struct vm_map *mb_map = NULL;
|
||||
struct vm_map *phys_map = NULL;
|
||||
char machine[] = MACHINE; /* from <machine/param.h> */
|
||||
char machine_arch[] = MACHINE_ARCH; /* from <machine/param.h> */
|
||||
|
||||
/*
|
||||
* Machine-dependent functions
|
||||
* cpu_startup: sys/kern/init_main.c
|
||||
*/
|
||||
|
||||
/*
|
||||
* machine-dependent function pointers
|
||||
*/
|
||||
void (*md_consinit) __P((void)) = NULL;
|
||||
void (*md_cpu_startup) __P((void)) = NULL;
|
||||
|
||||
/*
|
||||
* consinit:
|
||||
* console initialize.
|
||||
*/
|
||||
void
|
||||
consinit(void)
|
||||
{
|
||||
|
||||
/* 4xx common procedure is here. */
|
||||
;
|
||||
|
||||
/* machine-dependent procedure is here. */
|
||||
if (md_consinit != NULL)
|
||||
md_consinit();
|
||||
}
|
||||
|
||||
/*
|
||||
* cpu_startup:
|
||||
* machine startup code.
|
||||
*/
|
||||
void
|
||||
cpu_startup(void)
|
||||
{
|
||||
|
||||
/* 4xx common procedure is here. */
|
||||
;
|
||||
|
||||
/* machine-dependent procedure is here. */
|
||||
if (md_cpu_startup != NULL)
|
||||
md_cpu_startup();
|
||||
}
|
||||
|
||||
/*
|
||||
* softnet:
|
||||
* Soft networking interrupts.
|
||||
*/
|
||||
void
|
||||
softnet(void)
|
||||
{
|
||||
int isr;
|
||||
|
||||
isr = netisr;
|
||||
netisr = 0;
|
||||
|
||||
#define DONETISR(bit, fn) do { \
|
||||
if (isr & (1 << bit)) \
|
||||
fn(); \
|
||||
} while (0)
|
||||
|
||||
#include <net/netisr_dispatch.h>
|
||||
#undef DONETISR
|
||||
}
|
||||
|
||||
/*
|
||||
* softserial:
|
||||
* Soft tty interrupts.
|
||||
*/
|
||||
#include "com.h"
|
||||
void
|
||||
softserial(void)
|
||||
{
|
||||
#if NCOM > 0
|
||||
void comsoft(void); /* XXX from dev/ic/com.c */
|
||||
|
||||
comsoft();
|
||||
#endif
|
||||
}
|
Loading…
Reference in New Issue
Block a user