xref: /openbmc/linux/net/ieee802154/core.h (revision a5dd1d72)
1a5dd1d72SAlexander Aring #ifndef __IEEE802154_CORE_H
2a5dd1d72SAlexander Aring #define __IEEE802154_CORE_H
3a5dd1d72SAlexander Aring 
4a5dd1d72SAlexander Aring #include <net/cfg802154.h>
5a5dd1d72SAlexander Aring 
6a5dd1d72SAlexander Aring struct cfg802154_registered_device {
7a5dd1d72SAlexander Aring 	const struct cfg802154_ops *ops;
8a5dd1d72SAlexander Aring 
9a5dd1d72SAlexander Aring 	/* must be last because of the way we do wpan_phy_priv(),
10a5dd1d72SAlexander Aring 	 * and it should at least be aligned to NETDEV_ALIGN
11a5dd1d72SAlexander Aring 	 */
12a5dd1d72SAlexander Aring 	struct wpan_phy wpan_phy __aligned(NETDEV_ALIGN);
13a5dd1d72SAlexander Aring };
14a5dd1d72SAlexander Aring 
15a5dd1d72SAlexander Aring /* free object */
16a5dd1d72SAlexander Aring void cfg802154_dev_free(struct cfg802154_registered_device *rdev);
17a5dd1d72SAlexander Aring 
18a5dd1d72SAlexander Aring #endif /* __IEEE802154_CORE_H */
19