📄 ide_access.h
字号:
#ifndef IDE_ACCESS_H
#define IDE_ACCESS_H
//-----------------------------------------------------------------------------
// Globals
//-----------------------------------------------------------------------------
#define HDD_SECTOR_SIZE 512
typedef struct
{
UI8 currentsector[HDD_SECTOR_SIZE];
UI32 SectorCurrentlyLoaded; // Initially Load to 0xffffffff;
UI32 maxLBA;
} IDE_Internal_t;
extern IDE_Internal_t IDE_Internal;
//-----------------------------------------------------------------------------
// Prototypes
//-----------------------------------------------------------------------------
UI8 IDE_SectorByte(UI16 sublocation);
UI16 IDE_SectorWord(UI16 sublocation);
UI32 IDE_SectorUI32(UI16 sublocation);
int IDE_BufferSector(UI32 LBALocation);
void IDE_Reset(void);
void IDE_InitDrive(void);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -