RTEMS  5.1
nvram.h
1 /*
2  * nvram.h -- DS1307-based non-volatile memory device driver.
3  *
4  * This driver support file-like operations to 56-bytes long non-volatile
5  * memory of DS1307 I2C real-time clock chip.
6  *
7  * Copyright (C) 2000 OKTET Ltd., St.-Petersburg, Russia
8  * Author: Victor V. Vengerov <vvv@oktet.ru>
9  *
10  * The license and distribution terms for this file may be
11  * found in the file LICENSE in this distribution or at
12  *
13  * http://www.rtems.org/license/LICENSE.
14  */
15 
16 #ifndef __DRIVER__NVRAM_H__
17 #define __DRIVER__NVRAM_H__
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 #define NVRAM_DRIVER_TABLE_ENTRY \
24  { nvram_driver_initialize, nvram_driver_open, nvram_driver_close, \
25  nvram_driver_read, nvram_driver_write, NULL }
26 
27 /* nvram_driver_initialize --
28  * Non-volatile memory device driver initialization.
29  */
31 nvram_driver_initialize(rtems_device_major_number major,
32  rtems_device_minor_number minor,
33  void *arg);
34 
35 /* nvram_driver_open --
36  * Non-volatile memory device driver open primitive.
37  */
39 nvram_driver_open(rtems_device_major_number major,
40  rtems_device_minor_number minor,
41  void *arg);
42 
43 /* nvram_driver_close --
44  * Non-volatile memory device driver close primitive.
45  */
47 nvram_driver_close(rtems_device_major_number major,
48  rtems_device_minor_number minor,
49  void *arg);
50 
51 /* nvram_driver_read --
52  * Non-volatile memory device driver read primitive.
53  */
55 nvram_driver_read(rtems_device_major_number major,
56  rtems_device_minor_number minor,
57  void *arg);
58 
59 /* nvram_driver_write --
60  * Non-volatile memory device driver write primitive.
61  */
63 nvram_driver_write(rtems_device_major_number major,
64  rtems_device_minor_number minor,
65  void *arg);
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
71 #endif /* __VFDDRV_H__ */
rtems_status_code
Classic API Status.
Definition: status.h:43