cf_ide.h

来自「Analog公司的ADSP_BF532上面实现以太网接口的源码」· C头文件 代码 · 共 63 行

H
63
字号
//##############################################################
//#
//# 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 + =
减小字号Ctrl + -
显示快捷键?