2 * This file is part of the Chelsio T3 Ethernet driver for Linux.
4 * Copyright (C) 2003-2006 Chelsio Communications. All rights reserved.
6 * This program is distributed in the hope that it will be useful, but WITHOUT
7 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
8 * FITNESS FOR A PARTICULAR PURPOSE. See the LICENSE file included in this
9 * release for licensing terms and conditions.
16 * Ioctl commands specific to this driver.
19 CHELSIO_SETREG = 1024,
35 CHELSIO_SET_TRACE_FILTER,
36 CHELSIO_SET_QSET_PARAMS,
37 CHELSIO_GET_QSET_PARAMS,
57 enum { CNTXT_TYPE_EGRESS, CNTXT_TYPE_FL, CNTXT_TYPE_RSP, CNTXT_TYPE_CQ };
76 struct ch_qset_params {
87 struct ch_pktsched_params {
100 /* TCB size in 32-bit words */
101 #define TCB_WORDS (TCB_SIZE / 4)
103 enum { MEM_CM, MEM_PMRX, MEM_PMTX }; /* ch_mem_range.mem_id values */
108 uint16_t mtus[NMTUS];
131 uint32_t tcb_data[TCB_WORDS];
134 struct ch_tcam_word {
151 uint32_t vlan_mask:12;
153 uint32_t intf_mask:4;
156 uint8_t invert_match:1;
163 #define SIOCCHIOCTL SIOCDEVPRIVATE