RTEMS  5.1
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 
37 rtems_device_driver flash_initialize(
38  rtems_device_major_number major,
39  rtems_device_minor_number minor,
40  void *arg
41 );
42 
43 rtems_device_driver flash_read(
44  rtems_device_major_number major,
45  rtems_device_minor_number minor,
46  void *arg
47 );
48 
49 rtems_device_driver flash_write(
50  rtems_device_major_number major,
51  rtems_device_minor_number minor,
52  void *arg
53 );
54 
55 rtems_device_driver flash_control(
56  rtems_device_major_number major,
57  rtems_device_minor_number minor,
58  void *arg
59 );
60 
61 #define FLASH_DRIVER_TABLE_ENTRY {flash_initialize, \
62 NULL, NULL, flash_read, flash_write, flash_control}
63 
64 #endif /* __MILKYMIST_FLASH_H_ */
rtems_status_code
Classic API Status.
Definition: status.h:43
Definition: milkymist_flash.h:32