#include <linux/etherdevice.h>
#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/of_net.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/regulator/consumer.h>
#include "emac.h"
#define DRV_NAME …
struct emac_rockchip_soc_data { … };
struct rockchip_priv_data { … };
static void emac_rockchip_set_mac_speed(void *priv, unsigned int speed)
{ … }
static const struct emac_rockchip_soc_data emac_rk3036_emac_data = …;
static const struct emac_rockchip_soc_data emac_rk3066_emac_data = …;
static const struct emac_rockchip_soc_data emac_rk3188_emac_data = …;
static const struct of_device_id emac_rockchip_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, emac_rockchip_dt_ids);
static int emac_rockchip_probe(struct platform_device *pdev)
{ … }
static void emac_rockchip_remove(struct platform_device *pdev)
{ … }
static struct platform_driver emac_rockchip_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;