ide_access.h

来自「一个FAT32文件系统的源代码,可用于嵌入式系统,并能够直接在linux下直接验」· C头文件 代码 · 共 49 行

H
49
字号
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
//					    FAT32 File IO Library Linux Test Version
//									  V1.0L
// 	  								Rob Riglar
//								Copyright 2003,2004 
//
//   					  Email: admin@robs-projects.com
//
//			   Compiled and tested on Redhat 'Shrike' with GNU gcc
//-----------------------------------------------------------------------------
//
// This file is part of FAT32 File IO Library.
//
// FAT32 File 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.
//
// FAT32 File 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 FAT32 File IO Library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
#include "../structures.h"
//-----------------------------------------------------------------------------
//  Globals
//-----------------------------------------------------------------------------
struct 
{
 	   byte currentsector[512];
	   UI32 SectorCurrentlyLoaded; // Initially Load to 0xffffffff;
	   UI32 maxLBA;
} 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_InitDrive(char *partition);

⌨️ 快捷键说明

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