linux/drivers/net/ethernet/broadcom/bgmac-platform.c

/*
 * Copyright (C) 2016 Broadcom
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation version 2.
 *
 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
 * kind, whether express or implied; without even the implied warranty
 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#define pr_fmt(fmt)

#include <linux/bcma/bcma.h>
#include <linux/brcmphy.h>
#include <linux/etherdevice.h>
#include <linux/of_address.h>
#include <linux/of_mdio.h>
#include <linux/of_net.h>
#include "bgmac.h"

#define NICPM_PADRING_CFG
#define NICPM_IOMUX_CTRL

#define NICPM_PADRING_CFG_INIT_VAL
#define NICPM_IOMUX_CTRL_INIT_VAL_AX

#define NICPM_IOMUX_CTRL_INIT_VAL
#define NICPM_IOMUX_CTRL_SPD_SHIFT
#define NICPM_IOMUX_CTRL_SPD_10M
#define NICPM_IOMUX_CTRL_SPD_100M
#define NICPM_IOMUX_CTRL_SPD_1000M

static u32 platform_bgmac_read(struct bgmac *bgmac, u16 offset)
{}

static void platform_bgmac_write(struct bgmac *bgmac, u16 offset, u32 value)
{}

static u32 platform_bgmac_idm_read(struct bgmac *bgmac, u16 offset)
{}

static void platform_bgmac_idm_write(struct bgmac *bgmac, u16 offset, u32 value)
{}

static bool platform_bgmac_clk_enabled(struct bgmac *bgmac)
{}

static void platform_bgmac_clk_enable(struct bgmac *bgmac, u32 flags)
{}

static void platform_bgmac_cco_ctl_maskset(struct bgmac *bgmac, u32 offset,
					   u32 mask, u32 set)
{}

static u32 platform_bgmac_get_bus_clock(struct bgmac *bgmac)
{}

static void platform_bgmac_cmn_maskset32(struct bgmac *bgmac, u16 offset,
					 u32 mask, u32 set)
{}

static void bgmac_nicpm_speed_set(struct net_device *net_dev)
{}

static int platform_phy_connect(struct bgmac *bgmac)
{}

static int bgmac_probe(struct platform_device *pdev)
{}

static void bgmac_remove(struct platform_device *pdev)
{}

#ifdef CONFIG_PM
static int bgmac_suspend(struct device *dev)
{}

static int bgmac_resume(struct device *dev)
{}

static const struct dev_pm_ops bgmac_pm_ops =;

#define BGMAC_PM_OPS
#else
#define BGMAC_PM_OPS
#endif /* CONFIG_PM */

static const struct of_device_id bgmac_of_enet_match[] =;

MODULE_DEVICE_TABLE(of, bgmac_of_enet_match);

static struct platform_driver bgmac_enet_driver =;

module_platform_driver();
MODULE_DESCRIPTION();
MODULE_LICENSE();