diff options
author | Rahul Lakkireddy | 2017-10-13 15:18:13 +0200 |
---|---|---|
committer | David S. Miller | 2017-10-15 03:35:14 +0200 |
commit | ad75b7d32f2517a6cc92a5d70569c33455157453 (patch) | |
tree | cd85f2a6e0ee606618bf6b31efbbcb5076b9e8c9 /drivers/net/ethernet/chelsio/cxgb4/cudbg_if.h | |
parent | nfp: Explicitly include linux/bug.h (diff) | |
download | kernel-qcow2-linux-ad75b7d32f2517a6cc92a5d70569c33455157453.tar.gz kernel-qcow2-linux-ad75b7d32f2517a6cc92a5d70569c33455157453.tar.xz kernel-qcow2-linux-ad75b7d32f2517a6cc92a5d70569c33455157453.zip |
cxgb4: implement ethtool dump data operations
Implement operations to set/get dump data via ethtool. Also add
template header that precedes dump data, which helps in decoding
and extracting the dump data.
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cudbg_if.h')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cudbg_if.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cudbg_if.h b/drivers/net/ethernet/chelsio/cxgb4/cudbg_if.h new file mode 100644 index 000000000000..ebaa5b7063cf --- /dev/null +++ b/drivers/net/ethernet/chelsio/cxgb4/cudbg_if.h @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2017 Chelsio Communications. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * The full GNU General Public License is included in this distribution in + * the file called "COPYING". + * + */ + +#ifndef __CUDBG_IF_H__ +#define __CUDBG_IF_H__ + +#define CUDBG_MAJOR_VERSION 1 +#define CUDBG_MINOR_VERSION 14 + +enum cudbg_dbg_entity_type { + CUDBG_MAX_ENTITY = 70, +}; + +struct cudbg_init { + struct adapter *adap; /* Pointer to adapter structure */ + void *outbuf; /* Output buffer */ + u32 outbuf_size; /* Output buffer size */ +}; +#endif /* __CUDBG_IF_H__ */ |