source: rtems/c/src/libchip/flash/am29lv160.h @ 3495c57

4.104.115
Last change on this file since 3495c57 was f3bf21f2, checked in by Chris Johns <chrisj@…>, on 12/14/07 at 04:54:57

2007-12-14 Chris Johns <chrisj@…>

  • wrapup/Makefile.am: Add libflash.a to the libbsp library.
  • libchip/Makefile.am, libchip/preinstall.am: Add the flash chip support.
  • libchip/flash, libchip/flash/am29lv160.c, libchip/flash/am29lv160.h: New.
  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 *  $Id$
3 *
4 * RTEMS Project (http://www.rtems.org/)
5 *
6 * Copyright 2007 Chris Johns (chrisj@rtems.org)
7 */
8
9/**
10 * Flash Disk Device Driver.
11 *
12 * Am29LV160D 16 Megabit (2M x 8bit) 3.0 Volt-only
13 * Boot Sctor Flash Memory.
14 */
15
16#if !defined (_RTEMS_AM29LV160_H_)
17#define _RTEMS_AM29LV160_H_
18
19#include <rtems/flashdisk.h>
20
21/**
22 * The segments in the AM29LV160 top boot block device.
23 */
24#define rtems_am29lv160t_segment_count (4)
25extern const rtems_fdisk_segment_desc rtems_am29lv160t_segments[4];
26
27/**
28 * The segments in the AM29LV160 bottom boot block device.
29 */
30#define rtems_am29lv160b_segment_count (4)
31extern const rtems_fdisk_segment_desc rtems_am29lv160b_segments[4];
32
33/**
34 * The segments in the AM29LV160 top boot block device.
35 */
36extern const rtems_fdisk_driver_handlers rtems_am29lv160_handlers;
37
38/**
39 * The device configuration.
40 */
41typedef struct rtems_am29lv160_config
42{
43  int   bus_8bit;
44  void* base;
45} rtems_am29lv160_config;
46
47/**
48 * External reference to the configuration.
49 */
50extern const rtems_am29lv160_config rtems_am29lv160_configuration[];
51
52/**
53 * External reference to the configuration size
54 */
55extern uint32_t rtems_am29lv160_configuration_size;
56
57#endif
Note: See TracBrowser for help on using the repository browser.