cfg802154.h (a5dd1d72d868ec9c8f44d60ca29900b6a38321b4) cfg802154.h (4a9a816a4f8c79260446811bdf80615b36539949)
1/*
2 * Copyright (C) 2007, 2008, 2009 Siemens AG
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2
6 * as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

--- 18 unchanged lines hidden (view full) ---

27 * used as a bit mask to specify channel numbers within a channel page.
28 */
29#define WPAN_NUM_CHANNELS 27
30#define WPAN_NUM_PAGES 32
31
32struct wpan_phy;
33
34struct cfg802154_ops {
1/*
2 * Copyright (C) 2007, 2008, 2009 Siemens AG
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2
6 * as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

--- 18 unchanged lines hidden (view full) ---

27 * used as a bit mask to specify channel numbers within a channel page.
28 */
29#define WPAN_NUM_CHANNELS 27
30#define WPAN_NUM_PAGES 32
31
32struct wpan_phy;
33
34struct cfg802154_ops {
35 struct net_device * (*add_virtual_intf_deprecated)(struct wpan_phy *wpan_phy,
36 const char *name,
37 int type);
38 void (*del_virtual_intf_deprecated)(struct wpan_phy *wpan_phy,
39 struct net_device *dev);
35};
36
37struct wpan_phy {
38 struct mutex pib_lock;
39
40 /*
41 * This is a PIB according to 802.15.4-2011.
42 * We do not provide timing-related variables, as they

--- 10 unchanged lines hidden (view full) ---

53 s8 frame_retries;
54
55 bool lbt;
56 s32 cca_ed_level;
57
58 struct device dev;
59 int idx;
60
40};
41
42struct wpan_phy {
43 struct mutex pib_lock;
44
45 /*
46 * This is a PIB according to 802.15.4-2011.
47 * We do not provide timing-related variables, as they

--- 10 unchanged lines hidden (view full) ---

58 s8 frame_retries;
59
60 bool lbt;
61 s32 cca_ed_level;
62
63 struct device dev;
64 int idx;
65
61 struct net_device *(*add_iface)(struct wpan_phy *phy,
62 const char *name, int type);
63 void (*del_iface)(struct wpan_phy *phy, struct net_device *dev);
64
65 char priv[0] __aligned(NETDEV_ALIGN);
66};
67
68#define to_phy(_dev) container_of(_dev, struct wpan_phy, dev)
69
70struct wpan_phy *
71wpan_phy_alloc(const struct cfg802154_ops *ops, size_t priv_size);
72static inline void wpan_phy_set_dev(struct wpan_phy *phy, struct device *dev)

--- 29 unchanged lines hidden ---
66 char priv[0] __aligned(NETDEV_ALIGN);
67};
68
69#define to_phy(_dev) container_of(_dev, struct wpan_phy, dev)
70
71struct wpan_phy *
72wpan_phy_alloc(const struct cfg802154_ops *ops, size_t priv_size);
73static inline void wpan_phy_set_dev(struct wpan_phy *phy, struct device *dev)

--- 29 unchanged lines hidden ---