RTEMS 6.1-rc1
milkymist_flash.h
Go to the documentation of this file.
1
7/* milkymist_flash.h
8 *
9 * Copyright (C) 2010 Sebastien Bourdeauducq
10 *
11 * The license and distribution terms for this file may be
12 * found in the file LICENSE in this distribution or at
13 * http://www.rtems.org/license/LICENSE.
14 *
15 */
16
24#ifndef __MILKYMIST_FLASH_H_
25#define __MILKYMIST_FLASH_H_
26
27/* Ioctls */
28#define FLASH_GET_SIZE 0x4600
29#define FLASH_GET_BLOCKSIZE 0x4601
30#define FLASH_ERASE_BLOCK 0x4602
31
33 unsigned int start_address;
34 unsigned int length;
35};
36
37rtems_device_driver flash_initialize(
40 void *arg
41);
42
43rtems_device_driver flash_read(
46 void *arg
47);
48
49rtems_device_driver flash_write(
52 void *arg
53);
54
58 void *arg
59);
60
61#define FLASH_DRIVER_TABLE_ENTRY {flash_initialize, \
62NULL, NULL, flash_read, flash_write, flash_control}
63
64#endif /* __MILKYMIST_FLASH_H_ */
uint32_t rtems_device_major_number
This integer type represents the major number of devices.
Definition: io.h:103
uint32_t rtems_device_minor_number
This integer type represents the minor number of devices.
Definition: io.h:115
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85
Definition: jffs2_xnandpsu.c:52
Definition: milkymist_flash.h:32