ide_access.h

来自「一个简单的能够直接操作IDE接口的函数库」· C头文件 代码 · 共 48 行

H
48
字号
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
//					    ATA Disc Raw IO Library for AVR 
//								  V0.1a
// 	  							Rob Riglar
//							Copyright 2003,2004 
//
//   					  Email: rob@robriglar.com
//
//			    Compiled with Imagecraft C Compiler for the AVR series
//-----------------------------------------------------------------------------
//
// This file is part of ATA Disc Raw IO Library.
//
// ATA Disc Raw IO Library is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// ATA Disc Raw IO Library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with ATA Disc Raw IO Library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------
//  Globals
//-----------------------------------------------------------------------------
struct 
{
 	   byte currentsector[512];
	   UI32 SectorCurrentlyLoaded; // Initially Load to 0xffffffff;
} IDE_Internal;

//-----------------------------------------------------------------------------
// Prototypes
//-----------------------------------------------------------------------------
byte IDE_SectorByte(word sublocation);
word IDE_SectorWord(word sublocation);
UI32 IDE_SectorUI32(word sublocation);
int IDE_BufferSector(UI32 LBALocation);
void IDE_Reset(void);
void IDE_InitDrive(void);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?