Lines Matching +full:mac +full:- +full:only

2  * Copyright 2008-2012 Freescale Semiconductor Inc.
37 @Description FM MAC ...
56 @Group FM_mac_grp FM MAC
58 @Description FM MAC API functions, definitions and enums
67 @Description FM MAC Exceptions
102 …,e_FM_MAC_EX_1G_1588_TS_RX_ERR /**< dTSEC Time-Stamp Receive Error */
104 …,e_FM_MAC_EX_TS_FIFO_ECC_ERR /**< mEMAC Time-stamp FIFO ECC error …
111 @Description TM MAC statistics level
115 …e_FM_MAC_PARTIAL_STATISTICS, /**< Only error counters are available; Optimized for performa…
127 …**< Pause Quanta per priority to be sent in a pause frame. Each quanta represents a 512 bit-times*/
138 @Description Fm Mac Exception Callback from FM MAC to the user
140 @Param[in] h_App - Handle to the upper layer handler
142 @Param[in] exceptions - The exception that occurred
150 @Description TM MAC statistics rfc3635
154 uint64_t eStatPkts64; /**< r-10G tr-DT 64 byte frame counter */
155 uint64_t eStatPkts65to127; /**< r-10G 65 to 127 byte frame counter */
156 uint64_t eStatPkts128to255; /**< r-10G 128 to 255 byte frame counter */
157 uint64_t eStatPkts256to511; /**< r-10G 256 to 511 byte frame counter */
158 uint64_t eStatPkts512to1023; /**< r-10G 512 to 1023 byte frame counter */
159 uint64_t eStatPkts1024to1518; /**< r-10G 1024 to 1518 byte frame counter */
160 uint64_t eStatPkts1519to1522; /**< r-10G 1519 to 1522 byte good frame count */
164 …vents; /**< number of dropped packets due to internal errors of the MAC Client (during rece…
171 uint64_t teStatPause; /**< Pause MAC Control received */
172 uint64_t reStatPause; /**< Pause MAC Control sent */
177 NOTE: this counter is not supported on dTSEC MAC */
180 … ifInDiscards; /**< Frames received, but discarded due to problems within the MAC RX. */
182 - FIFO Overflow Error
183 - CRC Error
184 - Frame Too Long Error
185 - Alignment Error
186- The dedicated Error Code (0xfe, not a code error) was received */
190 NOTE: this counter is not supported on dTSEC MAC */
193 …utDiscards; /**< Frames received, but discarded due to problems within the MAC TX N/A!.*/
195 - FIFO Overflow Error
196 - FIFO Underflow Error
197 - Other */
202 @Group FM_mac_init_grp FM MAC Initialization Unit
204 @Description FM MAC Initialization Unit
210 @Description FM MAC config input
213 uintptr_t baseAddr; /**< Base of memory mapped FM MAC registers */
214 …t_EnetAddr addr; /**< MAC address of device; First octet is sent fi…
215 uint8_t macId; /**< MAC ID;
216 numbering of dTSEC and 1G-mEMAC:
217 0 - FM_MAX_NUM_OF_1G_MACS;
218 numbering of 10G-MAC (TGEC) and 10G-mEMAC:
219 0 - FM_MAX_NUM_OF_10G_MACS */
220 …e_EnetMode enetMode; /**< Ethernet operation mode (MAC-PHY interface an…
222 … this MAC should support rather than the actual speed;
225 … In case of mEMAC RGMII mode, the MAC is configured to RGMII
227 … is provided by PHY automatically in-band; FM_MAC_AdjustLink()
229 … configuration if RGMII PHY doesn't support in-band status signaling;
234 …int mdioIrq; /**< MDIO exceptions interrupt source - not valid …
236 mdio-irq, or for polling */
247 @Description Creates descriptor for the FM MAC module.
249 The routine returns a handle (descriptor) to the FM MAC object.
251 FM MAC function calls.
253 No actual initialization or configuration of FM MAC hardware is
256 @Param[in] p_FmMacParam - Pointer to data structure of parameters
258 @Retval Handle to FM MAC object, or NULL for Failure.
265 @Description Initializes the FM MAC module
267 @Param[in] h_FmMac - FM module descriptor
276 @Description Frees all resources that were assigned to FM MAC module.
280 @Param[in] h_FmMac - FM module descriptor
288 @Group FM_mac_advanced_init_grp FM MAC Advanced Configuration Unit
298 @Description Tell the driver whether to reset the FM MAC before initialization or
301 @Param[in] h_FmMac A handle to a FM MAC Module.
306 @Cautions Allowed only following FM_MAC_Config() and before FM_MAC_Init().
315 @Param[in] h_FmMac A handle to a FM MAC Module.
320 @Cautions Allowed only following FM_MAC_Config() and before FM_MAC_Init().
327 @Description Setup maximum Rx Frame Length (in 1G MAC, effects also Tx)
329 @Param[in] h_FmMac A handle to a FM MAC Module.
334 @Cautions Allowed only following FM_MAC_Config() and before FM_MAC_Init().
341 @Description ENABLE WAN mode in 10G-MAC
343 @Param[in] h_FmMac A handle to a FM MAC Module.
348 @Cautions Allowed only following FM_MAC_Config() and before FM_MAC_Init().
357 @Param[in] h_FmMac A handle to a FM MAC Module.
362 @Cautions Allowed only following FM_MAC_Config() and before FM_MAC_Init().
363 Not supported on 10G-MAC (i.e. CRC & PAD are added automatically
364 by HW); on mEMAC, this routine supports only PAD (i.e. CRC is
374 @Param[in] h_FmMac A handle to a FM MAC Module.
379 @Cautions Allowed only following FM_MAC_Config() and before FM_MAC_Init().
388 @Param[in] h_FmMac A handle to a FM MAC Module.
389 @Param[in] newVal TBI PHY address (1-31).
393 @Cautions Allowed only following FM_MAC_Config() and before FM_MAC_Init().
402 @Param[in] h_FmMac A handle to a FM MAC Module.
407 @Cautions Allowed only following FM_MAC_Config() and before FM_MAC_Init().
416 @Param[in] h_FmMac A handle to a FM MAC Module.
422 @Cautions Allowed only following FM_MAC_Config() and before FM_MAC_Init().
434 @Group FM_mac_runtime_control_grp FM MAC Runtime Control Unit
436 @Description FM MAC Runtime control unit API functions, definitions and enums.
444 @Description Enable the MAC
446 @Param[in] h_FmMac A handle to a FM MAC Module.
451 @Cautions Allowed only following FM_MAC_Init().
458 @Description DISABLE the MAC
460 @Param[in] h_FmMac A handle to a FM MAC Module.
465 @Cautions Allowed only following FM_MAC_Init().
472 @Description Re-init the MAC after suspend
474 @Param[in] h_FmMac A handle to a FM MAC Module.
478 @Cautions Allowed only following FM_MAC_Init().
487 @Param[in] h_Fm - Handle to the PTP as returned from the FM_MAC_PtpConfig.
491 @Cautions Allowed only following FM_MAC_Init().
500 @Param[in] h_Fm - Handle to the PTP as returned from the FM_MAC_PtpConfig.
504 @Cautions Allowed only following FM_MAC_Init().
511 @Description Enable/Disable transmission of Pause-Frames.
514 @Param[in] h_FmMac - A handle to a FM MAC Module.
515 @Param[in] pauseTime - Pause quanta value used with transmitted pause frames.
516 Each quanta represents a 512 bit-times; Note that '0'
518 transmission of the pause-frames.
522 @Cautions Allowed only following FM_MAC_Init().
530 @Description Enable/Disable transmission of Pause-Frames.
532 pause-time - [DEFAULT_TX_PAUSE_TIME]
533 threshold-time - [0]
535 @Param[in] h_FmMac - A handle to a FM MAC Module.
536 @Param[in] priority - the PFC class of service; use 'FM_MAC_NO_PFC'
538 @Param[in] pauseTime - Pause quanta value used with transmitted pause frames.
539 Each quanta represents a 512 bit-times;
541 transmission of the pause-frames.
542 …@Param[in] threshTime - Pause Threshold equanta value used by the MAC to retransmit pause …
544 … reached the threshold quanta, the MAC will retransmit the pause frame.
545 Each quanta represents a 512 bit-times.
549 @Cautions Allowed only following FM_MAC_Init().
551 TNUM-aging in the tx-port it is recommended that pre-fetch and
553 PFC is supported only on new mEMAC; i.e. in MACs that don't have
554 PFC support (10G-MAC and dTSEC), user should use 'FM_MAC_NO_PFC'
565 @Description Enable/Disable ignoring of Pause-Frames.
567 @Param[in] h_FmMac - A handle to a FM MAC Module.
568 @Param[in] en - boolean indicates whether to ignore the incoming pause
573 @Cautions Allowed only following FM_MAC_Init().
582 @Param[in] h_FmMac - A handle to a FM MAC Module.
583 @Param[in] en - boolean indicates whether to enable Wake On Lan
588 @Cautions Allowed only following FM_MAC_Init().
597 @Param[in] h_FmMac - A handle to a FM MAC Module.
601 @Cautions Allowed only following FM_MAC_Init().
610 @Param[in] h_FmMac - A handle to a FM MAC Module.
611 @Param[in] ex - Type of the desired exceptions
612 @Param[in] enable - TRUE to enable the specified exception, FALSE to disable it.
617 @Cautions Allowed only following FM_MAC_Init().
628 This routine is relevant only for dTSEC.
630 @Param[in] h_FmMac - A handle to a FM MAC Module.
631 @Param[in] statisticsLevel - Full statistics level provides all standard counters but may
632 reduce performance. Partial statistics provides only special
634 byte/packet) will be invalid and will return -1.
638 @Cautions Allowed only following FM_MAC_Init().
647 @Param[in] h_FmMac - A handle to a FM MAC Module.
648 @Param[in] p_Statistics - Structure with statistics
652 @Cautions Allowed only following FM_Init().
659 @Description Replace the main MAC Address
661 @Param[in] h_FmMac - A handle to a FM Module.
662 @Param[in] p_EnetAddr - Ethernet Mac address
666 @Cautions Allowed only after FM_MAC_Init().
673 @Description Add an Address to the hash table. This is for filter purpose only.
675 @Param[in] h_FmMac - A handle to a FM Module.
676 @Param[in] p_EnetAddr - Ethernet Mac address
680 @Cautions Allowed only following FM_MAC_Init(). It is a filter only address.
688 @Description Delete an Address to the hash table. This is for filter purpose only.
690 @Param[in] h_FmMac - A handle to a FM Module.
691 @Param[in] p_EnetAddr - Ethernet Mac address
695 @Cautions Allowed only following FM_MAC_Init().
702 @Description Add a unicast or multicast mac address for exact-match filtering
703 (8 on dTSEC, 2 for 10G-MAC)
705 @Param[in] h_FmMac - A handle to a FM Module.
706 @Param[in] p_EnetAddr - MAC Address to ADD
710 @Cautions Allowed only after FM_MAC_Init().
717 @Description Remove a uni cast or multi cast mac address.
719 @Param[in] h_FmMac - A handle to a FM Module.
720 @Param[in] p_EnetAddr - MAC Address to remove
724 @Cautions Allowed only after FM_MAC_Init().
731 @Description Enable/Disable MAC Promiscuous mode for ALL mac addresses.
733 @Param[in] h_FmMac - A handle to a FM MAC Module.
734 @Param[in] enable - TRUE to enable or FALSE to disable.
738 @Cautions Allowed only after FM_MAC_Init().
748 re-configuration of RGMII speed and duplex mode for
749 RGMII PHYs not supporting in-band status information
750 to MAC.
752 @Param[in] h_FmMac - A handle to a FM Module.
753 @Param[in] speed - Ethernet speed.
754 @Param[in] fullDuplex - TRUE for full-duplex mode;
755 FALSE for half-duplex mode.
764 @Description Restarts the auto-negotiation process.
765 When auto-negotiation process is invoked under traffic the
766 auto-negotiation process between the internal SGMII PHY and the
768 function will restart the auto-negotiation process that will end
770 auto-negotiation restart command to the Eth Phy.
771 This routine is relevant only for dTSEC.
773 @Param[in] h_FmMac - A handle to a FM Module.
782 @Description Return the MAC ID
784 @Param[in] h_FmMac - A handle to a FM Module.
785 @Param[out] p_MacId - MAC ID of device
789 @Cautions Allowed only after FM_MAC_Init().
796 @Description Return Mac HW chip version
798 @Param[in] h_FmMac - A handle to a FM Module.
799 @Param[out] p_MacVresion - Mac version as defined by the chip
803 @Cautions Allowed only after FM_MAC_Init().
812 @Param[in] h_FmMac - A handle to a FM Module.
813 @Param[in] phyAddr - Phy Address on the MII bus
814 @Param[in] reg - Register Number.
815 @Param[in] data - Data to write.
819 @Cautions Allowed only after FM_MAC_Init().
828 @Param[in] h_FmMac - A handle to a FM Module.
829 @Param[in] phyAddr - Phy Address on the MII bus
830 @Param[in] reg - Register Number.
831 @Param[out] p_Data - Data from PHY.
835 @Cautions Allowed only after FM_MAC_Init().
845 @Param[in] h_FmMac - A handle to a FM Module.
849 @Cautions Allowed only after FM_MAC_Init().