#define pr_fmt(fmt) …
#include <linux/init.h>
#include <linux/module.h>
#include <linux/of_address.h>
#include <linux/of_platform.h>
#include <linux/of_net.h>
#include <linux/of_mdio.h>
#include <linux/device.h>
#include <linux/phy.h>
#include <linux/netdevice.h>
#include <linux/phy_fixed.h>
#include <linux/phylink.h>
#include <linux/etherdevice.h>
#include <linux/libfdt_env.h>
#include <linux/platform_device.h>
#include "mac.h"
#include "fman_mac.h"
#include "fman_dtsec.h"
#include "fman_tgec.h"
#include "fman_memac.h"
MODULE_LICENSE(…) …;
MODULE_DESCRIPTION(…) …;
struct mac_priv_s { … };
struct mac_address { … };
static void mac_exception(struct mac_device *mac_dev,
enum fman_mac_exceptions ex)
{ … }
int fman_set_multi(struct net_device *net_dev, struct mac_device *mac_dev)
{ … }
static DEFINE_MUTEX(eth_lock);
static struct platform_device *dpaa_eth_add_device(int fman_id,
struct mac_device *mac_dev)
{ … }
static const struct of_device_id mac_match[] = …;
MODULE_DEVICE_TABLE(of, mac_match);
static int mac_probe(struct platform_device *_of_dev)
{ … }
static void mac_remove(struct platform_device *pdev)
{ … }
static struct platform_driver mac_driver = …;
builtin_platform_driver(…) …;