RTEMS  5.1
Data Structures | Macros | Typedefs | Functions | Variables

Interface to a Flash Disk Block Device. More...

#include <stdint.h>
#include <sys/ioctl.h>
#include <rtems.h>

Go to the source code of this file.

Data Structures

struct  rtems_fdisk_monitor_data
 Flash Disk Monitoring Data allows a user to obtain the current status of the disk. More...
 
struct  rtems_fdisk_segment_desc
 Flash Segment Descriptor holds, number of continuous segments in the device of this type, the base segment number in the device, the address offset of the base segment in the device, and the size of segment. More...
 
struct  rtems_fdisk_driver_handlers
 Flash Low Level driver handlers. More...
 
struct  rtems_fdisk_device_desc
 Flash Device Descriptor holds the segments in a device. More...
 
struct  rtems_flashdisk_config
 RTEMS Flash Disk configuration table used to initialise the driver. More...
 

Macros

#define RTEMS_FLASHDISK_DEVICE_BASE_NAME   "/dev/fdd"
 The base name of the flash disks.
 
#define RTEMS_FDISK_IOCTL_ERASE_DISK   _IO('B', 128)
 
#define RTEMS_FDISK_IOCTL_COMPACT   _IO('B', 129)
 
#define RTEMS_FDISK_IOCTL_ERASE_USED   _IO('B', 130)
 
#define RTEMS_FDISK_IOCTL_MONITORING   _IO('B', 131)
 
#define RTEMS_FDISK_IOCTL_INFO_LEVEL   _IO('B', 132)
 
#define RTEMS_FDISK_IOCTL_PRINT_STATUS   _IO('B', 133)
 
#define RTEMS_FDISK_KBYTES(_k)   (UINT32_C(1024) * (_k))
 Return the number of kilo-bytes.
 
#define RTEMS_FDISK_BACKGROUND_ERASE   (1 << 0)
 
#define RTEMS_FDISK_BACKGROUND_COMPACT   (1 << 1)
 
#define RTEMS_FDISK_CHECK_PAGES   (1 << 2)
 
#define RTEMS_FDISK_BLANK_CHECK_BEFORE_WRITE   (1 << 3)
 

Typedefs

typedef struct rtems_fdisk_monitor_data rtems_fdisk_monitor_data
 Flash Disk Monitoring Data allows a user to obtain the current status of the disk.
 
typedef struct rtems_fdisk_segment_desc rtems_fdisk_segment_desc
 Flash Segment Descriptor holds, number of continuous segments in the device of this type, the base segment number in the device, the address offset of the base segment in the device, and the size of segment. More...
 
typedef struct rtems_fdisk_driver_handlers rtems_fdisk_driver_handlers
 Flash Low Level driver handlers. More...
 
typedef struct rtems_fdisk_device_desc rtems_fdisk_device_desc
 Flash Device Descriptor holds the segments in a device. More...
 
typedef struct rtems_flashdisk_config rtems_flashdisk_config
 RTEMS Flash Disk configuration table used to initialise the driver. More...
 

Functions

rtems_device_driver rtems_fdisk_initialize (rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
 

Variables

const rtems_flashdisk_config rtems_flashdisk_configuration []
 External reference to the configuration. Please supply. Support is present in confdefs.h for providing this variable.
 
uint32_t rtems_flashdisk_configuration_size
 External reference to the number of configurations. Please supply. Support is present in confdefs.h for providing this variable.
 

Detailed Description

Interface to a Flash Disk Block Device.

This file defines the interface to a flash disk block device.