1 /*********************************************************************
6 * Status: Experimental.
7 * Author: Dag Brattli <dagb@cs.uit.no>
8 * Created at: Mon Mar 8 14:06:12 1999
9 * Modified at: Mon Mar 22 14:14:54 1999
10 * Modified by: Dag Brattli <dagb@cs.uit.no>
12 * Copyright (c) 1999 Dag Brattli, All Rights Reserved.
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License as
16 * published by the Free Software Foundation; either version 2 of
17 * the License, or (at your option) any later version.
19 * Neither Dag Brattli nor University of Tromsø admit liability nor
20 * provide warranty for any of this software. This material is
21 * provided "AS-IS" and at no charge.
23 ********************************************************************/
28 /* Hint bit positions for first hint byte */
31 #define HINT_COMPUTER 0x04
32 #define HINT_PRINTER 0x08
33 #define HINT_MODEM 0x10
36 #define HINT_EXTENSION 0x80
38 /* Hint bit positions for second hint byte (first extension byte) */
39 #define HINT_TELEPHONY 0x01
40 #define HINT_FILE_SERVER 0x02
41 #define HINT_COMM 0x04
42 #define HINT_MESSAGE 0x08
43 #define HINT_HTTP 0x10
44 #define HINT_OBEX 0x20
46 /* IrLMP character code values */
48 #define CS_ISO_8859_1 0x01
49 #define CS_ISO_8859_2 0x02
50 #define CS_ISO_8859_3 0x03
51 #define CS_ISO_8859_4 0x04
52 #define CS_ISO_8859_5 0x05
53 #define CS_ISO_8859_6 0x06
54 #define CS_ISO_8859_7 0x07
55 #define CS_ISO_8859_8 0x08
56 #define CS_ISO_8859_9 0x09
57 #define CS_UNICODE 0xff
59 #define SOL_IRLMP 266 /* Same as SOL_IRDA for now */
60 #define SOL_IRTTP 266 /* Same as SOL_IRDA for now */
62 #define IRLMP_ENUMDEVICES 1
63 #define IRLMP_IAS_SET 2
64 #define IRLMP_IAS_QUERY 3
65 #define IRLMP_DISCOVERY_MASK_SET 4
67 #define IRTTP_QOS_SET 5
68 #define IRTTP_QOS_GET 6
69 #define IRTTP_MAX_SDU_SIZE 7
71 #define IAS_MAX_STRING 256
72 #define IAS_MAX_OCTET_STRING 1024
73 #define IAS_MAX_CLASSNAME 64
74 #define IAS_MAX_ATTRIBNAME 256
78 struct sockaddr_irda
{
79 sa_family_t sir_family
; /* AF_IRDA */
80 unsigned char sir_lsap_sel
; /* LSAP/TSAP selector */
81 unsigned int sir_addr
; /* Device address */
82 char sir_name
[25]; /* Usually <service>:IrDA:TinyTP */
85 struct irda_device_info
{
86 unsigned int saddr
; /* Address of remote device */
87 unsigned int daddr
; /* Link where it was discovered */
88 char info
[22]; /* Description */
89 unsigned char charset
; /* Charset used for description */
90 unsigned char hints
[2]; /* Hint bits */
93 struct irda_device_list
{
95 struct irda_device_info dev
[0];
99 char irda_class_name
[IAS_MAX_CLASSNAME
];
100 char irda_attrib_name
[IAS_MAX_ATTRIBNAME
];
101 unsigned int irda_attrib_type
;
103 unsigned int irda_attrib_int
;
106 u_char OctetSeq
[IAS_MAX_OCTET_STRING
];
107 } irda_attrib_octet_seq
;
110 unsigned char charset
;
111 unsigned char string
[IAS_MAX_STRING
];
112 } irda_attrib_string
;
116 #endif /* KERNEL_IRDA_H */