Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
include
uapi
linux
caif
caif_socket.h
Go to the documentation of this file.
1
/* linux/caif_socket.h
2
* CAIF Definitions for CAIF socket and network layer
3
* Copyright (C) ST-Ericsson AB 2010
4
* Author: Sjur Brendeland/
[email protected]
5
* License terms: GNU General Public License (GPL) version 2
6
*/
7
8
#ifndef _LINUX_CAIF_SOCKET_H
9
#define _LINUX_CAIF_SOCKET_H
10
11
#include <linux/types.h>
12
#include <linux/socket.h>
13
25
enum
caif_link_selector
{
26
CAIF_LINK_HIGH_BANDW
,
27
CAIF_LINK_LOW_LATENCY
28
};
29
45
enum
caif_channel_priority
{
46
CAIF_PRIO_MIN
= 0x01,
47
CAIF_PRIO_LOW
= 0x04,
48
CAIF_PRIO_NORMAL
= 0x0f,
49
CAIF_PRIO_HIGH
= 0x14,
50
CAIF_PRIO_MAX
= 0x1F
51
};
52
65
enum
caif_protocol_type
{
66
CAIFPROTO_AT
,
67
CAIFPROTO_DATAGRAM
,
68
CAIFPROTO_DATAGRAM_LOOP
,
69
CAIFPROTO_UTIL
,
70
CAIFPROTO_RFM
,
71
CAIFPROTO_DEBUG
,
72
_CAIFPROTO_MAX
73
};
74
#define CAIFPROTO_MAX _CAIFPROTO_MAX
75
80
enum
caif_at_type
{
81
CAIF_ATTYPE_PLAIN
= 2
82
};
90
enum
caif_debug_type
{
91
CAIF_DEBUG_TRACE_INTERACTIVE
= 0,
92
CAIF_DEBUG_TRACE
,
93
CAIF_DEBUG_INTERACTIVE
,
94
};
95
101
enum
caif_debug_service
{
102
CAIF_RADIO_DEBUG_SERVICE
= 1,
103
CAIF_APP_DEBUG_SERVICE
104
};
105
141
struct
sockaddr_caif
{
142
__kernel_sa_family_t
family
;
143
union
{
144
struct
{
145
__u8
type
;
/* type: enum caif_at_type */
146
}
at
;
/* CAIFPROTO_AT */
147
struct
{
148
char
service
[16];
149
}
util
;
/* CAIFPROTO_UTIL */
150
union
{
151
__u32
connection_id
;
152
__u8
nsapi
;
153
}
dgm
;
/* CAIFPROTO_DATAGRAM(_LOOP)*/
154
struct
{
155
__u32
connection_id
;
156
char
volume
[16];
157
}
rfm
;
/* CAIFPROTO_RFM */
158
struct
{
159
__u8
type
;
/* type:enum caif_debug_type */
160
__u8
service
;
/* service:caif_debug_service */
161
}
dbg
;
/* CAIFPROTO_DEBUG */
162
}
u
;
163
};
164
188
enum
caif_socket_opts
{
189
CAIFSO_LINK_SELECT
= 127,
190
CAIFSO_REQ_PARAM
= 128,
191
CAIFSO_RSP_PARAM
= 129,
192
};
193
194
#endif
/* _LINUX_CAIF_SOCKET_H */
Generated on Thu Jan 10 2013 14:53:47 for Linux Kernel by
1.8.2