RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
bsps
lm32
include
bsp
milkymist_flash.h
Go to the documentation of this file.
1
6
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
23
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
32
struct
flash_partition
{
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_device_driver
rtems_status_code rtems_device_driver
This type shall be used in device driver entry declarations and definitions.
Definition
io.h:90
rtems_device_major_number
uint32_t rtems_device_major_number
This integer type represents the major number of devices.
Definition
io.h:103
rtems_device_minor_number
uint32_t rtems_device_minor_number
This integer type represents the minor number of devices.
Definition
io.h:115
flash_control
Definition
jffs2_xnandpsu.c:52
flash_partition
Definition
milkymist_flash.h:32
Generated by
1.18.0