[BACK]Return to .sa11x0.c.swp CVS log [TXT][DIR] Up to [local] / sys / arch / arm / sa11x0

File: [local] / sys / arch / arm / sa11x0 / Attic / .sa11x0.c.swp (download)

Revision 1.1, Tue Mar 4 16:05:18 2008 UTC (16 years, 4 months ago) by nbrk
Branch: MAIN

Initial revision

b0VIM 7.1OG_&nbrkdev.my.domain/usr/src/sys/arch/arm/sa11x0/sa11x0.c	3210#"! UtpIJaXad(`I~}z8rf!

K

<$|y7

f

		=	>b52U4wHyuq[{6`_ *    notice, this list of conditions and the following disclaimer in the * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer. * 1. Redistributions of source code must retain the above copyright * are met: * modification, are permitted provided that the following conditions * Redistribution and use in source and binary forms, with or without * *         Shin Takemura and PocketBSD Project. All rights reserved. * Copyright (c) 1999/*- */ *    from this software without specific prior written permission. *    contributors may be used to endorse or promote products derived * 4. Neither the name of The NetBSD Foundation nor the names of its *      Foundation, Inc. and its contributors. *      This product includes software developed by the NetBSD *    must display the following acknowledgement: * 3. All advertising materials mentioning features or use of this software *    documentation and/or other materials provided with the distribution. *    notice, this list of conditions and the following disclaimer in the * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer. * 1. Redistributions of source code must retain the above copyright * are met: * modification, are permitted provided that the following conditions * Redistribution and use in source and binary forms, with or without * * by IWAMOTO Toshihiro and Ichiro FUKUHARA. * This code is derived from software contributed to The NetBSD Foundation * * Copyright (c) 2001, The NetBSD Foundation, Inc.  All rights reserved./*- */ * processor. This code is derived from arm/sa11x0/sa11x0.c * Autoconfiguration support for the Intel PXA2[15]0 application * * * POSSIBILITY OF SUCH DAMAGE. * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL GENETEC CORPORATION * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * THIS SOFTWARE IS PROVIDED BY GENETEC CORPORATION ``AS IS'' AND * *    written permission. *    promote products derived from this software without specific prior * 4. The name of Genetec Corporation may not be used to endorse or  *	Genetec Corporation. *	This product includes software developed for the NetBSD Project by *    must display the following acknowledgement: * 3. All advertising materials mentioning features or use of this software *    documentation and/or other materials provided with the distribution. *    notice, this list of conditions and the following disclaimer in the * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer. * 1. Redistributions of source code must retain the above copyright * are met: * modification, are permitted provided that the following conditions * Redistribution and use in source and binary forms, with or without * * Written by Hiroyuki Bessho for Genetec Corporation. * Copyright (c) 2002  Genetec Corporation.  All rights reserved./*/*	$NetBSD: pxa2x0.c,v 1.5 2003/12/12 16:42:44 thorpej Exp $ *//*	$OpenBSD: pxa2x0.c,v 1.11 2005/11/11 23:59:58 deraadt Exp $ */adan_^B32rlgCA)




S
C

vtsiOM54	gXW





l
j
i
d
N
L
*


		y	x	7	%			}	time.tv_usec = 0;	}		time.tv_sec = base;		printf("WARNING: using filesystem date -- CHECK AND RESET THE DATE!\n");	else {		time.tv_sec = rcnr;	if (rcnr > base)	/* XXX check how much RCNR differs from the filesystem date. */	rcnr = bus_space_read_4(sc->sc_bust, sc->sc_bush_rtc, SARTC_RCNR);	 * XXX reason, i.e. RCSR. */	/* XXX decide if RCNR can be valid, based on the last reset	u_int32_t rcnr;	struct saip_softc *sc = saip_sc;{inittodr(time_t base)void}	    (u_int32_t)time.tv_sec);	bus_space_write_4(sc->sc_bust, sc->sc_bush_rtc, SARTC_RCNR,	struct saip_softc *sc = saip_sc;{resettodr(void)void#endif /* 0 */}	return (bus_space_read_4(sc->sc_bust, sc->sc_bush_rtc, RTC_RCNR));	sc = saip_sc;	KDASSERT(saip_sc != NULL);	struct saip_softc *sc;{pxa2x0_rtc_getsecs(void)u_int32_t}	return (bus_space_read_4(sc->sc_bust, sc->sc_bush_rtc, RTC_RTAR));	sc = saip_sc;	KDASSERT(saip_sc != NULL);	struct saip_softc *sc;{pxa2x0_rtc_getalarm(void)u_int32_t}	splx(s);		    (rv | RTSR_AL | RTSR_ALE));		bus_space_write_4(sc->sc_bust, sc->sc_bush_rtc, RTC_RTSR,	else		    (rv | RTSR_AL) & ~RTSR_ALE);		bus_space_write_4(sc->sc_bust, sc->sc_bush_rtc, RTC_RTSR,	if (secs == 0)	rv = bus_space_read_4(sc->sc_bust, sc->sc_bush_rtc, RTC_RTSR);	bus_space_write_4(sc->sc_bust, sc->sc_bush_rtc, RTC_RTAR, secs);	s = splhigh();	sc = saip_sc;	KDASSERT(saip_sc != NULL);	int s;	u_int32_t rv;	struct saip_softc *sc;{pxa2x0_rtc_setalarm(u_int32_t secs)void#if 0#endif /* 0 */}	bus_space_write_4(sc->sc_bust, sc->sc_bush_clk, CLKMAN_CKEN, rv);		rv |= clk;	if (enable)	rv &= ~clk;	rv = bus_space_read_4(sc->sc_bust, sc->sc_bush_clk, CLKMAN_CKEN);	sc = saip_sc;	KDASSERT(saip_sc != NULL);	u_int32_t rv;	struct saip_softc *sc;{pxa2x0_clkman_config(u_int clk, int enable)void}	}		start[i] = PXA2X0_SDRAM0_START + (i * PXA2X0_SDRAM_BANK_SIZE);