RSeries astromech firmware
l2cdefs.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * Copyright (C) 1999-2012 Broadcom Corporation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at:
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  ******************************************************************************/
18 
19 #ifndef L2CDEFS_H
20 #define L2CDEFS_H
21 
22 /* Define the L2CAP connection result codes
23 */
24 #define L2CAP_CONN_OK 0
25 #define L2CAP_CONN_PENDING 1
26 #define L2CAP_CONN_NO_PSM 2
27 #define L2CAP_CONN_SECURITY_BLOCK 3
28 #define L2CAP_CONN_NO_RESOURCES 4
29 #define L2CAP_CONN_BAD_CTLR_ID 5 /* AMP related */
30 #define L2CAP_CONN_TIMEOUT 0xEEEE
31 #define L2CAP_CONN_AMP_FAILED 254
32 #define L2CAP_CONN_NO_LINK 255 /* Add a couple of our own for internal use */
33 #define L2CAP_CONN_CANCEL 256 /* L2CAP connection cancelled */
34 
35 
36 /* Define the L2CAP configuration result codes
37 */
38 #define L2CAP_CFG_OK 0
39 #define L2CAP_CFG_UNACCEPTABLE_PARAMS 1
40 #define L2CAP_CFG_FAILED_NO_REASON 2
41 #define L2CAP_CFG_UNKNOWN_OPTIONS 3
42 #define L2CAP_CFG_PENDING 4
43 #define L2CAP_CFG_FLOW_SPEC_REJECTED 5
44 
45 #endif