Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:46

0001 /*
0002  * nvram.h -- DS1307-based non-volatile memory device driver.
0003  *
0004  * This driver support file-like operations to 56-bytes long non-volatile
0005  * memory of DS1307 I2C real-time clock chip.
0006  *
0007  * Copyright (C) 2000 OKTET Ltd., St.-Petersburg, Russia
0008  * Author: Victor V. Vengerov <vvv@oktet.ru>
0009  *
0010  * The license and distribution terms for this file may be
0011  * found in the file LICENSE in this distribution or at
0012  *
0013  * http://www.rtems.org/license/LICENSE.
0014  */
0015 
0016 #ifndef __DRIVER__NVRAM_H__
0017 #define __DRIVER__NVRAM_H__
0018 
0019 #ifdef __cplusplus
0020 extern "C" {
0021 #endif
0022 
0023 #define NVRAM_DRIVER_TABLE_ENTRY \
0024   { nvram_driver_initialize, nvram_driver_open, nvram_driver_close, \
0025     nvram_driver_read, nvram_driver_write, NULL }
0026 
0027 /* nvram_driver_initialize --
0028  *     Non-volatile memory device driver initialization.
0029  */
0030 rtems_device_driver
0031 nvram_driver_initialize(rtems_device_major_number major,
0032                         rtems_device_minor_number minor,
0033                         void *arg);
0034 
0035 /* nvram_driver_open --
0036  *     Non-volatile memory device driver open primitive.
0037  */
0038 rtems_device_driver
0039 nvram_driver_open(rtems_device_major_number major,
0040                   rtems_device_minor_number minor,
0041                   void *arg);
0042 
0043 /* nvram_driver_close --
0044  *     Non-volatile memory device driver close primitive.
0045  */
0046 rtems_device_driver
0047 nvram_driver_close(rtems_device_major_number major,
0048                    rtems_device_minor_number minor,
0049                    void *arg);
0050 
0051 /* nvram_driver_read --
0052  *     Non-volatile memory device driver read primitive.
0053  */
0054 rtems_device_driver
0055 nvram_driver_read(rtems_device_major_number major,
0056                   rtems_device_minor_number minor,
0057                   void *arg);
0058 
0059 /* nvram_driver_write --
0060  *     Non-volatile memory device driver write primitive.
0061  */
0062 rtems_device_driver
0063 nvram_driver_write(rtems_device_major_number major,
0064                    rtems_device_minor_number minor,
0065                    void *arg);
0066 
0067 #ifdef __cplusplus
0068 }
0069 #endif
0070 
0071 #endif /* __VFDDRV_H__ */