ide_access.h

来自「hd driver for S3C44B0。44b0 + ide + fat32」· C头文件 代码 · 共 31 行

H
31
字号
#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 + =
减小字号Ctrl + -
显示快捷键?