1/* 2** Copyright 2002/03, Thomas Kurschel. All rights reserved. 3** Distributed under the terms of the OpenBeOS License. 4*/ 5 6/* 7 Part of Open IDE bus manager 8 9 OP-Codes of IDE commands 10*/ 11 12#ifndef __IDE_CMDS_H__ 13#define __IDE_CMDS_H__ 14 15 16#define IDE_CMD_WRITE_DMA 0xca 17#define IDE_CMD_WRITE_DMA_QUEUED 0xcc 18#define IDE_CMD_WRITE_MULTIPLE 0xc5 19#define IDE_CMD_WRITE_SECTORS 0x30 20 21#define IDE_CMD_READ_DMA 0xc8 22#define IDE_CMD_READ_DMA_QUEUED 0xc7 23#define IDE_CMD_READ_MULTIPLE 0xc4 24#define IDE_CMD_READ_SECTORS 0x20 25 26#define IDE_CMD_WRITE_DMA_EXT 0x35 27#define IDE_CMD_WRITE_DMA_QUEUED_EXT 0x36 28#define IDE_CMD_WRITE_MULTIPLE_EXT 0x39 29#define IDE_CMD_WRITE_SECTORS_EXT 0x34 30 31#define IDE_CMD_READ_DMA_EXT 0x25 32#define IDE_CMD_READ_DMA_QUEUED_EXT 0x26 33#define IDE_CMD_READ_MULTIPLE_EXT 0x29 34#define IDE_CMD_READ_SECTORS_EXT 0x24 35 36#define IDE_CMD_PACKET 0xa0 37#define IDE_CMD_DEVICE_RESET 0x08 38 39#define IDE_CMD_SERVICE 0xa2 40#define IDE_CMD_NOP 0 41 42#define IDE_CMD_NOP_NOP 0 43#define IDE_CMD_NOP_NOP_AUTOPOLL 1 44 45 46#define IDE_CMD_GET_MEDIA_STATUS 0xda 47 48#define IDE_CMD_FLUSH_CACHE 0xe7 49#define IDE_CMD_FLUSH_CACHE_EXT 0xea 50 51#define IDE_CMD_MEDIA_EJECT 0xed 52 53#define IDE_CMD_IDENTIFY_PACKET_DEVICE 0xa1 54#define IDE_CMD_IDENTIFY_DEVICE 0xec 55 56#define IDE_CMD_SET_FEATURES 0xef 57#define IDE_CMD_SET_FEATURES_ENABLE_REL_INT 0x5d 58#define IDE_CMD_SET_FEATURES_ENABLE_SERV_INT 0x5e 59#define IDE_CMD_SET_FEATURES_DISABLE_REL_INT 0xdd 60#define IDE_CMD_SET_FEATURES_DISABLE_SERV_INT 0xde 61#define IDE_CMD_SET_FEATURES_ENABLE_MSN 0x95 62 63 64#endif 65