25 #if !defined (_RTEMS_NVDISK_H_) 26 #define _RTEMS_NVDISK_H_ 29 #include <sys/ioctl.h> 40 #define RTEMS_NVDISK_DEVICE_BASE_NAME "/dev/nvd" 61 #define RTEMS_NVDISK_IOCTL_ERASE_DISK _IO('B', 128) 62 #define RTEMS_NVDISK_IOCTL_MONITORING _IO('B', 129) 63 #define RTEMS_NVDISK_IOCTL_INFO_LEVEL _IO('B', 130) 64 #define RTEMS_NVDISK_IOCTL_PRINT_STATUS _IO('B', 131) 75 uint32_t pages_available;
83 #define RTEMS_NVDISK_KBYTES(_k) ((_k) * 1024) 109 uint32_t offset,
void* buffer,
size_t size);
125 uint32_t offset,
const void* buffer,
size_t size);
141 uint32_t offset,
const void* buffer,
size_t size);
185 #define RTEMS_NVDISK_CHECK_PAGES (1 << 0) 200 rtems_device_minor_number minor,
uint32_t rtems_nvdisk_configuration_size
uint32_t flags
Definition: nvdisk.h:156
void * base
Definition: nvdisk.h:157
int(* read)(uint32_t device, uint32_t flags, void *base, uint32_t offset, void *buffer, size_t size)
Definition: nvdisk.h:108
uint32_t size
Definition: nvdisk.h:158
struct rtems_nvdisk_driver_handlers rtems_nvdisk_driver_handlers
Definition: rtemscompat1.h:15
int(* write)(uint32_t device, uint32_t flags, void *base, uint32_t offset, const void *buffer, size_t size)
Definition: nvdisk.h:124
const rtems_nvdisk_device_desc * devices
Definition: nvdisk.h:170
rtems_status_code
Classic API Status.
Definition: status.h:43
uint32_t block_size
Definition: nvdisk.h:168
struct rtems_nvdisk_device_desc rtems_nvdisk_device_desc
uint32_t device_count
Definition: nvdisk.h:169
int(* verify)(uint32_t device, uint32_t flags, void *base, uint32_t offset, const void *buffer, size_t size)
Definition: nvdisk.h:140
struct rtems_nvdisk_config rtems_nvdisk_config
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)
unsigned size
Definition: tte.h:74
struct rtems_nvdisk_monitor_data rtems_nvdisk_monitor_data
uint32_t info_level
Definition: nvdisk.h:173
const rtems_nvdisk_driver_handlers * nv_ops
Definition: nvdisk.h:159
uint32_t flags
Definition: nvdisk.h:171