Blame view

include/linux/nl802154.h 3.22 KB
2c21d1151   Sergey Lapin   net: add NL802154...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
  /*
   * nl802154.h
   *
   * Copyright (C) 2007, 2008, 2009 Siemens AG
   *
   * This program is free software; you can redistribute it and/or modify
   * it under the terms of the GNU General Public License version 2
   * as published by the Free Software Foundation.
   *
   * This program is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   * GNU General Public License for more details.
   *
   * You should have received a copy of the GNU General Public License along
   * with this program; if not, write to the Free Software Foundation, Inc.,
   * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
   *
   */
  
  #ifndef NL802154_H
  #define NL802154_H
  
  #define IEEE802154_NL_NAME "802.15.4 MAC"
  #define IEEE802154_MCAST_COORD_NAME "coordinator"
  #define IEEE802154_MCAST_BEACON_NAME "beacon"
  
  enum {
  	__IEEE802154_ATTR_INVALID,
  
  	IEEE802154_ATTR_DEV_NAME,
  	IEEE802154_ATTR_DEV_INDEX,
  
  	IEEE802154_ATTR_STATUS,
  
  	IEEE802154_ATTR_SHORT_ADDR,
  	IEEE802154_ATTR_HW_ADDR,
  	IEEE802154_ATTR_PAN_ID,
  
  	IEEE802154_ATTR_CHANNEL,
  
  	IEEE802154_ATTR_COORD_SHORT_ADDR,
  	IEEE802154_ATTR_COORD_HW_ADDR,
  	IEEE802154_ATTR_COORD_PAN_ID,
  
  	IEEE802154_ATTR_SRC_SHORT_ADDR,
  	IEEE802154_ATTR_SRC_HW_ADDR,
  	IEEE802154_ATTR_SRC_PAN_ID,
  
  	IEEE802154_ATTR_DEST_SHORT_ADDR,
  	IEEE802154_ATTR_DEST_HW_ADDR,
  	IEEE802154_ATTR_DEST_PAN_ID,
  
  	IEEE802154_ATTR_CAPABILITY,
  	IEEE802154_ATTR_REASON,
  	IEEE802154_ATTR_SCAN_TYPE,
  	IEEE802154_ATTR_CHANNELS,
  	IEEE802154_ATTR_DURATION,
  	IEEE802154_ATTR_ED_LIST,
  	IEEE802154_ATTR_BCN_ORD,
  	IEEE802154_ATTR_SF_ORD,
  	IEEE802154_ATTR_PAN_COORD,
  	IEEE802154_ATTR_BAT_EXT,
  	IEEE802154_ATTR_COORD_REALIGN,
  	IEEE802154_ATTR_SEC,
16eea493d   Dmitry Eremin-Solenikov   ieee802154: add s...
66
  	IEEE802154_ATTR_PAGE,
1eaa9d03d   Dmitry Eremin-Solenikov   ieee802154: add L...
67
68
69
  	IEEE802154_ATTR_CHANNEL_PAGE_LIST,
  
  	IEEE802154_ATTR_PHY_NAME,
90c049b2c   alex.bluesman.smirnov@gmail.com   ieee802154: inter...
70
  	IEEE802154_ATTR_DEV_TYPE,
16eea493d   Dmitry Eremin-Solenikov   ieee802154: add s...
71

2c21d1151   Sergey Lapin   net: add NL802154...
72
73
74
75
  	__IEEE802154_ATTR_MAX,
  };
  
  #define IEEE802154_ATTR_MAX (__IEEE802154_ATTR_MAX - 1)
78090a58c   Dmitry Eremin-Solenikov   nl802154: make ie...
76
  extern const struct nla_policy ieee802154_policy[];
2c21d1151   Sergey Lapin   net: add NL802154...
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
  
  /* commands */
  /* REQ should be responded with CONF
   * and INDIC with RESP
   */
  enum {
  	__IEEE802154_COMMAND_INVALID,
  
  	IEEE802154_ASSOCIATE_REQ,
  	IEEE802154_ASSOCIATE_CONF,
  	IEEE802154_DISASSOCIATE_REQ,
  	IEEE802154_DISASSOCIATE_CONF,
  	IEEE802154_GET_REQ,
  	IEEE802154_GET_CONF,
  	IEEE802154_RESET_REQ,
  	IEEE802154_RESET_CONF,
  	IEEE802154_SCAN_REQ,
  	IEEE802154_SCAN_CONF,
  	IEEE802154_SET_REQ,
  	IEEE802154_SET_CONF,
  	IEEE802154_START_REQ,
  	IEEE802154_START_CONF,
  	IEEE802154_SYNC_REQ,
  	IEEE802154_POLL_REQ,
  	IEEE802154_POLL_CONF,
  
  	IEEE802154_ASSOCIATE_INDIC,
  	IEEE802154_ASSOCIATE_RESP,
  	IEEE802154_DISASSOCIATE_INDIC,
  	IEEE802154_BEACON_NOTIFY_INDIC,
  	IEEE802154_ORPHAN_INDIC,
  	IEEE802154_ORPHAN_RESP,
  	IEEE802154_COMM_STATUS_INDIC,
  	IEEE802154_SYNC_LOSS_INDIC,
  
  	IEEE802154_GTS_REQ, /* Not supported yet */
  	IEEE802154_GTS_INDIC, /* Not supported yet */
  	IEEE802154_GTS_CONF, /* Not supported yet */
  	IEEE802154_RX_ENABLE_REQ, /* Not supported yet */
  	IEEE802154_RX_ENABLE_CONF, /* Not supported yet */
8e753dd0a   Dmitry Eremin-Solenikov   nl802154: add sup...
117
  	IEEE802154_LIST_IFACE,
1eaa9d03d   Dmitry Eremin-Solenikov   ieee802154: add L...
118
  	IEEE802154_LIST_PHY,
bb1cafb8f   Dmitry Eremin-Solenikov   ieee802154: add s...
119
120
  	IEEE802154_ADD_IFACE,
  	IEEE802154_DEL_IFACE,
8e753dd0a   Dmitry Eremin-Solenikov   nl802154: add sup...
121

2c21d1151   Sergey Lapin   net: add NL802154...
122
123
124
125
  	__IEEE802154_CMD_MAX,
  };
  
  #define IEEE802154_CMD_MAX (__IEEE802154_CMD_MAX - 1)
90c049b2c   alex.bluesman.smirnov@gmail.com   ieee802154: inter...
126
127
  enum {
  	__IEEE802154_DEV_INVALID = -1,
0606069d9   alex.bluesman.smirnov@gmail.com   mac802154: monito...
128

32bad7e30   alex.bluesman.smirnov@gmail.com   mac802154: add wp...
129
130
  	IEEE802154_DEV_WPAN,
  	IEEE802154_DEV_MONITOR,
0606069d9   alex.bluesman.smirnov@gmail.com   mac802154: monito...
131

90c049b2c   alex.bluesman.smirnov@gmail.com   ieee802154: inter...
132
133
  	__IEEE802154_DEV_MAX,
  };
2c21d1151   Sergey Lapin   net: add NL802154...
134
  #endif