#include <linux/device.h>
#include <linux/ethtool.h>
#include <linux/io.h>
#include <linux/ioport.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/stmmac.h>
#include "stmmac_platform.h"
#define ETHMAC_SPEED_100 …
struct meson_dwmac { … };
static void meson6_dwmac_fix_mac_speed(void *priv, unsigned int speed, unsigned int mode)
{ … }
static int meson6_dwmac_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id meson6_dwmac_match[] = …;
MODULE_DEVICE_TABLE(of, meson6_dwmac_match);
static struct platform_driver meson6_dwmac_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;