Deleted Added
full compact
cxgb_ioctl.h (169978) cxgb_ioctl.h (171471)
1/**************************************************************************
2
3Copyright (c) 2007, Chelsio Inc.
4All rights reserved.
5
6Redistribution and use in source and binary forms, with or without
7modification, are permitted provided that the following conditions are met:
8

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

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

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

20LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26POSSIBILITY OF SUCH DAMAGE.
27
28$FreeBSD: head/sys/dev/cxgb/cxgb_ioctl.h 169978 2007-05-25 09:48:20Z kmacy $
28$FreeBSD: head/sys/dev/cxgb/cxgb_ioctl.h 171471 2007-07-17 06:50:35Z kmacy $
29
30***************************************************************************/
31#ifndef __CHIOCTL_H__
32#define __CHIOCTL_H__
33
34/*
35 * Ioctl commands specific to this driver.
36 */

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

61 CH_SET_QSET_NUM,
62 CH_GET_QSET_NUM,
63 CH_SET_PKTSCHED,
64 CH_IFCONF_GETREGS,
65 CH_GETMIIREGS,
66 CH_SETMIIREGS,
67 CH_SET_FILTER,
68 CH_SET_HW_SCHED,
29
30***************************************************************************/
31#ifndef __CHIOCTL_H__
32#define __CHIOCTL_H__
33
34/*
35 * Ioctl commands specific to this driver.
36 */

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

61 CH_SET_QSET_NUM,
62 CH_GET_QSET_NUM,
63 CH_SET_PKTSCHED,
64 CH_IFCONF_GETREGS,
65 CH_GETMIIREGS,
66 CH_SETMIIREGS,
67 CH_SET_FILTER,
68 CH_SET_HW_SCHED,
69 CH_DEL_FILTER,
69};
70
71struct ch_reg {
72 uint32_t addr;
73 uint32_t val;
74};
75
76struct ch_cntxt {

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

125 uint8_t sched;
126 int8_t mode;
127 int8_t channel;
128 int32_t kbps; /* rate in Kbps */
129 int32_t class_ipg; /* tenths of nanoseconds */
130 int32_t flow_ipg; /* usec */
131};
132
70};
71
72struct ch_reg {
73 uint32_t addr;
74 uint32_t val;
75};
76
77struct ch_cntxt {

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

126 uint8_t sched;
127 int8_t mode;
128 int8_t channel;
129 int32_t kbps; /* rate in Kbps */
130 int32_t class_ipg; /* tenths of nanoseconds */
131 int32_t flow_ipg; /* usec */
132};
133
134struct ch_filter_tuple {
135 uint32_t sip;
136 uint32_t dip;
137 uint16_t sport;
138 uint16_t dport;
139 uint16_t vlan:12;
140 uint16_t vlan_prio:3;
141};
142
143struct ch_filter {
144 uint32_t cmd;
145 uint32_t filter_id;
146 struct ch_filter_tuple val;
147 struct ch_filter_tuple mask;
148 uint16_t mac_addr_idx;
149 uint8_t mac_hit:1;
150 uint8_t proto:2;
151
152 uint8_t want_filter_id:1; /* report filter TID instead of RSS hash */
153 uint8_t pass:1; /* whether to pass or drop packets */
154 uint8_t rss:1; /* use RSS or specified qset */
155 uint8_t qset;
156};
157
133#ifndef TCB_SIZE
134# define TCB_SIZE 128
135#endif
136
137/* TCB size in 32-bit words */
138#define TCB_WORDS (TCB_SIZE / 4)
139
140enum { MEM_CM, MEM_PMRX, MEM_PMTX }; /* ch_mem_range.mem_id values */

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

227
228
229#define CHELSIO_SET_TRACE_FILTER _IOW('f', CH_SET_TRACE_FILTER, struct ch_trace)
230#define CHELSIO_SET_PKTSCHED _IOW('f', CH_SET_PKTSCHED, struct ch_pktsched_params)
231#define CHELSIO_IFCONF_GETREGS _IOWR('f', CH_IFCONF_GETREGS, struct ifconf_regs)
232#define SIOCGMIIREG _IOWR('f', CH_GETMIIREGS, struct mii_data)
233#define SIOCSMIIREG _IOWR('f', CH_SETMIIREGS, struct mii_data)
234#define CHELSIO_SET_HW_SCHED _IOWR('f', CH_SET_HW_SCHED, struct ch_hw_sched)
158#ifndef TCB_SIZE
159# define TCB_SIZE 128
160#endif
161
162/* TCB size in 32-bit words */
163#define TCB_WORDS (TCB_SIZE / 4)
164
165enum { MEM_CM, MEM_PMRX, MEM_PMTX }; /* ch_mem_range.mem_id values */

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

252
253
254#define CHELSIO_SET_TRACE_FILTER _IOW('f', CH_SET_TRACE_FILTER, struct ch_trace)
255#define CHELSIO_SET_PKTSCHED _IOW('f', CH_SET_PKTSCHED, struct ch_pktsched_params)
256#define CHELSIO_IFCONF_GETREGS _IOWR('f', CH_IFCONF_GETREGS, struct ifconf_regs)
257#define SIOCGMIIREG _IOWR('f', CH_GETMIIREGS, struct mii_data)
258#define SIOCSMIIREG _IOWR('f', CH_SETMIIREGS, struct mii_data)
259#define CHELSIO_SET_HW_SCHED _IOWR('f', CH_SET_HW_SCHED, struct ch_hw_sched)
260#define CHELSIO_SET_FILTER _IOW('f', CH_SET_FILTER, struct ch_filter)
261#define CHELSIO_DEL_FILTER _IOW('f', CH_DEL_FILTER, struct ch_filter)
235#define CHELSIO_DEVUP _IO('f', CH_DEVUP)
236#endif
262#define CHELSIO_DEVUP _IO('f', CH_DEVUP)
263#endif