/*1* Copyright (C) 2007, 2008, 2009 Siemens AG2*3* This program is free software; you can redistribute it and/or modify4* it under the terms of the GNU General Public License version 25* as published by the Free Software Foundation.6*7* This program is distributed in the hope that it will be useful,8* but WITHOUT ANY WARRANTY; without even the implied warranty of9* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the10* GNU General Public License for more details.11*12* You should have received a copy of the GNU General Public License along13* with this program; if not, write to the Free Software Foundation, Inc.,14* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.15*16*/17#ifndef IEEE_802154_LOCAL_H18#define IEEE_802154_LOCAL_H1920int __init ieee802154_nl_init(void);21void __exit ieee802154_nl_exit(void);2223#define IEEE802154_OP(_cmd, _func) \24{ \25.cmd = _cmd, \26.policy = ieee802154_policy, \27.doit = _func, \28.dumpit = NULL, \29.flags = GENL_ADMIN_PERM, \30}3132#define IEEE802154_DUMP(_cmd, _func, _dump) \33{ \34.cmd = _cmd, \35.policy = ieee802154_policy, \36.doit = _func, \37.dumpit = _dump, \38}3940struct genl_info;4142struct sk_buff *ieee802154_nl_create(int flags, u8 req);43int ieee802154_nl_mcast(struct sk_buff *msg, unsigned int group);44struct sk_buff *ieee802154_nl_new_reply(struct genl_info *info,45int flags, u8 req);46int ieee802154_nl_reply(struct sk_buff *msg, struct genl_info *info);4748extern struct genl_family nl802154_family;49int nl802154_mac_register(void);50int nl802154_phy_register(void);5152#endif535455