AHI/HDAudio: fixes for ATI south bridge controller
[AROS.git] / compiler / include / devices / irda.h
blob14ef534c199f084b4be4a27756e937055270f8ba
1 #ifndef DEVICES_IRDA_H
2 #define DEVICES_IRDA_H
3 /*
4 ** $VER: irda.h 1.1 (22.12.2011)
5 **
6 ** standard irda host controller interface device include file
7 **
8 ** (C) Copyright 2005 Chris Hodges
9 ** (C) Copyright 2011 AROS Development Team
10 ** All Rights Reserved
13 #ifndef EXEC_IO_H
14 #include "exec/io.h"
15 #endif
17 #ifndef EXEC_ERRORS_H
18 #include <exec/errors.h>
19 #endif
21 /* IO Request structure */
23 struct IOIrDAReq
25 struct IORequest ioir_Req;
26 ULONG ioir_Actual; /* Actual bytes transferred */
27 ULONG ioir_Length; /* Size of buffer */
28 APTR ioir_Data; /* Pointer to in/out buffer */
29 ULONG ioir_Baud; /* IrDA baud rate requested */
30 UWORD ioir_NumBOFs; /* Number of BOFs in SIR */
31 UBYTE ioir_Address; /* LAP Address field */
32 UBYTE ioir_Control; /* LAP Control field */
33 APTR ioir_UserData; /* private data, may not be touched by hardware driver,
34 do not make assumptions about its contents */
37 /* non-standard commands */
39 #define IRCMD_QUERYDEVICE (CMD_NONSTD+0)
41 /* Error codes for io_Error field */
43 #define IRIOERR_NO_ERROR 0 /* No error occured */
44 #define IRIOERR_IRDAOFFLINE 1 /* IrDA non-operational */
45 #define IRIOERR_HOSTERROR 3 /* Unspecific host error */
46 #define IRIOERR_TIMEOUT 6 /* No acknoledge on packet */
47 #define IRIOERR_OVERFLOW 7 /* More data received than expected */
48 #define IRIOERR_BADPARAMS 11 /* Illegal parameters in request */
49 #define IRIOERR_OUTOFMEMORY 12 /* Out of auxiliary memory for the driver */
51 /* Tags for IRCMD_QUERYDEVICE */
53 #define IRA_Dummy (TAG_USER + 0x4711)
54 #define IRA_SuppBaudRate (IRA_Dummy + 0x01)
55 #define IRA_SuppDataSize (IRA_Dummy + 0x02)
56 #define IRA_Author (IRA_Dummy + 0x10)
57 #define IRA_ProductName (IRA_Dummy + 0x11)
58 #define IRA_Version (IRA_Dummy + 0x12)
59 #define IRA_Revision (IRA_Dummy + 0x13)
60 #define IRA_Description (IRA_Dummy + 0x14)
61 #define IRA_Copyright (IRA_Dummy + 0x15)
62 #define IRA_DriverVersion (IRA_Dummy + 0x20)
64 #endif /* DEVICES_IRDA_H */