#include <libc.h>
Go to the source code of this file.
Data Structures | |
struct | s_device |
struct | s_ata_cmd |
struct | s_ata_chs |
struct | s_ide_drv |
struct | s_ide_ctrl |
struct | s_ide_info |
struct | s_ide |
Defines | |
#define | __IDEVAR_H__ 1 |
#define | IDE_DEV1 0x1 |
#define | IDE_DEV2 0x2 |
#define | IDE_DEV3 0x3 |
#define | IDE_DEV4 0x4 |
#define | ATA_TIMEOUT 32000 |
#define | ATAPI_MAGIC_LSB 0x14 |
#define | ATAPI_MAGIC_MSB 0xeb |
#define | ATA_SECTOR_SIZE 0x200 |
#define | ATA_BLOCK_SIZE ATA_SECTOR_SIZE |
#define | SYSIDE_GETDRIVE 0x1 |
#define | SYSIDE_READ 0x2 |
#define | SYSIDE_WRITE 0x3 |
#define | ATA_CMD_EBSY 0x1 |
#define | ATA_CMD_EERR 0x2 |
#define | ATA_CMD_EDRQ 0x3 |
#define | ATA_CMD_ETMODE 0x4 |
#define | ATA_CMD_EPMODE 0x5 |
#define | ATA_CMD_ENSL 0x6 |
#define | ATA_CMD_EMSL 0x7 |
#define | ATA_CMD_EBADREQ 0x8 |
#define | ATA_MASTER 0x00 |
#define | ATA_SLAVE 0x01 |
#define | ATA_STATE_NP 0x00 |
#define | ATA_STATE_IDLE 0x01 |
#define | ATA_STATE_WORK 0x02 |
#define | ATA_TYPE_NONE 0x00 |
#define | ATA_TYPE_UNKNOWN 0x01 |
#define | ATA_TYPE_ATA 0x02 |
#define | ATA_TYPE_ATAPI 0x03 |
#define | ATA_MODE_NONE 0x00 |
#define | ATA_MODE_PIO16 0x01 |
#define | ATA_MODE_PIO32 0x02 |
#define | ATA_DMA_DISABLE 0x0 |
#define | ATA_DMA_ENABLE 0x1 |
#define | ATA_TRANS_NONE 0x00 |
#define | ATA_TRANS_LBA 0x01 |
#define | ATA_TRANS_RECHS 0x02 |
#define | ATA_TRANS_LARGE 0x03 |
#define | ATA_TRANS_UNKNOWN 0x04 |
#define | ATA_PRIMARY 0x01 |
#define | ATA_SECONDARY 0x02 |
#define | ATA_P_IOADDR1 0x1f0 |
#define | ATA_S_IOADDR1 0x170 |
#define | ATA_P_IOADDR2 0x3f0 |
#define | ATA_S_IOADDR2 0x370 |
#define | ATA_P_IRQ 0x0e |
#define | ATA_S_IRQ 0x0f |
Typedefs | |
typedef s_device | t_device |
typedef s_ata_cmd | t_ata_cmd |
typedef s_ata_chs | t_ata_chs |
typedef s_ide_drv | t_ide_drv |
typedef s_ide_ctrl | t_ide_ctrl |
typedef s_ide_info | t_ide_info |
typedef s_ide | t_ide |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|