Lines Matching +full:magic +full:- +full:packet
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
8 * Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-11-C-0249
43 #define SUME_LOCK(adapter) mtx_lock(&adapter->lock);
44 #define SUME_UNLOCK(adapter) mtx_unlock(&adapter->lock);
104 /* Module register data (packet counters, link status...) */
124 #define SUME_INIT_RTAG -3
126 #define SUME_MIN_PKT_SIZE (ETHER_MIN_LEN - ETHER_CRC_LEN)
152 bus_addr_t buf_hw_addr; /* -- " -- mapped. */
201 * sport - not used for RX. For TX, set to 0x02, 0x08, 0x20, 0x80, depending on
203 * dport - For RX, is set to 0x02, 0x08, 0x20, 0x80, depending on the receiving
206 * plen - length of the send/receive packet data (in bytes)
207 * magic - SUME hardcoded magic number which should be 0xcafe
208 * t1, t1 - could be used for timestamping by SUME
214 uint16_t magic; member
221 * addr - address of the SUME module register to read/write
222 * val - value to write/read to/from the register
223 * rtag - returned on read: transaction tag, for syncronization
224 * optype - 0x1f when writing, 0x00 for reading