?? cf_ide.h
字號:
//##############################################################
//#
//# CF_IDE.H
//#
//# ADSP-21535 Embedded Web Server Project
//#
//# (c) ANALOG DEVICES 2002
//# eDSP Division
//# Stefan Hacker
//# 23-DEC-2002
//#
//# History
//# 16-APR-2003 HS release 1.0
//#
#ifndef __CF_IDE_H__
#define __CF_IDE_H__
#include "ez_lan_types.h"
///////////////////////////////
// functions of global scope
void ATA_identify();
int ATA_get_boot_block();
void ATA_read_fat_sector(DWORD LBAsec);
void ATA_read_sector(DWORD);
void ATA_read_cluster(DWORD, DWORD*);
void ATA_read_directory(WORD, BYTE);
void ATA_read_short_dir(WORD, BYTE);
///////////////////////////////
// local support functions
void ATA_send_command();
int ATA_wait_for_it();
///////////////////////////////
// Hardware address mapping for EZ-LAN
#define IDE_RDD 0x2C000020
#define IDE_ERR 0x2C000022
#define IDE_SCNT 0x2C000024
#define IDE_SNUM 0x2C000026
#define IDE_CYLL 0x2C000028
#define IDE_CYLH 0x2C00002a
#define IDE_CDH 0x2C00002c
#define IDE_STAT 0x2C00002e
#define IDE_ASTAT 0x2C00001c
#define IDE_DADDR 0x2C00001e
#define IDE_WRD 0x2C000020
#define IDE_FEAT 0x2C000022
#define IDE_CMD 0x2C00002e
#define IDE_CTRL 0x2C00001c
#define ROOT 0x1
#define nonROOT 0x0
#define MAX_SHORT_DIR 60
#define MAX_NORM_DIR 16
#define PIOWAIT 20
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -