Lines Matching +full:mac +full:- +full:mode
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (c) 2014-2015 Hisilicon Limited.
37 /* check mac addr broadcast */
42 /* check mac addr is 01-00-5e-xx-xx-xx*/
47 /*check the mac addr is 0 in all bit*/
52 /*check mac addr multicast*/
56 void *mac; member
67 /*mac interface keyword */
82 /*mac mode */
84 /**< Invalid Ethernet mode */
122 /*mac communicate mode*/
130 /*mac statistics */
132 u64 stat_pkts64; /* r-10G tr-DT 64 byte frame counter */
133 u64 stat_pkts65to127; /* r-10G 65 to 127 byte frame counter */
134 u64 stat_pkts128to255; /* r-10G 128 to 255 byte frame counter */
135 u64 stat_pkts256to511; /*r-10G 256 to 511 byte frame counter */
136 u64 stat_pkts512to1023;/* r-10G 512 to 1023 byte frame counter */
137 u64 stat_pkts1024to1518; /* r-10G 1024 to 1518 byte frame counter */
138 u64 stat_pkts1519to1522; /* r-10G 1519 to 1522 byte good frame count*/
145 /* the MAC Client. */
155 u64 stat_rx_pause; /**< Pause MAC Control received */
156 u64 stat_tx_pause; /**< Pause MAC Control sent */
163 /* problems within the MAC RX. */
166 /* - FIFO Overflow Error */
167 /* - CRC Error */
168 /* - Frame Too Long Error */
169 /* - Alignment Error */
175 /* the MAC TX N/A!.*/
178 /* - FIFO Overflow Error */
179 /* - FIFO Underflow Error */
180 /* - Other */
183 /*mac para struct ,mac get param from nic or dsaf when initialize*/
189 /**< Ethernet operation mode (MAC-PHY interface and speed) */
342 /*init Mac when init nic or dsaf*/
344 /*remove mac when remove nic or dsaf*/
346 /*enable mac when enable nic or dsaf*/
347 void (*mac_enable)(void *mac_drv, enum mac_commom_mode mode);
348 /*disable mac when disable nic or dsaf*/
349 void (*mac_disable)(void *mac_drv, enum mac_commom_mode mode);
350 /* config mac address*/
352 /*adjust mac mode of port,include speed and duplex*/
358 /* config autoegotaite mode of port*/
360 /* config loopbank mode */
369 /* config rx mode for promiscuous*/
388 /* get mac information */
398 unsigned int mac_en_flg;/*you'd better don't enable mac twice*/
409 #define MAC_INTERFACE_FROM_MODE(mode) (enum mac_intf)((mode) & 0xFFFF0000) argument
410 #define MAC_SPEED_FROM_MODE(mode) (enum mac_speed)((mode) & 0x0000FFFF) argument
416 return (struct mac_driver *)(mac_cb->priv.mac); in hns_mac_get_drv()
463 void hns_mac_enable(struct hns_mac_cb *mac_cb, enum mac_commom_mode mode);
464 void hns_mac_disable(struct hns_mac_cb *mac_cb, enum mac_commom_mode mode);