Deleted Added
full compact
t4_ioctl.h (253688) t4_ioctl.h (253691)
1/*-
2 * Copyright (c) 2011 Chelsio Communications, Inc.
3 * All rights reserved.
4 * Written by: Navdeep Parhar <np@FreeBSD.org>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
1/*-
2 * Copyright (c) 2011 Chelsio Communications, Inc.
3 * All rights reserved.
4 * Written by: Navdeep Parhar <np@FreeBSD.org>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $FreeBSD: head/sys/dev/cxgbe/t4_ioctl.h 253688 2013-07-26 20:54:33Z np $
27 * $FreeBSD: head/sys/dev/cxgbe/t4_ioctl.h 253691 2013-07-26 22:04:11Z np $
28 *
29 */
30
31#ifndef __T4_IOCTL_H__
32#define __T4_IOCTL_H__
33
34#include <sys/types.h>
35#include <net/ethernet.h>

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

49 T4_GET_SGE_CONTEXT, /* get SGE context for a queue */
50 T4_LOAD_FW, /* flash firmware */
51 T4_GET_MEM, /* read memory */
52 T4_GET_I2C, /* read from i2c addressible device */
53 T4_CLEAR_STATS, /* clear a port's MAC statistics */
54 T4_SET_OFLD_POLICY, /* Set offload policy */
55 T4_SET_SCHED_CLASS, /* set sched class */
56 T4_SET_SCHED_QUEUE, /* set queue class */
28 *
29 */
30
31#ifndef __T4_IOCTL_H__
32#define __T4_IOCTL_H__
33
34#include <sys/types.h>
35#include <net/ethernet.h>

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

49 T4_GET_SGE_CONTEXT, /* get SGE context for a queue */
50 T4_LOAD_FW, /* flash firmware */
51 T4_GET_MEM, /* read memory */
52 T4_GET_I2C, /* read from i2c addressible device */
53 T4_CLEAR_STATS, /* clear a port's MAC statistics */
54 T4_SET_OFLD_POLICY, /* Set offload policy */
55 T4_SET_SCHED_CLASS, /* set sched class */
56 T4_SET_SCHED_QUEUE, /* set queue class */
57 T4_GET_TRACER, /* get information about a tracer */
58 T4_SET_TRACER, /* program a tracer */
57};
58
59struct t4_reg {
60 uint32_t addr;
61 uint32_t size;
62 uint64_t val;
63};
64

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

221};
222
223struct t4_mem_range {
224 uint32_t addr;
225 uint32_t len;
226 uint32_t *data;
227};
228
59};
60
61struct t4_reg {
62 uint32_t addr;
63 uint32_t size;
64 uint64_t val;
65};
66

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

223};
224
225struct t4_mem_range {
226 uint32_t addr;
227 uint32_t len;
228 uint32_t *data;
229};
230
231#define T4_TRACE_LEN 112
232struct t4_trace_params {
233 uint32_t data[T4_TRACE_LEN / 4];
234 uint32_t mask[T4_TRACE_LEN / 4];
235 uint16_t snap_len;
236 uint16_t min_len;
237 uint8_t skip_ofst;
238 uint8_t skip_len;
239 uint8_t invert;
240 uint8_t port;
241};
242
243struct t4_tracer {
244 uint8_t idx;
245 uint8_t enabled;
246 uint8_t valid;
247 struct t4_trace_params tp;
248};
249
229#define CHELSIO_T4_GETREG _IOWR('f', T4_GETREG, struct t4_reg)
230#define CHELSIO_T4_SETREG _IOW('f', T4_SETREG, struct t4_reg)
231#define CHELSIO_T4_REGDUMP _IOWR('f', T4_REGDUMP, struct t4_regdump)
232#define CHELSIO_T4_GET_FILTER_MODE _IOWR('f', T4_GET_FILTER_MODE, uint32_t)
233#define CHELSIO_T4_SET_FILTER_MODE _IOW('f', T4_SET_FILTER_MODE, uint32_t)
234#define CHELSIO_T4_GET_FILTER _IOWR('f', T4_GET_FILTER, struct t4_filter)
235#define CHELSIO_T4_SET_FILTER _IOW('f', T4_SET_FILTER, struct t4_filter)
236#define CHELSIO_T4_DEL_FILTER _IOW('f', T4_DEL_FILTER, struct t4_filter)
237#define CHELSIO_T4_GET_SGE_CONTEXT _IOWR('f', T4_GET_SGE_CONTEXT, \
238 struct t4_sge_context)
239#define CHELSIO_T4_LOAD_FW _IOW('f', T4_LOAD_FW, struct t4_data)
240#define CHELSIO_T4_GET_MEM _IOW('f', T4_GET_MEM, struct t4_mem_range)
241#define CHELSIO_T4_GET_I2C _IOWR('f', T4_GET_I2C, struct t4_i2c_data)
242#define CHELSIO_T4_CLEAR_STATS _IOW('f', T4_CLEAR_STATS, uint32_t)
250#define CHELSIO_T4_GETREG _IOWR('f', T4_GETREG, struct t4_reg)
251#define CHELSIO_T4_SETREG _IOW('f', T4_SETREG, struct t4_reg)
252#define CHELSIO_T4_REGDUMP _IOWR('f', T4_REGDUMP, struct t4_regdump)
253#define CHELSIO_T4_GET_FILTER_MODE _IOWR('f', T4_GET_FILTER_MODE, uint32_t)
254#define CHELSIO_T4_SET_FILTER_MODE _IOW('f', T4_SET_FILTER_MODE, uint32_t)
255#define CHELSIO_T4_GET_FILTER _IOWR('f', T4_GET_FILTER, struct t4_filter)
256#define CHELSIO_T4_SET_FILTER _IOW('f', T4_SET_FILTER, struct t4_filter)
257#define CHELSIO_T4_DEL_FILTER _IOW('f', T4_DEL_FILTER, struct t4_filter)
258#define CHELSIO_T4_GET_SGE_CONTEXT _IOWR('f', T4_GET_SGE_CONTEXT, \
259 struct t4_sge_context)
260#define CHELSIO_T4_LOAD_FW _IOW('f', T4_LOAD_FW, struct t4_data)
261#define CHELSIO_T4_GET_MEM _IOW('f', T4_GET_MEM, struct t4_mem_range)
262#define CHELSIO_T4_GET_I2C _IOWR('f', T4_GET_I2C, struct t4_i2c_data)
263#define CHELSIO_T4_CLEAR_STATS _IOW('f', T4_CLEAR_STATS, uint32_t)
264#define CHELSIO_T4_GET_TRACER _IOWR('f', T4_GET_TRACER, struct t4_tracer)
265#define CHELSIO_T4_SET_TRACER _IOW('f', T4_SET_TRACER, struct t4_tracer)
243#endif
266#endif