diff options
author | alex.bluesman.smirnov@gmail.com | 2012-05-15 20:50:20 +0000 |
---|---|---|
committer | David S. Miller | 2012-05-16 15:16:35 -0400 |
commit | 1010f540181b00c7013eeb04d1bf8aedd5a56835 (patch) | |
tree | d339760efacbff5cec1446e463a0699b5636d30c /include/net | |
parent | 0afd7ad9de6b85c0f7ad9edf787de854c8e2fbb5 (diff) |
mac802154: allocation of ieee802154 device
An interface to allocate and register ieee802154 compatible device.
The allocated device has the following representation in memory:
+-----------------------+
| struct wpan_phy |
+-----------------------+
| struct mac802154_priv |
+-----------------------+
| driver's private data |
+-----------------------+
Used by device drivers to register new instance in the stack.
Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/mac802154.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/mac802154.h b/include/net/mac802154.h index 941c4e170b0c..397307516ba3 100644 --- a/include/net/mac802154.h +++ b/include/net/mac802154.h @@ -123,4 +123,11 @@ struct ieee802154_ops { u8 addr[IEEE802154_ADDR_LEN]); }; +/* Basic interface to register ieee802154 device */ +struct ieee802154_dev * +ieee802154_alloc_device(size_t priv_data_lex, struct ieee802154_ops *ops); +void ieee802154_free_device(struct ieee802154_dev *dev); +int ieee802154_register_device(struct ieee802154_dev *dev); +void ieee802154_unregister_device(struct ieee802154_dev *dev); + #endif /* NET_MAC802154_H */ |