Ultibo API
C/C++ API for Ultibo Core
Loading...
Searching...
No Matches
_STORAGE_DEVICE Struct Reference

#include <storage.h>

Data Fields

DEVICE device
 The Device entry for this Storage.
uint32_t storageid
 Unique Id of this Storage in the Storage table.
uint32_t storagestate
 Storage state (eg STORAGE_STATE_INSERTED).
storage_device_read_proc deviceread
 A Device specific DeviceRead method implementing a standard Storage device interface.
storage_device_write_proc devicewrite
 A Device specific DeviceWrite method implementing a standard Storage device interface.
storage_device_erase_proc deviceerase
 A Device specific DeviceErase method implementing a standard Storage device interface.
storage_device_control_proc devicecontrol
 A Device specific DeviceControl method implementing a standard Storage device interface.
MUTEX_HANDLE lock
 Storage lock.
uint32_t targetid
 SCSI ID.
uint32_t targetlun
 LUN.
uint32_t blocksize
 Block Size.
int64_t blockcount
 Number of Blocks.
uint32_t blockshift
 Shift Count for Blocks to Bytes conversion (eg 9 for 512 byte blocks).
char * vendor
 ATA Model, SCSI Vendor.
char * product
 ATA Serial No, SCSI Product.
char * revision
 Firmware Revision.
TIMER_HANDLE statustimer
 Timer for status change detection.
uint64_t readcount
uint64_t readerrors
uint64_t writecount
uint64_t writeerrors
uint64_t erasecount
uint64_t eraseerrors
STORAGE_DEVICEprev
 Previous entry in Storage table.
STORAGE_DEVICEnext
 Next entry in Storage table.

Field Documentation

◆ device

DEVICE device

The Device entry for this Storage.

◆ storageid

uint32_t storageid

Unique Id of this Storage in the Storage table.

◆ storagestate

uint32_t storagestate

Storage state (eg STORAGE_STATE_INSERTED).

◆ deviceread

A Device specific DeviceRead method implementing a standard Storage device interface.

◆ devicewrite

A Device specific DeviceWrite method implementing a standard Storage device interface.

◆ deviceerase

A Device specific DeviceErase method implementing a standard Storage device interface.

◆ devicecontrol

A Device specific DeviceControl method implementing a standard Storage device interface.

◆ lock

Storage lock.

◆ targetid

uint32_t targetid

SCSI ID.

◆ targetlun

uint32_t targetlun

LUN.

◆ blocksize

uint32_t blocksize

Block Size.

◆ blockcount

int64_t blockcount

Number of Blocks.

◆ blockshift

uint32_t blockshift

Shift Count for Blocks to Bytes conversion (eg 9 for 512 byte blocks).

◆ vendor

char* vendor

ATA Model, SCSI Vendor.

◆ product

char* product

ATA Serial No, SCSI Product.

◆ revision

char* revision

Firmware Revision.

◆ statustimer

TIMER_HANDLE statustimer

Timer for status change detection.

◆ readcount

uint64_t readcount

◆ readerrors

uint64_t readerrors

◆ writecount

uint64_t writecount

◆ writeerrors

uint64_t writeerrors

◆ erasecount

uint64_t erasecount

◆ eraseerrors

uint64_t eraseerrors

◆ prev

Previous entry in Storage table.

◆ next

Next entry in Storage table.


The documentation for this struct was generated from the following file: