mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Refactor: Formatting.
This commit is contained in:
@@ -5,38 +5,40 @@
|
||||
#ifndef DISCIMAGECHEF_DEVICE_REPORT_SCSI_MODE_H
|
||||
#define DISCIMAGECHEF_DEVICE_REPORT_SCSI_MODE_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint8_t Density;
|
||||
uint8_t Density;
|
||||
uint64_t Blocks;
|
||||
uint32_t BlockLength;
|
||||
} BlockDescriptor;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint8_t MediumType;
|
||||
int WriteProtected;
|
||||
uint8_t MediumType;
|
||||
int WriteProtected;
|
||||
BlockDescriptor BlockDescriptors[4096];
|
||||
int descriptorsLength;
|
||||
uint8_t Speed;
|
||||
uint8_t BufferedMode;
|
||||
int EBC;
|
||||
int DPOFUA;
|
||||
int decoded;
|
||||
int descriptorsLength;
|
||||
uint8_t Speed;
|
||||
uint8_t BufferedMode;
|
||||
int EBC;
|
||||
int DPOFUA;
|
||||
int decoded;
|
||||
} ModeHeader;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
ModeHeader Header;
|
||||
ModeHeader Header;
|
||||
unsigned char *Pages[256][256];
|
||||
size_t pageSizes[256][256];
|
||||
int decoded;
|
||||
size_t pageSizes[256][256];
|
||||
int decoded;
|
||||
} DecodedMode;
|
||||
|
||||
ModeHeader *DecodeModeHeader6(unsigned char* modeResponse, uint8_t deviceType);
|
||||
ModeHeader *DecodeModeHeader10(unsigned char* modeResponse, uint8_t deviceType);
|
||||
DecodedMode *DecodeMode6(unsigned char* modeResponse, uint8_t deviceType);
|
||||
DecodedMode *DecodeMode10(unsigned char* modeResponse, uint8_t deviceType);
|
||||
ModeHeader *DecodeModeHeader6(unsigned char *modeResponse, uint8_t deviceType);
|
||||
|
||||
ModeHeader *DecodeModeHeader10(unsigned char *modeResponse, uint8_t deviceType);
|
||||
|
||||
DecodedMode *DecodeMode6(unsigned char *modeResponse, uint8_t deviceType);
|
||||
|
||||
DecodedMode *DecodeMode10(unsigned char *modeResponse, uint8_t deviceType);
|
||||
|
||||
#endif //DISCIMAGECHEF_DEVICE_REPORT_SCSI_MODE_H
|
||||
|
||||
Reference in New Issue
Block a user