2 * $Id: packet.h,v 1.3 2006-05-20 06:24:49 nkeynes Exp $
4 * This file defines the command codes and any other flags used by the
5 * GD-Rom ATAPI packet commands.
7 * Copyright (c) 2005 Nathan Keynes.
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
21 * Valid command codes (hex):
49 #define PKT_CMD_TEST_READY 0x00
50 #define PKT_CMD_IDENTIFY 0x11
51 #define PKT_CMD_SENSE 0x13
52 #define PKT_CMD_READ_TOC 0x14
53 #define PKT_CMD_DISC_INFO 0x15
54 #define PKT_CMD_READ_SECTOR 0x30
55 #define PKT_CMD_SPIN_UP 0x70 /* ??? */
57 #define PKT_ERR_OK 0x0000
58 #define PKT_ERR_NODISC 0x3A02
59 #define PKT_ERR_BADCMD 0x2005
60 #define PKT_ERR_BADFIELD 0x2405
61 #define PKT_ERR_BADREAD 0x0030
62 #define PKT_ERR_BADREADMODE 0x6405 /* Illegal mode for this track */
64 #define IDE_READ_MODE1 0x20
65 #define IDE_READ_RAW 0x30
.