OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [powerpc/] [ppcn_60x/] [include/] [nvram.h] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
2
 *  This file contains the NvRAM driver definitions for the PPCn_60x
3
 *
4
 *  COPYRIGHT (c) 1998 by Radstone Technology
5
 *
6
 *
7
 * THIS FILE IS PROVIDED TO YOU, THE USER, "AS IS", WITHOUT WARRANTY OF ANY
8
 * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
9
 * IMPLIED WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK
10
 * AS TO THE QUALITY AND PERFORMANCE OF ALL CODE IN THIS FILE IS WITH YOU.
11
 *
12
 * You are hereby granted permission to use, copy, modify, and distribute
13
 * this file, provided that this notice, plus the above copyright notice
14
 * and disclaimer, appears in all copies. Radstone Technology will provide
15
 * no support for this code.
16
 *
17
 */
18
 
19
#ifndef _NVRAM_H
20
#define _NVRAM_H
21
 
22
#ifdef __cplusplus
23
extern "C" {
24
#endif
25
 
26
/*
27
 *  This initializes the NvRAM driver
28
 */
29
 
30
void InitializeNvRAM(void);
31
 
32
 
33
/*
34
 * These routines access data in the NvRAM's OS area
35
 */
36
extern rtems_status_code ReadNvRAM8(unsigned32 ulOffset, unsigned8 *pucData);
37
extern rtems_status_code WriteNvRAM8(unsigned32 ulOffset, unsigned8 ucValue);
38
extern rtems_status_code ReadNvRAM16(unsigned32 ulOffset, unsigned16 *pusData);
39
extern rtems_status_code WriteNvRAM16(unsigned32 ulOffset, unsigned16 usValue);
40
extern rtems_status_code ReadNvRAM32(unsigned32 ulOffset, unsigned32 *pulData);
41
extern rtems_status_code WriteNvRAM32(unsigned32 ulOffset, unsigned32 ulValue);
42
rtems_status_code ReadNvRAMBlock(
43
  unsigned32 ulOffset, unsigned8 *pucData, unsigned32 length);
44
rtems_status_code WriteNvRAMBlock(
45
  unsigned32 ulOffset, unsigned8 *ucValue, unsigned32 length);
46
/*
47
 * This routine returns the size of the NvRAM
48
 */
49
extern unsigned32 SizeNvRAM();
50
 
51
/*
52
 * This routine commits changes to the NvRAM
53
 */
54
extern void CommitNvRAM();
55
 
56
#ifdef __cplusplus
57
}
58
#endif
59
 
60
#endif /* _NVRAM_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.