mirror of
https://github.com/reactos/reactos.git
synced 2024-10-31 03:48:17 +00:00
38 lines
979 B
C
38 lines
979 B
C
|
typedef struct _DRIVERSTATUS {
|
||
|
UCHAR bDriverError;
|
||
|
UCHAR bIDEError;
|
||
|
UCHAR bReserved[2];
|
||
|
ULONG dwReserved[2];
|
||
|
} DRIVERSTATUS, *PDRIVERSTATUS, *LPDRIVERSTATUS;
|
||
|
|
||
|
typedef struct _IDEREGS {
|
||
|
UCHAR bFeaturesReg;
|
||
|
UCHAR bSectorCountReg;
|
||
|
UCHAR bSectorNumberReg;
|
||
|
UCHAR bCylLowReg;
|
||
|
UCHAR bCylHighReg;
|
||
|
UCHAR bDriveHeadReg;
|
||
|
UCHAR bCommandReg;
|
||
|
UCHAR bReserved;
|
||
|
} IDEREGS, *PIDEREGS, *LPIDEREGS;
|
||
|
|
||
|
#define ATAPI_ID_CMD 0xA1
|
||
|
#define ID_CMD 0xEC
|
||
|
#define SMART_CMD 0xB0
|
||
|
|
||
|
#include <pshpack1.h>
|
||
|
typedef struct _SENDCMDOUTPARAMS {
|
||
|
ULONG cBufferSize;
|
||
|
DRIVERSTATUS DriverStatus;
|
||
|
UCHAR bBuffer[1];
|
||
|
} SENDCMDOUTPARAMS, *PSENDCMDOUTPARAMS, *LPSENDCMDOUTPARAMS;
|
||
|
|
||
|
typedef struct _SENDCMDINPARAMS {
|
||
|
ULONG cBufferSize;
|
||
|
IDEREGS irDriveRegs;
|
||
|
UCHAR bDriveNumber;
|
||
|
UCHAR bReserved[3];
|
||
|
ULONG dwReserved[4];
|
||
|
UCHAR bBuffer[1];
|
||
|
} SENDCMDINPARAMS, *PSENDCMDINPARAMS, *LPSENDCMDINPARAMS;
|
||
|
#include <poppack.h>
|