Lines Matching +full:xfp +full:- +full:mac
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) 2003 - 2009 NetXen, Inc.
4 * Copyright (C) 2009 - QLogic Corporation.
47 * 7:0 - major
48 * 15:8 - minor
49 * 31:16 - build (little endian)
60 (sizeof(struct rcv_desc) * (rds_ring)->num_desc)
62 (sizeof(struct netxen_rx_buffer) * rds_ring->num_desc)
64 (sizeof(struct status_desc) * (sds_ring)->num_desc)
66 (sizeof(struct netxen_cmd_buffer) * tx_ring->num_desc)
68 (sizeof(struct cmd_desc_type0) * tx_ring->num_desc)
70 #define find_diff_among(a,b,range) ((a)<(b)?((b)-(a)):((b)+(range)-(a)))
88 ((reg) - NETXEN_CRB_PCIX_HOST2 + NETXEN_CRB_PCIX_HOST)
94 (adapter->ahw.db_base + (off))
118 #define FIRST_PAGE_GROUP_SIZE FIRST_PAGE_GROUP_END - FIRST_PAGE_GROUP_START
119 #define SECOND_PAGE_GROUP_SIZE SECOND_PAGE_GROUP_END - SECOND_PAGE_GROUP_START
120 #define THIRD_PAGE_GROUP_SIZE THIRD_PAGE_GROUP_END - THIRD_PAGE_GROUP_START
174 /* Host writes the following to notify that it has done the init-handshake */
208 (((index) + 1) & ((length) - 1))
211 (((index) + (count)) & ((length) - 1))
219 * NetXen host-peg signal message structure
221 * Bit 0-1 : peg_id => 0x2 for tx and 01 for rx
223 * Bit 3-17 : count => for doorbell
224 * Bit 18-27 : ctx_id => Context id
225 * Bit 28-31 : opcode
296 (cmd_desc)->vlan_TCI = cpu_to_le16(v);
299 ((cmd_desc)->port_ctxid |= ((var) & 0x0F))
301 ((cmd_desc)->port_ctxid |= ((var) << 4 & 0xF0))
304 (_desc)->port_ctxid = ((_port) & 0xf) | (((_port) << 4) & 0xf0)
307 (_desc)->flags_opcode = \
311 (_desc)->nfrags__length = \
325 u8 total_hdr_length; /* LSO only : MAC+IP+TCP Hdr size */
365 0-3 port, 4-7 status, 8-11 type, 12-27 total_length
366 28-43 reference_handle, 44-47 protocol, 48-52 pkt_offset
367 53-55 desc_cnt, 56-57 owner, 58-63 opcode
824 /* MUST BE 64-bit aligned.
826 - N hostrq_rds_rings
827 - N hostrq_sds_rings */
853 /* MUST BE 64-bit aligned.
855 - N cardrsp_rds_rings
856 - N cardrs_sds_rings */
926 /* MAC */
989 * Driver --> Firmware
1019 * Firmware --> Driver
1097 * 63:58 - message type
1098 * 57:56 - owner
1099 * 55:53 - desc count
1100 * 52:48 - reserved
1101 * 47:40 - completion id
1102 * 39:32 - opcode
1103 * 31:16 - error code
1104 * 15:00 - reserved
1148 ((adapter)->flags & (NETXEN_NIC_MSI_ENABLED | NETXEN_NIC_MSIX_ENABLED))
1688 (adapter->crb_read(adapter, off))
1690 (adapter->crb_write(adapter, off, val))
1692 (adapter->io_read(adapter, addr))
1694 (adapter->io_write(adapter, addr, val))
1816 {NETXEN_BRDTYPE_P2_SB31_10G, 1, "XGb XFP"},
1831 {NETXEN_BRDTYPE_P3_10G_XFP, 1, "Reference Single XFP Option"}
1849 return -EINVAL; in netxen_nic_get_brd_name_by_type()
1858 return find_diff_among(tx_ring->producer, in netxen_tx_avail()
1859 tx_ring->sw_consumer, tx_ring->num_desc); in netxen_tx_avail()
1863 int netxen_get_flash_mac_addr(struct netxen_adapter *adapter, u64 *mac);
1864 int netxen_p3_get_mac_addr(struct netxen_adapter *adapter, u64 *mac);