diff options
author | Alexander Aring <alex.aring@gmail.com> | 2015-08-27 22:49:19 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-09-17 14:20:05 +0300 |
commit | 493bc90a96839ffde5e6216c62c025d2f9e6efc3 (patch) | |
tree | 8a43e41b7a921cf67172208286621a1e2a37df3e /drivers/net/ieee802154/at86rf230.h | |
parent | ed4a26b0995baf10807ebb3f18fba3db2c6539fc (diff) | |
download | linux-493bc90a96839ffde5e6216c62c025d2f9e6efc3.tar.xz |
at86rf230: add debugfs support
This patch introduce debugfs support for collect trac status stats. To
clear the stats ifdown the interface of at86rf230 and start the
interface again.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/net/ieee802154/at86rf230.h')
-rw-r--r-- | drivers/net/ieee802154/at86rf230.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ieee802154/at86rf230.h b/drivers/net/ieee802154/at86rf230.h index 1e6d1cc677f6..fd9c1f467f63 100644 --- a/drivers/net/ieee802154/at86rf230.h +++ b/drivers/net/ieee802154/at86rf230.h @@ -216,5 +216,13 @@ #define STATE_TRANSITION_IN_PROGRESS 0x1F #define TRX_STATE_MASK (0x1F) +#define TRAC_MASK(x) ((x & 0xe0) >> 5) + +#define TRAC_SUCCESS 0 +#define TRAC_SUCCESS_DATA_PENDING 1 +#define TRAC_SUCCESS_WAIT_FOR_ACK 2 +#define TRAC_CHANNEL_ACCESS_FAILURE 3 +#define TRAC_NO_ACK 5 +#define TRAC_INVALID 7 #endif /* !_AT86RF230_H */ |