Fix copyright, add CVS version, and cleanup comments.
This commit is contained in:
parent
9f5abcb930
commit
ada7451e87
|
@ -1,35 +1,71 @@
|
|||
/* RTC toolkit version 1.08b, copyright 1995, erik vogan
|
||||
/* $NetBSD: pram.h,v 1.2 1995/02/16 00:02:12 briggs Exp $ */
|
||||
|
||||
all rights and priveledges to this code hereby donated
|
||||
to the ALICE group for use in NetBSD. see their copy-
|
||||
right for further restrictions, etc, blah, blah.
|
||||
/*
|
||||
* RTC toolkit version 1.08b, copyright 1995, erik vogan
|
||||
*
|
||||
* All rights and privledges to this code hereby donated
|
||||
* to the ALICE group for use in NetBSD. see the copyright
|
||||
* below for more info...
|
||||
*/
|
||||
/*
|
||||
* Copyright (c) 1995 Erik Vogan
|
||||
* All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to the Alice Group
|
||||
* by Erik Vogan.
|
||||
*
|
||||
* 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. All advertising materials mentioning features or use of this software
|
||||
* must display the following acknowledgement:
|
||||
* This product includes software developed by the Alice Group.
|
||||
* 4. The names of the Alice Group or any of its members may not be used
|
||||
* to endorse or promote products derived from this software without
|
||||
* specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE ALICE GROUP ``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 ALICE GROUP 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.
|
||||
*/
|
||||
|
||||
C interface header - this does nothing more interesting
|
||||
than to provide the function delcarations for the C
|
||||
interfaces to the assembly language routines.
|
||||
written 2/8/95 emv */
|
||||
/*
|
||||
* In the following functions, addr is a pointer to the data to read/write
|
||||
* from/to PRAM (bytes) and loc is the PRAM address to read/write, and len
|
||||
* is the number of consecutive bytes to read/write.
|
||||
*
|
||||
* possible values for: loc len
|
||||
* read/writePram $00-$13 ** $01-10 **
|
||||
* read/writeExtPram $00-$ff $00-ff
|
||||
*
|
||||
* ** - due to the way the PRAM is set up, $00-0f must be read with one
|
||||
* command, and $10-$13 must be read with another. Please, do not
|
||||
* attempt to read across the $0f/$10 boundary!! You have been
|
||||
* warned!!
|
||||
*/
|
||||
|
||||
void readPram (char *addr, int loc, int len);
|
||||
void writePram (char *addr, int loc, int len);
|
||||
void readExtPram (char *addr, int loc, int len);
|
||||
void writeExtPram(char *addr, int loc, int len);
|
||||
|
||||
/* where addr is a pointer to the data to write/read from/to PRAM (bytes)
|
||||
and loc is the PRAM address to read/write, and len is the number of
|
||||
contisecutive bytes to write/read.
|
||||
|
||||
possible values for: loc len
|
||||
read/writePram $00-$13 ** $01-10 **
|
||||
read/writeExtPram $00-$ff $00-ff
|
||||
|
||||
** - due to the way the PRAM is set up, $00-0f must be read with one
|
||||
command, and $10-$13 must be read with another. Please, do not
|
||||
attempt to read across the $0f/$10 boundary!! You have been
|
||||
warned!!
|
||||
*/
|
||||
/*
|
||||
* The following routines are used to get/set the PRAM time
|
||||
* (which is stored as seconds since 1904).
|
||||
*/
|
||||
|
||||
unsigned long getPramTime(void);
|
||||
void setPramTime(unsigned long time);
|
||||
|
||||
/* obviously these routines are used to get/set the PRAM time, which I might
|
||||
mention is in seconds since 1904!!! */
|
||||
|
|
Loading…
Reference in New Issue