⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ide_access.h

📁 万龙开发板的原理图和pcb图
💻 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 + -