diff options
author | Jiri Pirko <jiri@mellanox.com> | 2016-02-16 17:14:42 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-18 07:08:34 +0300 |
commit | de1521923c0f2ee9c6328ad6b3e46e662d88a3cd (patch) | |
tree | 3bf69945190b05314a31717ad45c8cf39fd1d683 /drivers/net/ethernet/rocker/rocker.h | |
parent | 11ce2ba3d05b3ac330022da1f83b589a4f78569c (diff) | |
download | linux-de1521923c0f2ee9c6328ad6b3e46e662d88a3cd.tar.xz |
rocker: push tlv processing into separate files
Carve out TLV processing helpers into separate files.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Scott Feldman <sfeldma@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/rocker/rocker.h')
-rw-r--r-- | drivers/net/ethernet/rocker/rocker.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/drivers/net/ethernet/rocker/rocker.h b/drivers/net/ethernet/rocker/rocker.h new file mode 100644 index 000000000000..23b5e3dfea45 --- /dev/null +++ b/drivers/net/ethernet/rocker/rocker.h @@ -0,0 +1,27 @@ +/* + * drivers/net/ethernet/rocker/rocker.h - Rocker switch device driver + * Copyright (c) 2014-2016 Jiri Pirko <jiri@mellanox.com> + * Copyright (c) 2014 Scott Feldman <sfeldma@gmail.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + */ + +#ifndef _ROCKER_H +#define _ROCKER_H + +#include <linux/types.h> + +#include "rocker_hw.h" + +struct rocker_desc_info { + char *data; /* mapped */ + size_t data_size; + size_t tlv_size; + struct rocker_desc *desc; + dma_addr_t mapaddr; +}; + +#endif |