Lines Matching +full:tx +full:- +full:enable
1 /*-
10 found at http://www.gnu.org/licenses/gpl-2.0.html
61 /* *INDENT-OFF* */
65 /* *INDENT-ON* */
97 #define AL_ETH_TSO_MSS_MAX_VAL (AL_ETH_MAX_FRAME_LEN - 200)
174 /** Tx to Rx switching decision type */
182 /** Tx to Rx VLAN ID selection type */
194 * will be set according to inner packet when packet is tunneled, for non-tunneled
268 al_bool obay_enable; /**< stop tx when pause received */
278 * if prio_q_map[1][7] = 0xC, then TX queues 2
294 /* Packet Tx flags */
295 #define AL_ETH_TX_FLAGS_TSO AL_BIT(7) /**< Enable TCP/UDP segmentation offloading */
296 #define AL_ETH_TX_FLAGS_IPV4_L3_CSUM AL_BIT(13) /**< Enable IPv4 header checksum calculation */
297 #define AL_ETH_TX_FLAGS_L4_CSUM AL_BIT(14) /**< Enable TCP/UDP checksum calculation */
300 #define AL_ETH_TX_FLAGS_ENCRYPT AL_BIT(16) /**< Enable TX packet encryption, V3 */
307 /** this structure used for tx packet meta data */
327 uint8_t l4_header_len; /**< in words(32-bits) */
333 uint8_t ts_index:4; /**< index of regiser where to store the tx timestamp */
342 * Target-ID to be assigned to the packet descriptors
343 * Requires Target-ID in descriptor to be enabled for the specific UDMA
356 /* Packet Rx flags - word 3 in Rx completion descriptor */
371 uint32_t flags; /**< see flags above, depends on context(tx or rx) */
386 * Target-ID to be assigned to the packet descriptors
387 * Requires Target-ID in descriptor to be enabled for the specific UDMA
425 /* uint8_t tx_queues;*//* number of tx queues */
427 /* uint8_t rx_queues;*//* number of tx queues */
429 uint8_t enable_rx_parser; /**< config and enable rx parsing */
464 * - initialize the adapter data structure
465 * - initialize the Tx and Rx UDMA
466 * - enable the Tx and Rx UDMA, the rings will be still disabled at this point.
487 * enable the ec and mac interrupts
507 * Configure and enable a queue ring
510 * @param type tx or rx
521 * enable a queue if it was previously disabled
524 * @param type tx or rx
527 * @return -EPERM (not implemented yet).
534 * @param type tx or rx
537 * @return -EPERM (not implemented yet).
555 * stop the mac tx and rx paths.
563 * start the mac tx and rx paths.
571 * Perform gearbox reset for tx lanes And/Or Rx lanes.
577 * @param tx_reset assert and de-assert reset for tx lanes
578 * @param rx_reset assert and de-assert reset for rx lanes
583 * Enable / Disable forward error correction (FEC)
586 * @param enable true to enable FEC. false to disable FEC.
590 int al_eth_fec_enable(struct al_hal_eth_adapter *adapter, al_bool enable);
622 * @param an_enable set to AL_TRUE to enable auto negotiation
626 * @param full_duplex set to AL_TRUE to enable full duplex mode (relevant only
637 * Enable/Disable Loopback mode
640 * @param enable set to AL_TRUE to enable full duplex mode
644 int al_eth_mac_loopback_config(struct al_hal_eth_adapter *adapter, int enable);
716 /* TX */
718 * get number of free tx descriptors
730 al_udma_q_handle_get(&adapter->tx_udma, qid, &udma_q); in al_eth_tx_available_get()
736 * prepare packet descriptors in tx queue.
738 * This functions prepares the descriptors for the given packet in the tx
742 * @param tx_dma_q pointer to UDMA tx queue
752 * Trigger the DMA about previously added tx descriptors.
754 * @param tx_dma_q pointer to UDMA tx queue
763 * get number of completed tx descriptors, upper layer should derive from
766 * @param tx_dma_q pointer to UDMA tx queue
768 * @return number of completed tx descriptors.
813 * @param enable header split when AL_TRUE
824 int al_eth_rx_header_split_config(struct al_hal_eth_adapter *adapter, al_bool enable, uint32_t head…
827 * enable / disable header split in the udma queue.
828 * length will be taken from the udma configuration to enable different length per queue.
831 * @param enable header split when AL_TRUE
832 * @param qid the queue id to enable/disable header split
838 al_bool enable,
918 * bits[1:0] - input selection: selects the input for the thash (2/4 tuple, inner/outer)
919 * bit[2] - selects whether to use thash output, or default values for the queue and udma
1068 al_bool filter; /**< set to AL_TRUE to enable filtering */
1121 al_bool filter; /**< set to AL_TRUE to enable filtering */
1212 uint8_t filter:1; /**< set to 1 to enable filtering */
1318 al_bool enable; member
1319 uint32_t filters; /**< bitmask of AL_ETH_RFW_FILTER.. for filters to enable */
1369 uint8_t enable; member
1372 uint32_t stop_cnt; /**< time in cycles to stop Tx mac i/f after getting out of eee state */
1397 * This is a generic time-stamp mechanism that can be used as generic to
1398 * time-stamp every received or transmit packet it can also support IEEE 1588v2
1400 * In addition to time-stamp, an internal system time is maintained. For
1403 * to the rest of the ports - that is outside the scope of the Ethernet
1404 * Controller - please refer to Annapurna Labs Alpine Hardware Wiki
1424 * This is the size of the on-chip array that keeps the time-stamp of the
1432 * The adapter includes AL_ETH_PTH_TX_SAMPLES_NUM timestamp samples for tx
1437 * is completed and the tx time is sampled before using that index for
1441 * tx packet. however, there is a little chance that the timestamp sample
1443 * returns -EAGAIN.
1447 * @return -EAGAIN if the sample was not updated yet. 0 when the sample
1463 * The HW maintains 50 bits for the sub-seconds portion in femto resolution,
1465 * sub-nanoseconds accuracy, which is not needed.
1502 al_bool enable; /**< enable internal trigger update */ member
1536 uint8_t triggers; /**< bitmask of external triggers to enable */
1620 al_bool enable; member
1638 * General Purpose I/O (GPIO) to enable the chip output pin.
1825 /* Tx parser, input packet counter */
1827 /* Tx parser, output packet counter */
1829 /* Tx packet modification, input packet counter */
1831 /* Tx forwarding input packet counter */
1833 /* Tx forwarding input packet counter */
1875 /* Multi-stream write, number of Rx packets */
1877 /* Multi-stream write, number of dropped packets at SOP, Q full indication */
1879 /* Multi-stream write, number of dropped packets at SOP */
1881 /* Multi-stream write, number of dropped packets at EOP, */
1884 …/* Multi-stream write, number of packets written to the stream FIFO with EOP and without packet lo…
1886 /* Multi-stream write, number of packets read from the FIFO into the stream */
1896 /* Tx Packet modification, MAC SA spoof error */
1898 /* Tx MAC interface, input packet counter */
1900 /* Tx MAC interface, number of packets forwarded to the MAC */
1902 /* Tx MAC interface, number of packets forwarded to the Rx data path */
1904 /* Tx MAC interface, number of transmitted bytes */
1906 /* Tx MAC interface, number of transmitted bytes */
1908 /* Tx MAC interface, number of transmitted bytes */
1910 /* Tx MAC interface, number of transmitted bytes */
1912 /* Tx MAC interface, number of transmitted packets */
1914 /* Tx MAC interface, number of transmitted packets */
1916 /* Tx MAC interface, number of transmitted packets */
1918 /* Tx MAC interface, number of transmitted packets */
2041 al_bool autoneg_enable; /**< enable Auto-Negotiation */
2042 al_bool kr_lt_enable; /**< enable KR Link-Training */
2043 al_bool kr_fec_enable; /**< enable KR FEC */
2047 enum al_eth_board_auto_neg_mode an_mode; /**< auto-negotiation mode (in-band / out-of-band) */
2052 al_bool force_1000_base_x; /**< set mac to 1000 base-x mode (instead sgmii) */
2064 enum al_eth_retimer_channel retimer_tx_channel; /**< what channel connected to this port (Tx) */
2093 * Wake-On-Lan (WoL)
2095 * The following few functions configure the Wake-On-Lan packet detection
2099 * external 1000Base-T transceiver to set WoL mode.
2101 * These APIs do not set the system-wide power-state, nor responsible on the
2106 /* Interrupt enable WoL MAC DA Unicast detected packet */
2108 /* Interrupt enable WoL L2 Multicast detected packet */
2110 /* Interrupt enable WoL L2 Broadcast detected packet */
2112 /* Interrupt enable WoL IPv4 detected packet */
2114 /* Interrupt enable WoL IPv6 detected packet */
2116 /* Interrupt enable WoL EtherType+MAC DA detected packet */
2118 /* Interrupt enable WoL EtherType+L2 Broadcast detected packet */
2120 /* Interrupt enable WoL parser detected packet */
2122 /* Interrupt enable WoL magic detected packet */
2124 /* Interrupt enable WoL magic+password detected packet */
2127 /* Forward enable WoL MAC DA Unicast detected packet */
2129 /* Forward enable WoL L2 Multicast detected packet */
2131 /* Forward enable WoL L2 Broadcast detected packet */
2133 /* Forward enable WoL IPv4 detected packet */
2135 /* Forward enable WoL IPv6 detected packet */
2137 /* Forward enable WoL EtherType+MAC DA detected packet */
2139 /* Forward enable WoL EtherType+L2 Broadcast detected packet */
2141 /* Forward enable WoL parser detected packet */
2163 * enable the wol mechanism
2190 * Configure tx fwd vlan table entry
2196 * the udmas, through the Rx path (udma_mask is one-hot representation)
2203 /** Tx Generic protocol detect Cam compare table entry */
2261 /** Tx Generic crc prameters table entry */
2313 /** Tx per_protocol_number crc & l3_checksum & l4_checksum command table entry */
2335 * @param tx_gpd_entry entry data for the Tx protocol detect Cam compare table
2348 * @param tx_gcp_entry entry data for the Tx Generic crc prameters table
2361 …* @param tx_replace_entry entry data for the Tx crc_&_l3_checksum_&_l4_checksum replace command ta…
2374 * @param rx_gpd_entry entry data for the Tx protocol detect Cam compare table
2387 * @param rx_gpd_entry entry data for the Tx protocol detect Cam compare table
2388 * @param rx_gcp_entry entry data for the Tx Generic crc prameters table
2439 /* *INDENT-ON* */