added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / compiler / include / devices / newstyle.h
blob05e453f49b88ec7929111a9658eb05660861285f
1 #ifndef DEVICES_NEWSTYLE_H
2 #define DEVICES_NEWSTYLE_H
4 /*
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: New Style Device standard as described on Amiga Developper CD
9 Lang: english
12 #define NSCMD_DEVICEQUERY 0x4000
14 struct NSDeviceQueryResult
16 /* Reset the following members for every query */
18 ULONG DevQueryFormat;
19 ULONG SizeAvailable;
21 /* Common information (read only) */
23 UWORD DeviceType;
24 UWORD DeviceSubType;
25 UWORD *SupportedCommands;
27 /* May be extended. So check SizeAvailable! */
30 #define NSDEVTYPE_UNKNOWN 0
31 #define NSDEVTYPE_GAMEPORT 1
32 #define NSDEVTYPE_TIMER 2
33 #define NSDEVTYPE_KEYBOARD 3
34 #define NSDEVTYPE_INPUT 4
35 #define NSDEVTYPE_TRACKDISK 5
36 #define NSDEVTYPE_CONSOLE 6
37 #define NSDEVTYPE_SANA2 7
38 #define NSDEVTYPE_AUDIO 8
39 #define NSDEVTYPE_CLIPBOARD 9
40 #define NSDEVTYPE_PRINTER 10
41 #define NSDEVTYPE_SERIAL 11
42 #define NSDEVTYPE_PARALLEL 12
44 #ifndef NSCMD_TD_READ64
46 #define DRIVE_NEWSTYLE 0x4E535459L /* NSTY */
48 #define NSCMD_TD_READ64 0xC000
49 #define NSCMD_TD_WRITE64 0xC001
50 #define NSCMD_TD_SEEK64 0xC002
51 #define NSCMD_TD_FORMAT64 0xC003
53 #define NSCMD_ETD_READ64 0xE000
54 #define NSCMD_ETD_WRITE64 0xE001
55 #define NSCMD_ETD_SEEK64 0xE002
56 #define NSCMD_ETD_FORMAT64 0xE003
58 #endif /* NSCMD_TD_READ64 */
60 #endif /* DEVICES_NEWSTYLE_H */