44#if !defined (_RTEMS_NVDISK_H_)
45#define _RTEMS_NVDISK_H_
59#define RTEMS_NVDISK_DEVICE_BASE_NAME "/dev/nvd"
80#define RTEMS_NVDISK_IOCTL_ERASE_DISK _IO('B', 128)
81#define RTEMS_NVDISK_IOCTL_MONITORING _IO('B', 129)
82#define RTEMS_NVDISK_IOCTL_INFO_LEVEL _IO('B', 130)
83#define RTEMS_NVDISK_IOCTL_PRINT_STATUS _IO('B', 131)
94 uint32_t pages_available;
102#define RTEMS_NVDISK_KBYTES(_k) ((_k) * 1024)
127 int (*
read) (uint32_t device, uint32_t flags,
void* base,
128 uint32_t offset,
void* buffer,
size_t size);
143 int (*
write) (uint32_t device, uint32_t flags,
void* base,
144 uint32_t offset,
const void* buffer,
size_t size);
159 int (*
verify) (uint32_t device, uint32_t flags,
void* base,
160 uint32_t offset,
const void* buffer,
size_t size);
204#define RTEMS_NVDISK_CHECK_PAGES (1 << 0)
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
const rtems_nvdisk_config rtems_nvdisk_configuration[]
rtems_device_driver rtems_nvdisk_initialize(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
uint32_t rtems_nvdisk_configuration_size
This header file defines the RTEMS Classic API.
uint32_t block_size
Definition: nvdisk.h:187
uint32_t info_level
Definition: nvdisk.h:192
uint32_t device_count
Definition: nvdisk.h:188
uint32_t flags
Definition: nvdisk.h:190
const rtems_nvdisk_device_desc * devices
Definition: nvdisk.h:189
const rtems_nvdisk_driver_handlers * nv_ops
Definition: nvdisk.h:178
uint32_t size
Definition: nvdisk.h:177
uint32_t flags
Definition: nvdisk.h:175
void * base
Definition: nvdisk.h:176
int(* read)(uint32_t device, uint32_t flags, void *base, uint32_t offset, void *buffer, size_t size)
Definition: nvdisk.h:127
int(* verify)(uint32_t device, uint32_t flags, void *base, uint32_t offset, const void *buffer, size_t size)
Definition: nvdisk.h:159
int(* write)(uint32_t device, uint32_t flags, void *base, uint32_t offset, const void *buffer, size_t size)
Definition: nvdisk.h:143