#include "common.h"
#include "regs.h"
#include "gmac.h"
#include "elmer0.h"
#include "suni1x10gexp_regs.h"
#include <linux/crc32.h>
#include <linux/slab.h>
#define OFFSET(REG_ADDR) …
#define IPG …
#define TXXG_CONF1_VAL …
#define RXXG_CONF1_VAL …
#define STATS_TICK_SECS …
enum { … };
struct _cmac_instance { … };
static int pmread(struct cmac *cmac, u32 reg, u32 * data32)
{ … }
static int pmwrite(struct cmac *cmac, u32 reg, u32 data32)
{ … }
static int pm3393_reset(struct cmac *cmac)
{ … }
static int pm3393_interrupt_enable(struct cmac *cmac)
{ … }
static int pm3393_interrupt_disable(struct cmac *cmac)
{ … }
static int pm3393_interrupt_clear(struct cmac *cmac)
{ … }
static int pm3393_interrupt_handler(struct cmac *cmac)
{ … }
static int pm3393_enable(struct cmac *cmac, int which)
{ … }
static int pm3393_enable_port(struct cmac *cmac, int which)
{ … }
static int pm3393_disable(struct cmac *cmac, int which)
{ … }
static int pm3393_loopback_enable(struct cmac *cmac)
{ … }
static int pm3393_loopback_disable(struct cmac *cmac)
{ … }
static int pm3393_set_mtu(struct cmac *cmac, int mtu)
{ … }
static int pm3393_set_rx_mode(struct cmac *cmac, struct t1_rx_mode *rm)
{ … }
static int pm3393_get_speed_duplex_fc(struct cmac *cmac, int *speed,
int *duplex, int *fc)
{ … }
static int pm3393_set_speed_duplex_fc(struct cmac *cmac, int speed, int duplex,
int fc)
{ … }
#define RMON_UPDATE(mac, name, stat_name) …
static const struct cmac_statistics *pm3393_update_statistics(struct cmac *mac,
int flag)
{ … }
static int pm3393_macaddress_get(struct cmac *cmac, u8 mac_addr[6])
{ … }
static int pm3393_macaddress_set(struct cmac *cmac, const u8 ma[6])
{ … }
static void pm3393_destroy(struct cmac *cmac)
{ … }
static const struct cmac_ops pm3393_ops = …;
static struct cmac *pm3393_mac_create(adapter_t *adapter, int index)
{ … }
static int pm3393_mac_reset(adapter_t * adapter)
{ … }
const struct gmac t1_pm3393_ops = …;