| 1 | /* $Id: strategy.h,v 1.1.1.1 2003/07/02 13:56:58 eleph Exp $ */ | 
|---|
| 2 | /* | 
|---|
| 3 | * OS/2 strategy handler definitions | 
|---|
| 4 | * | 
|---|
| 5 | * (C) 2000-2002 InnoTek Systemberatung GmbH | 
|---|
| 6 | * (C) 2000-2001 Sander van Leeuwen (sandervl@xs4all.nl) | 
|---|
| 7 | * | 
|---|
| 8 | * This program is free software; you can redistribute it and/or | 
|---|
| 9 | * modify it under the terms of the GNU General Public License as | 
|---|
| 10 | * published by the Free Software Foundation; either version 2 of | 
|---|
| 11 | * the License, or (at your option) any later version. | 
|---|
| 12 | * | 
|---|
| 13 | * This program is distributed in the hope that it will be useful, | 
|---|
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|---|
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
|---|
| 16 | * GNU General Public License for more details. | 
|---|
| 17 | * | 
|---|
| 18 | * You should have received a copy of the GNU General Public | 
|---|
| 19 | * License along with this program; if not, write to the Free | 
|---|
| 20 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, | 
|---|
| 21 | * USA. | 
|---|
| 22 | * | 
|---|
| 23 | */ | 
|---|
| 24 |  | 
|---|
| 25 | #ifndef STRATEGY_INCLUDED | 
|---|
| 26 | #define STRATEGY_INCLUDED | 
|---|
| 27 |  | 
|---|
| 28 |  | 
|---|
| 29 | /* Constants relating to the Strategy Routines | 
|---|
| 30 | */ | 
|---|
| 31 |  | 
|---|
| 32 | #define RPDONE    0x0100         // return successful, must be set | 
|---|
| 33 | #define RPBUSY    0x0200         // device is busy (or has no data to return) | 
|---|
| 34 | #define RPDEV     0x4000         // user-defined error | 
|---|
| 35 | #define RPERR     0x8000         // return error | 
|---|
| 36 |  | 
|---|
| 37 | // List of error codes, from chapter 8 of PDD reference | 
|---|
| 38 | #define RPNOTREADY  0x0002 | 
|---|
| 39 | #define RPBADCMD    0x0003 | 
|---|
| 40 | #define RPGENFAIL   0x000c | 
|---|
| 41 | #define RPDEVINUSE  0x0014 | 
|---|
| 42 | #define RPINITFAIL  0x0015 | 
|---|
| 43 |  | 
|---|
| 44 | // list of Strategy commands from PDD reference | 
|---|
| 45 | // Note this is only the list of commands audio device drivers care about | 
|---|
| 46 | #define STRATEGY_INIT          0x00 | 
|---|
| 47 | #define STRATEGY_OPEN          0x0D | 
|---|
| 48 | #define STRATEGY_CLOSE         0x0E | 
|---|
| 49 | #define STRATEGY_GENIOCTL      0x10 | 
|---|
| 50 | #define STRATEGY_DEINSTALL     0x14 | 
|---|
| 51 | #define STRATEGY_INITCOMPLETE  0x1F | 
|---|
| 52 |  | 
|---|
| 53 | #endif | 
|---|