1 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-or-later */ 2 /* 3 * Copyright 2008 - 2015 Freescale Semiconductor Inc. 4 */ 5 6 #ifndef __TGEC_H 7 #define __TGEC_H 8 9 #include "fman_mac.h" 10 11 struct fman_mac *tgec_config(struct fman_mac_params *params); 12 int tgec_set_promiscuous(struct fman_mac *tgec, bool new_val); 13 int tgec_modify_mac_address(struct fman_mac *tgec, const enet_addr_t *enet_addr); 14 int tgec_cfg_max_frame_len(struct fman_mac *tgec, u16 new_val); 15 int tgec_enable(struct fman_mac *tgec); 16 int tgec_disable(struct fman_mac *tgec); 17 int tgec_init(struct fman_mac *tgec); 18 int tgec_free(struct fman_mac *tgec); 19 int tgec_accept_rx_pause_frames(struct fman_mac *tgec, bool en); 20 int tgec_set_tx_pause_frames(struct fman_mac *tgec, u8 priority, 21 u16 pause_time, u16 thresh_time); 22 int tgec_set_exception(struct fman_mac *tgec, 23 enum fman_mac_exceptions exception, bool enable); 24 int tgec_add_hash_mac_address(struct fman_mac *tgec, enet_addr_t *eth_addr); 25 int tgec_del_hash_mac_address(struct fman_mac *tgec, enet_addr_t *eth_addr); 26 int tgec_get_version(struct fman_mac *tgec, u32 *mac_version); 27 int tgec_set_allmulti(struct fman_mac *tgec, bool enable); 28 int tgec_set_tstamp(struct fman_mac *tgec, bool enable); 29 30 #endif /* __TGEC_H */ 31