亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ide_access.c

?? 一個FAT32文件系統的源代碼,可用于嵌入式系統,并能夠直接在linux下直接驗證.
?? C
字號:
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
//					    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 <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <assert.h>
#include <unistd.h>
#include <string.h>

#include "IDE_Access.h"

#define READ(fd,offset,item) { lseek(fd, offset, SEEK_SET);  read(fd,&item,sizeof(item)); }

int fd;

//-----------------------------------------------------------------------------
// IDE_SectorByte: Function is used to retrieve a byte from the 'currentsector'
// array. The value passed in must be between 0 - 511.
//
// Parameters: Word location within currentsector
//
// Returns: Byte of data requested from currentsector
//-----------------------------------------------------------------------------
byte IDE_SectorByte(word sublocation)
{
// NOTE: This function is to be used whereever access to currentsector is required
//  	 by all layers that are higher than the IDE Base functions.
	byte data=0;          
    data=IDE_Internal.currentsector[sublocation];	  // Read Data from specified pos
	return (data);
}

//-----------------------------------------------------------------------------
// IDE_SectorWord: Function is used to retrieve a word from the 'currentsector'
// array. The value passed in must be between 0 - 510.
//
// Parameters: Word location within currentsector
//
// Returns: Word of data requested from currentsector
//-----------------------------------------------------------------------------
word IDE_SectorWord(word sublocation) // Return Word at position specified
{
	 word data=0; 
	 word tempword=0;
	   
	 tempword = IDE_SectorByte(sublocation+1); // Get MSB from Buffer
	 tempword<<=8;							 // Make MSB word half into byte
	 data = IDE_SectorByte(sublocation) + tempword; // Combine LSB and MSB

	 return (data);					  			 // Return value
}

//-----------------------------------------------------------------------------
// IDE_SectorUI32: Function is used to retrieve a 32 bit value from the 
// 'currentsector' array. The value passed in must be between 0 - 511.
//
// Parameters: Word offset within current sector
//
// Returns: 32 bit unsigned data as requested
//
// Functions Used: None
//
//-----------------------------------------------------------------------------
UI32 IDE_SectorUI32(word sublocation) // Return UI32 at position specified
{
    UI32 data=0; 
	UI32 A,B,C,D;
	
	A= IDE_SectorByte(sublocation);		// Read the four bytes which make up
	B= IDE_SectorByte(sublocation+1);    // the 32-bit value
	C= IDE_SectorByte(sublocation+2);
	D= IDE_SectorByte(sublocation+3);         

    data=(D<<=24) + (C<<=16) + (B<<=8) + A; //Combine into correct order
	return (data);					  			 // Return value
}

//-----------------------------------------------------------------------------
// IDE_BufferSector: This function recieves the LBA address of a sector and reads into
// an array of 512 bytes (1 sector) called 'currentsector'.
//
// Parameters: 32bit Unsigned Logical Block Address
//
// Returns: An integer error code: 1 means read successfull, 0 means read fail.
//
// Functions Used: WriteReg, CheckforError, ReadErrors, Wait_DRQ, Set_Address, 
// 			 	   DataInputSetup, printf
//
//-----------------------------------------------------------------------------
int IDE_BufferSector(UI32 LBALocation)
{
    UI16    i;
	
	// Only rebuffer if sector not currently loaded
	if (IDE_Internal.SectorCurrentlyLoaded!=LBALocation) // Dont reload if already loaded
	{              
	IDE_Internal.SectorCurrentlyLoaded=LBALocation; // update current sector loaded
	
	// Loose and slow read
    for(i=0; i <= 511; i++)
		READ(fd,i+(LBALocation*512),IDE_Internal.currentsector[i]);      

	}

	// Return Success
	return 1;
}

//-----------------------------------------------------------------------------
// InitDrive: Drive Initialisation routine, required before you use the drive 
// for reading or writting to the actual media. 
//-----------------------------------------------------------------------------
void IDE_InitDrive(char *partition)
{
	  // Set to defualt value
	  IDE_Internal.SectorCurrentlyLoaded = 0xffffffff;
	  
	fd = open(partition, O_RDONLY | O_NOCTTY);

	if (fd == -1) 
	{
		printf("\r\nHALT:: Unable to open disc");
		while (1);
	}

 // assert(sizeof(byte) == 1);
 // assert(sizeof(word) == 2);
 // assert(sizeof(UI32) == 4);
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91丨国产丨九色丨pron| 欧美性xxxxxxxx| 亚洲成人在线观看视频| 久久久久久亚洲综合影院红桃| 91久久精品国产91性色tv| 国产在线观看免费一区| 亚洲高清免费在线| 综合激情成人伊人| 欧美精品一区二区在线播放| 欧美亚洲丝袜传媒另类| 岛国av在线一区| 久久国产视频网| 午夜天堂影视香蕉久久| 亚洲欧洲另类国产综合| 久久夜色精品国产欧美乱极品| 欧美大片顶级少妇| 欧美久久久久久久久中文字幕| 成人免费不卡视频| 韩日精品视频一区| 蜜臀av一区二区| 天天av天天翘天天综合网| 综合激情成人伊人| 国产精品免费视频网站| 久久色.com| 久久亚洲精品国产精品紫薇| 欧美精品久久久久久久多人混战| 色狠狠一区二区三区香蕉| 成人成人成人在线视频| 国产黄色91视频| 国产精品一区三区| 国产乱人伦偷精品视频免下载| 蜜臀av一级做a爰片久久| 日本女人一区二区三区| 亚洲 欧美综合在线网络| 亚洲一区二三区| 亚洲午夜久久久久| 亚洲成人资源网| 香港成人在线视频| 视频一区中文字幕| 视频在线观看一区二区三区| 无码av中文一区二区三区桃花岛| 亚洲成在人线在线播放| 亚洲国产aⅴ天堂久久| 亚洲福利国产精品| 青青草成人在线观看| 免费观看日韩av| 精品一区在线看| 国产一区中文字幕| 国产91精品精华液一区二区三区| 国产成人午夜电影网| 成人黄色小视频在线观看| 成人爽a毛片一区二区免费| 波多野结衣欧美| 在线免费观看日本一区| 欧美日韩国产美女| 日韩女优制服丝袜电影| 欧美精品一区二区在线观看| 欧美激情资源网| 亚洲另类中文字| 亚洲电影视频在线| 美女精品自拍一二三四| 粉嫩av一区二区三区在线播放| 成人福利电影精品一区二区在线观看| 99久久综合精品| 欧美日韩视频一区二区| 精品国产乱码久久久久久夜甘婷婷 | 美女视频黄a大片欧美| av在线不卡免费看| 色94色欧美sute亚洲13| 欧美亚洲国产怡红院影院| 欧美一区二区在线免费播放| 亚洲精品在线观看视频| 亚洲欧美综合网| 婷婷中文字幕一区三区| 国产一区在线不卡| 91同城在线观看| 欧美一区二区三区的| 国产清纯在线一区二区www| 亚洲精品视频自拍| 久久精品国产免费| 99这里都是精品| 91精品国产福利在线观看| 国产片一区二区三区| 亚洲高清免费视频| 国产酒店精品激情| 欧美在线短视频| 久久久www成人免费无遮挡大片| 18欧美乱大交hd1984| 青草av.久久免费一区| 成人动漫av在线| 日韩午夜激情电影| 亚洲免费观看高清| 精品亚洲aⅴ乱码一区二区三区| 91在线观看地址| 精品伦理精品一区| 一区二区三区在线观看网站| 国产一区不卡在线| 欧美剧情片在线观看| 中文字幕亚洲一区二区va在线| 视频在线观看一区| 91美女片黄在线| 久久久久久久精| 美女视频网站黄色亚洲| 日本久久电影网| 中文字幕av不卡| 精品一区二区三区视频在线观看| 日本丰满少妇一区二区三区| 国产拍揄自揄精品视频麻豆| 日本在线观看不卡视频| 色成年激情久久综合| 久久久久久久久久电影| 免费人成在线不卡| 欧美日韩卡一卡二| 一区二区三区鲁丝不卡| 成年人午夜久久久| 久久九九久久九九| 激情另类小说区图片区视频区| 欧美日韩免费观看一区二区三区 | 欧美日韩亚洲综合在线| 亚洲欧洲成人精品av97| 欧美系列日韩一区| 国产精品久久久久久久第一福利 | 国产精品自拍一区| 日韩精品一区二区三区在线播放 | fc2成人免费人成在线观看播放| 日韩免费高清视频| 日本亚洲一区二区| 欧美男人的天堂一二区| 亚洲国产美女搞黄色| 在线日韩一区二区| 一区二区三区高清| 欧美吻胸吃奶大尺度电影 | 欧美成人精品高清在线播放| 亚洲成av人片在线观看无码| 99精品国产99久久久久久白柏| 国产无遮挡一区二区三区毛片日本| 美女尤物国产一区| 欧美xxxx老人做受| 黄色成人免费在线| 久久久久国产精品人| 国产91精品一区二区麻豆亚洲| 国产欧美一区二区精品仙草咪| 国产精品一区二区免费不卡| 国产亚洲成av人在线观看导航| 国产69精品久久99不卡| 亚洲国产精品精华液ab| 99久久精品免费精品国产| 亚洲欧美电影一区二区| 色视频成人在线观看免| 亚洲国产成人91porn| 91精品国产一区二区| 国产综合色精品一区二区三区| 久久婷婷成人综合色| 懂色av一区二区三区蜜臀| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 99久久精品免费看国产| 亚洲高清免费在线| 欧美成人aa大片| 成人高清免费在线播放| 一区二区三区成人| 日韩欧美激情在线| 成人视屏免费看| 亚洲国产视频网站| 日韩精品专区在线影院观看| 国产东北露脸精品视频| 综合色中文字幕| 欧美蜜桃一区二区三区| 黄色精品一二区| 亚洲精品菠萝久久久久久久| 正在播放一区二区| 岛国一区二区三区| 亚洲成人综合在线| 国产视频一区在线播放| 色综合 综合色| 麻豆成人免费电影| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 亚洲综合成人网| 日韩视频中午一区| aaa亚洲精品| 日本不卡123| 国产精品不卡一区| 91麻豆精品国产自产在线观看一区| 国产一区二区免费看| 亚洲影院免费观看| 久久精品亚洲麻豆av一区二区| 91久久香蕉国产日韩欧美9色| 美国毛片一区二区三区| 亚洲女与黑人做爰| 久久久久久久久久久久电影| 欧美综合久久久| 国产盗摄女厕一区二区三区| 一区二区三区中文字幕| 久久久国际精品| 欧美酷刑日本凌虐凌虐| av亚洲精华国产精华精华| 毛片av一区二区三区| 亚洲图片欧美色图| 国产精品高清亚洲| 精品国产成人系列| 制服丝袜亚洲播放|