filename | src/gdrom/packet.h |
changeset | 142:2f631c3a3946 |
next | 143:9446fb6df0c5 |
author | nkeynes |
date | Tue May 02 14:09:11 2006 +0000 (16 years ago) |
permissions | -rw-r--r-- |
last change | Add packet.h Implement read toc, request sense, test ready commands. Fix failure to clear error status on new command |
file | annotate | diff | log | raw |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00001.2 +++ b/src/gdrom/packet.h Tue May 02 14:09:11 2006 +00001.3 @@ -0,0 +1,62 @@1.4 +/**1.5 + * $Id: packet.h,v 1.1 2006-05-02 14:09:11 nkeynes Exp $1.6 + *1.7 + * This file defines the command codes and any other flags used by the1.8 + * GD-Rom ATAPI packet commands.1.9 + *1.10 + * Copyright (c) 2005 Nathan Keynes.1.11 + *1.12 + * This program is free software; you can redistribute it and/or modify1.13 + * it under the terms of the GNU General Public License as published by1.14 + * the Free Software Foundation; either version 2 of the License, or1.15 + * (at your option) any later version.1.16 + *1.17 + * This program is distributed in the hope that it will be useful,1.18 + * but WITHOUT ANY WARRANTY; without even the implied warranty of1.19 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the1.20 + * GNU General Public License for more details.1.21 + */1.22 +1.23 +/**1.24 + * Valid command codes (hex):1.25 + * 00 Test1.26 + * 101.27 + * 11 Inquiry1.28 + * 121.29 + * 13 Request Sense1.30 + * 14 Read TOC1.31 + * 151.32 + * 161.33 + * 201.34 + * 211.35 + * 221.36 + * 30 Read CD1.37 + * 311.38 + * 401.39 + * 501.40 + * 511.41 + * 521.42 + * 531.43 + * 541.44 + * 551.45 + * 701.46 + * 711.47 + * 721.48 + * 731.49 + * FE1.50 + */1.51 +1.52 +#define PKT_CMD_TEST_READY 0x001.53 +#define PKT_CMD_IDENTIFY 0x111.54 +#define PKT_CMD_SENSE 0x131.55 +#define PKT_CMD_READ_TOC 0x141.56 +#define PKT_CMD_READ_SECTOR 0x301.57 +1.58 +#define PKT_ERR_OK 0x00001.59 +#define PKT_ERR_NODISC 0x3A021.60 +#define PKT_ERR_BADCMD 0x20051.61 +#define PKT_ERR_BADFIELD 0x24051.62 +1.63 +1.64 +#define IDE_READ_MODE1 0x201.65 +#define IDE_READ_RAW 0x30
.