linux/drivers/net/ethernet/ti/cpsw_sl.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Texas Instruments Ethernet Switch media-access-controller (MAC) submodule/
 * Ethernet MAC Sliver (CPGMAC_SL)
 *
 * Copyright (C) 2019 Texas Instruments
 *
 */

#include <linux/delay.h>
#include <linux/io.h>
#include <linux/kernel.h>

#include "cpsw_sl.h"

#define CPSW_SL_REG_NOTUSED

static const u16 cpsw_sl_reg_map_cpsw[] =;

static const u16 cpsw_sl_reg_map_66ak2hk[] =;

static const u16 cpsw_sl_reg_map_66ak2x_xgbe[] =;

static const u16 cpsw_sl_reg_map_66ak2elg_am65[] =;

#define CPSW_SL_SOFT_RESET_BIT

#define CPSW_SL_STATUS_PN_IDLE
#define CPSW_SL_AM65_STATUS_PN_E_IDLE
#define CPSW_SL_AM65_STATUS_PN_P_IDLE
#define CPSW_SL_AM65_STATUS_PN_TX_IDLE

#define CPSW_SL_STATUS_IDLE_MASK_BASE

#define CPSW_SL_STATUS_IDLE_MASK_K3

#define CPSW_SL_CTL_FUNC_BASE

struct cpsw_sl {};

struct cpsw_sl_dev_id {};

static const struct cpsw_sl_dev_id cpsw_sl_id_match[] =;

u32 cpsw_sl_reg_read(struct cpsw_sl *sl, enum cpsw_sl_regs reg)
{}

void cpsw_sl_reg_write(struct cpsw_sl *sl, enum cpsw_sl_regs reg, u32 val)
{}

static const struct cpsw_sl_dev_id *cpsw_sl_match_id(
		const struct cpsw_sl_dev_id *id,
		const char *device_id)
{}

struct cpsw_sl *cpsw_sl_get(const char *device_id, struct device *dev,
			    void __iomem *sl_base)
{}

void cpsw_sl_reset(struct cpsw_sl *sl, unsigned long tmo)
{}

u32 cpsw_sl_ctl_set(struct cpsw_sl *sl, u32 ctl_funcs)
{}

u32 cpsw_sl_ctl_clr(struct cpsw_sl *sl, u32 ctl_funcs)
{}

void cpsw_sl_ctl_reset(struct cpsw_sl *sl)
{}

int cpsw_sl_wait_for_idle(struct cpsw_sl *sl, unsigned long tmo)
{}