Blame view

net/ieee802154/ieee802154.h 1.56 KB
78fe738d1   Dmitry Eremin-Solenikov   ieee802154: split...
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
  /*
   * 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 IEEE_802154_LOCAL_H
  #define IEEE_802154_LOCAL_H
  
  int __init ieee802154_nl_init(void);
  void __exit ieee802154_nl_exit(void);
  
  #define IEEE802154_OP(_cmd, _func)			\
  	{						\
  		.cmd	= _cmd,				\
  		.policy	= ieee802154_policy,		\
  		.doit	= _func,			\
  		.dumpit	= NULL,				\
  		.flags	= GENL_ADMIN_PERM,		\
  	}
  
  #define IEEE802154_DUMP(_cmd, _func, _dump)		\
  	{						\
  		.cmd	= _cmd,				\
  		.policy	= ieee802154_policy,		\
  		.doit	= _func,			\
  		.dumpit	= _dump,			\
  	}
339b4ca5f   Dmitry Eremin-Solenikov   ieee802154: add t...
40
  struct genl_info;
78fe738d1   Dmitry Eremin-Solenikov   ieee802154: split...
41
42
  struct sk_buff *ieee802154_nl_create(int flags, u8 req);
  int ieee802154_nl_mcast(struct sk_buff *msg, unsigned int group);
339b4ca5f   Dmitry Eremin-Solenikov   ieee802154: add t...
43
44
45
  struct sk_buff *ieee802154_nl_new_reply(struct genl_info *info,
  		int flags, u8 req);
  int ieee802154_nl_reply(struct sk_buff *msg, struct genl_info *info);
78fe738d1   Dmitry Eremin-Solenikov   ieee802154: split...
46
47
48
49
50
51
  
  extern struct genl_family nl802154_family;
  int nl802154_mac_register(void);
  int nl802154_phy_register(void);
  
  #endif