#include <sys/types.h>
#include "tap.h"
#include "libFireBird.h"
Go to the source code of this file.
|
int | lstat64 (__const char *__restrict __file, tstat64 *__restrict __buf) __THROW |
|
int | stat64 (__const char *__restrict __file, tstat64 *__restrict __buf) __THROW |
|
void | busyWait (void) |
|
void | Delay (dword) |
|
int | GetClusterPointer (int) |
|
int | SendHDDCommand (dword, const byte *, int) |
|
void | SwapWords (word *) |
|
void | SwapDWords (dword *) |
|
int | ReceiveSector (word *) |
|
bool | ChangeDirRoot (void) |
|
dword | CalcAbsSectorFromFAT (TYPE_File *, dword) |
|
bool | PushDirEntry (dword Cluster, dword Entry, dword DirLen) |
|
bool | PopDirEntry (dword *Cluster, dword *Entry, dword *DirLen) |
|
dword | getNextCluster (dword c) |
|
FILE * | fopen64 (__const char *__restrict __filename, __const char *__restrict __modes) |
|
int | fseeko64 (FILE *__stream, __off64_t __off, int __whence) |
|
◆ DIR_MAX_STACK
◆ endian_swap_word
#define endian_swap_word |
( |
|
x | ) |
*x = (*x << 8) | (*x >> 8) |
◆ FATENTRYSIZE
◆ FBHDIO_DRIVE_CMD_HDR_SIZE
#define FBHDIO_DRIVE_CMD_HDR_SIZE (4 * sizeof(unsigned char)) |
◆ FBHDIO_DRIVE_TASK_HDR_SIZE
#define FBHDIO_DRIVE_TASK_HDR_SIZE (8 * sizeof(unsigned char)) |
◆ HDIO_DRIVE_CMD
#define HDIO_DRIVE_CMD 0x031f /* execute a special drive command */ |
◆ HDIO_DRIVE_TASK
#define HDIO_DRIVE_TASK 0x031e /* execute task and special drive command */ |
◆ oTAP_Hdd_Move
#define oTAP_Hdd_Move 0x13 |
◆ oTAP_Hdd_ReadSectorDMA
#define oTAP_Hdd_ReadSectorDMA 0x00 |
◆ oTAP_Hdd_WriteSectorDMA
#define oTAP_Hdd_WriteSectorDMA 0x01 |
◆ RECYCLEPATH
#define RECYCLEPATH "/DataFiles/RecycleBin-/" |
◆ SETFEATURES_DIS_AAM
#define SETFEATURES_DIS_AAM 0xC2 /* Disable Automatic Acoustic Management */ |
◆ SETFEATURES_DIS_APM
#define SETFEATURES_DIS_APM 0x85 /* Disable advanced power management */ |
◆ SETFEATURES_EN_AAM
#define SETFEATURES_EN_AAM 0x42 /* Enable Automatic Acoustic Management */ |
◆ SETFEATURES_EN_APM
#define SETFEATURES_EN_APM 0x05 /* Enable advanced power management */ |
◆ SMART_AUTOSAVE
#define SMART_AUTOSAVE 0xD2 |
◆ SMART_DISABLE
#define SMART_DISABLE 0xD9 |
◆ SMART_ENABLE
#define SMART_ENABLE 0xD8 |
◆ SMART_READ_THRESHOLDS
#define SMART_READ_THRESHOLDS 0xD1 |
◆ SMART_READ_VALUES
#define SMART_READ_VALUES 0xD0 |
◆ SMART_STATUS
#define SMART_STATUS 0xDA |
◆ WIN_SETFEATURES
#define WIN_SETFEATURES 0xEF |
◆ WIN_SMART
◆ FILE
typedef struct __STDIO_FILE_STRUCT FILE |
◆ tTAP_Hdd_Move
typedef dword(* tTAP_Hdd_Move) (char *from_dir, char *to_dir, char *filename) |
◆ tTAP_Hdd_ReadSectorDMA
typedef dword(* tTAP_Hdd_ReadSectorDMA) (dword SectorNr, dword NrSectors, void *Buffer) |
◆ tTAP_Hdd_WriteSectorDMA
typedef dword(* tTAP_Hdd_WriteSectorDMA) (dword SectorNr, dword NrSectors, void *Buffer) |
◆ busyWait()
◆ CalcAbsSectorFromFAT()
dword CalcAbsSectorFromFAT |
( |
TYPE_File * |
, |
|
|
dword |
|
|
) |
| |
◆ ChangeDirRoot()
bool ChangeDirRoot |
( |
void |
| ) |
|
◆ Delay()
void Delay |
( |
dword |
Loops | ) |
|
◆ fopen64()
FILE * fopen64 |
( |
__const char *__restrict |
__filename, |
|
|
__const char *__restrict |
__modes |
|
) |
| |
◆ fseeko64()
int fseeko64 |
( |
FILE * |
__stream, |
|
|
__off64_t |
__off, |
|
|
int |
__whence |
|
) |
| |
◆ GetClusterPointer()
int GetClusterPointer |
( |
int |
| ) |
|
◆ getNextCluster()
dword getNextCluster |
( |
dword |
c | ) |
|
|
inline |
◆ lstat64()
int lstat64 |
( |
__const char *__restrict |
__file, |
|
|
tstat64 *__restrict |
__buf |
|
) |
| |
◆ PopDirEntry()
bool PopDirEntry |
( |
dword * |
Cluster, |
|
|
dword * |
Entry, |
|
|
dword * |
DirLen |
|
) |
| |
◆ PushDirEntry()
bool PushDirEntry |
( |
dword |
Cluster, |
|
|
dword |
Entry, |
|
|
dword |
DirLen |
|
) |
| |
◆ ReceiveSector()
int ReceiveSector |
( |
word * |
| ) |
|
◆ SendHDDCommand()
int SendHDDCommand |
( |
dword |
Command, |
|
|
const byte * |
CommandBlock, |
|
|
int |
BufferSize |
|
) |
| |
Definition at line 4 of file SendHDDCommand.c.
References BufferSize, endian_swap_word, TRACEENTER, and TRACEEXIT.
Referenced by HDD_AAM_Disable(), HDD_AAM_Enable(), HDD_APM_Disable(), HDD_APM_Enable(), HDD_IdentifyDevice(), HDD_Smart_DisableAttributeAutoSave(), HDD_Smart_DisableOperations(), HDD_Smart_EnableAttributeAutoSave(), HDD_Smart_EnableOperations(), HDD_Smart_ReadData(), HDD_Smart_ReadThresholdData(), and HDD_Smart_ReturnStatus().
◆ stat64()
int stat64 |
( |
__const char *__restrict |
__file, |
|
|
tstat64 *__restrict |
__buf |
|
) |
| |
◆ SwapDWords()
void SwapDWords |
( |
dword * |
DataBuf | ) |
|
◆ SwapWords()
void SwapWords |
( |
word * |
DataBuf | ) |
|
◆ _appl_version
◆ HDD_pAltStatus
volatile byte* HDD_pAltStatus |
|
extern |
◆ HDD_pCommand
volatile byte* HDD_pCommand |
|
extern |
◆ HDD_pData
◆ HDD_pDevice
volatile byte* HDD_pDevice |
|
extern |
◆ HDD_pError
volatile byte* HDD_pError |
|
extern |
◆ HDD_pFeature
volatile byte* HDD_pFeature |
|
extern |
◆ HDD_pLBAHigh
volatile byte* HDD_pLBAHigh |
|
extern |
◆ HDD_pLBALow
volatile byte* HDD_pLBALow |
|
extern |
◆ HDD_pLBAMid
volatile byte* HDD_pLBAMid |
|
extern |
◆ HDD_pSecCount
volatile byte* HDD_pSecCount |
|
extern |
◆ HDD_pStatus
volatile byte* HDD_pStatus |
|
extern |
◆ LibInitialized
◆ TAP_GetSystemProc
void *(* TAP_GetSystemProc) (int) |
( |
int |
| ) |
|
|
extern |
◆ TAP_Hdd_ReadSectorDMA
◆ TAP_Hdd_WriteSectorDMA