Back to home page

LXR

 
 

    


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

0001 /*
0002  * RTEMS Project (http://www.rtems.org/)
0003  *
0004  * Copyright 2007 Chris Johns (chrisj@rtems.org)
0005  */
0006 
0007 /**
0008  * Flash Disk Device Driver.
0009  *
0010  * Am29LV160D 16 Megabit (2M x 8bit) 3.0 Volt-only
0011  * Boot Sctor Flash Memory.
0012  */
0013 
0014 #if !defined (_RTEMS_AM29LV160_H_)
0015 #define _RTEMS_AM29LV160_H_
0016 
0017 #include <rtems/flashdisk.h>
0018 
0019 /**
0020  * The segments in the AM29LV160 top boot block device.
0021  */
0022 #define rtems_am29lv160t_segment_count (4)
0023 extern const rtems_fdisk_segment_desc rtems_am29lv160t_segments[4];
0024 
0025 /**
0026  * The segments in the AM29LV160 bottom boot block device.
0027  */
0028 #define rtems_am29lv160b_segment_count (4)
0029 extern const rtems_fdisk_segment_desc rtems_am29lv160b_segments[4];
0030 
0031 /**
0032  * The segments in the AM29LV160 top boot block device.
0033  */
0034 extern const rtems_fdisk_driver_handlers rtems_am29lv160_handlers;
0035 
0036 /**
0037  * The device configuration.
0038  */
0039 typedef struct rtems_am29lv160_config
0040 {
0041   int   bus_8bit;
0042   void* base;
0043 } rtems_am29lv160_config;
0044 
0045 /**
0046  * External reference to the configuration.
0047  */
0048 extern const rtems_am29lv160_config rtems_am29lv160_configuration[];
0049 
0050 /**
0051  * External reference to the configuration size
0052  */
0053 extern uint32_t rtems_am29lv160_configuration_size;
0054 
0055 #endif