s,#ifdef MIPS3,#if defined(MIPS3) || defined(MIPS64),g
This commit is contained in:
parent
82ca9dba92
commit
5e061c633c
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus.c,v 1.32 2004/09/29 04:06:52 sekiya Exp $ */
|
||||
/* $NetBSD: bus.c,v 1.33 2004/10/01 07:16:57 sekiya Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -38,7 +38,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: bus.c,v 1.32 2004/09/29 04:06:52 sekiya Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: bus.c,v 1.33 2004/10/01 07:16:57 sekiya Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -94,7 +94,7 @@ sgimips_bus_dma_init(void)
|
||||
break;
|
||||
#endif
|
||||
|
||||
#ifdef MIPS3
|
||||
#if defined(MIPS3) || defined(MIPS64)
|
||||
/* >=R4000*/
|
||||
case MACH_SGI_IP20:
|
||||
case MACH_SGI_IP22:
|
||||
@ -235,7 +235,7 @@ bus_space_write_4(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t o, u_i
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef MIPS3
|
||||
#if defined(MIPS3) || defined(MIPS64)
|
||||
u_int64_t
|
||||
bus_space_read_8(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t o)
|
||||
{
|
||||
@ -275,7 +275,7 @@ bus_space_write_8(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t o, u_i
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif /* MIPS3 */
|
||||
#endif /* MIPS3 || MIPS64 */
|
||||
|
||||
int
|
||||
bus_space_map(bus_space_tag_t t, bus_addr_t bpa, bus_size_t size,
|
||||
@ -767,7 +767,7 @@ _bus_dmamap_sync_mips1(bus_dma_tag_t t, bus_dmamap_t map, bus_addr_t offset,
|
||||
}
|
||||
#endif /* MIPS1 */
|
||||
|
||||
#ifdef MIPS3
|
||||
#if defined(MIPS3) || defined(MIPS64)
|
||||
/*
|
||||
* Common function for DMA map synchronization. May be called
|
||||
* by chipset-specific DMA map synchronization functions.
|
||||
@ -922,7 +922,7 @@ _bus_dmamap_sync_mips3(bus_dma_tag_t t, bus_dmamap_t map, bus_addr_t offset,
|
||||
len -= minlen;
|
||||
}
|
||||
}
|
||||
#endif /* MIPS3 */
|
||||
#endif /* MIPS3 || MIPS64 */
|
||||
|
||||
/*
|
||||
* Common function for DMA-safe memory allocation. May be called
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: clock.c,v 1.13 2004/04/10 22:48:12 pooka Exp $ */
|
||||
/* $NetBSD: clock.c,v 1.14 2004/10/01 07:16:57 sekiya Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -79,7 +79,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.13 2004/04/10 22:48:12 pooka Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.14 2004/10/01 07:16:57 sekiya Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/device.h>
|
||||
@ -155,7 +155,7 @@ cpu_initclocks()
|
||||
if (clockfns == NULL)
|
||||
panic("cpu_initclocks: clock device not attached");
|
||||
|
||||
#ifdef MIPS3
|
||||
#if defined(MIPS3) || defined(MIPS64)
|
||||
if (mach_type != MACH_SGI_IP12) {
|
||||
next_clk_intr = mips3_cp0_count_read()
|
||||
+ curcpu()->ci_cycles_per_hz;
|
||||
@ -172,7 +172,7 @@ cpu_initclocks()
|
||||
tickfixinterval = hz >> (ftp - 1);
|
||||
}
|
||||
}
|
||||
#endif /* MIPS3 */
|
||||
#endif /* MIPS3 || MIPS64 */
|
||||
|
||||
(*clockfns->cf_init)(clockdev);
|
||||
}
|
||||
@ -285,7 +285,7 @@ mips1_clkread()
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef MIPS3
|
||||
#if defined(MIPS3) || defined(MIPS64)
|
||||
void
|
||||
mips3_clock_intr(u_int32_t status, u_int32_t cause, u_int32_t pc,
|
||||
u_int32_t ipending)
|
||||
@ -325,4 +325,4 @@ mips3_clkread()
|
||||
MIPS_COUNT_TO_MHZ(curcpu(), count, res);
|
||||
return (res);
|
||||
}
|
||||
#endif /* MIPS3 */
|
||||
#endif /* MIPS3 || MIPS64 */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.85 2004/04/11 12:17:10 pooka Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.86 2004/10/01 07:16:57 sekiya Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Soren S. Jorvang
|
||||
@ -34,7 +34,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.85 2004/04/11 12:17:10 pooka Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.86 2004/10/01 07:16:57 sekiya Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -414,7 +414,7 @@ mach_init(int argc, char **argv, int magic, struct btinfo_common *btinfo)
|
||||
platform.clkread = mips1_clkread;
|
||||
break;
|
||||
#endif /* MIPS1 */
|
||||
#ifdef MIPS3
|
||||
#if defined(MIPS3) || defined(MIPS64)
|
||||
case MACH_SGI_IP20:
|
||||
i = *(volatile u_int32_t *)MIPS_PHYS_TO_KSEG1(0x1fbd0000);
|
||||
mach_boardrev = (i & 0x7000) >> 12;
|
||||
@ -442,7 +442,7 @@ mach_init(int argc, char **argv, int magic, struct btinfo_common *btinfo)
|
||||
platform.intr5 = mips3_clock_intr;
|
||||
platform.clkread = mips3_clkread;
|
||||
break;
|
||||
#endif /* MIPS3 */
|
||||
#endif /* MIPS3 || MIPS64 */
|
||||
default:
|
||||
panic("IP%d architecture not supported", mach_type);
|
||||
break;
|
||||
@ -829,7 +829,7 @@ void ddb_trap_hook(int where)
|
||||
|
||||
void mips_machdep_cache_config(void)
|
||||
{
|
||||
#if defined(MIPS3)
|
||||
#if defined(MIPS3) || defined(MIPS64)
|
||||
volatile u_int32_t cpu_config;
|
||||
|
||||
arcbios_tree_walk(mips_machdep_find_l2cache, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user