#include "cgx.h"
#include "lmac_common.h"
static struct mac_ops rpm_mac_ops = …;
static struct mac_ops rpm2_mac_ops = …;
bool is_dev_rpm2(void *rpmd)
{ … }
struct mac_ops *rpm_get_mac_ops(rpm_t *rpm)
{ … }
static void rpm_write(rpm_t *rpm, u64 lmac, u64 offset, u64 val)
{ … }
static u64 rpm_read(rpm_t *rpm, u64 lmac, u64 offset)
{ … }
static bool is_mac_rpmusx(void *rpmd)
{ … }
int rpm_get_nr_lmacs(void *rpmd)
{ … }
int rpm2_get_nr_lmacs(void *rpmd)
{ … }
int rpm_lmac_tx_enable(void *rpmd, int lmac_id, bool enable)
{ … }
int rpm_lmac_rx_tx_enable(void *rpmd, int lmac_id, bool enable)
{ … }
void rpm_lmac_enadis_rx_pause_fwding(void *rpmd, int lmac_id, bool enable)
{ … }
int rpm_lmac_get_pause_frm_status(void *rpmd, int lmac_id,
u8 *tx_pause, u8 *rx_pause)
{ … }
static void rpm_cfg_pfc_quanta_thresh(rpm_t *rpm, int lmac_id,
unsigned long pfc_en,
bool enable)
{ … }
static void rpm2_lmac_cfg_bp(rpm_t *rpm, int lmac_id, u8 tx_pause, u8 rx_pause)
{ … }
static void rpm_lmac_cfg_bp(rpm_t *rpm, int lmac_id, u8 tx_pause, u8 rx_pause)
{ … }
int rpm_lmac_enadis_pause_frm(void *rpmd, int lmac_id, u8 tx_pause,
u8 rx_pause)
{ … }
void rpm_lmac_pause_frm_config(void *rpmd, int lmac_id, bool enable)
{ … }
int rpm_get_rx_stats(void *rpmd, int lmac_id, int idx, u64 *rx_stat)
{ … }
int rpm_get_tx_stats(void *rpmd, int lmac_id, int idx, u64 *tx_stat)
{ … }
int rpm_stats_reset(void *rpmd, int lmac_id)
{ … }
u8 rpm_get_lmac_type(void *rpmd, int lmac_id)
{ … }
u32 rpm_get_lmac_fifo_len(void *rpmd, int lmac_id)
{ … }
static int rpmusx_lmac_internal_loopback(rpm_t *rpm, int lmac_id, bool enable)
{ … }
u32 rpm2_get_lmac_fifo_len(void *rpmd, int lmac_id)
{ … }
int rpm_lmac_internal_loopback(void *rpmd, int lmac_id, bool enable)
{ … }
void rpm_lmac_ptp_config(void *rpmd, int lmac_id, bool enable)
{ … }
int rpm_lmac_pfc_config(void *rpmd, int lmac_id, u8 tx_pause, u8 rx_pause, u16 pfc_en)
{ … }
int rpm_lmac_get_pfc_frm_cfg(void *rpmd, int lmac_id, u8 *tx_pause, u8 *rx_pause)
{ … }
int rpm_get_fec_stats(void *rpmd, int lmac_id, struct cgx_fec_stats_rsp *rsp)
{ … }
int rpm_lmac_reset(void *rpmd, int lmac_id, u8 pf_req_flr)
{ … }