linux/drivers/net/ethernet/chelsio/cxgb/pm3393.c

// SPDX-License-Identifier: GPL-2.0-only
/*****************************************************************************
 *                                                                           *
 * File: pm3393.c                                                            *
 * $Revision: 1.16 $                                                         *
 * $Date: 2005/05/14 00:59:32 $                                              *
 * Description:                                                              *
 *  PMC/SIERRA (pm3393) MAC-PHY functionality.                               *
 *  part of the Chelsio 10Gb Ethernet Driver.                                *
 *                                                                           *
 *                                                                           *
 * http://www.chelsio.com                                                    *
 *                                                                           *
 * Copyright (c) 2003 - 2005 Chelsio Communications, Inc.                    *
 * All rights reserved.                                                      *
 *                                                                           *
 * Maintainers: [email protected]                                      *
 *                                                                           *
 * Authors: Dimitrios Michailidis   <[email protected]>                         *
 *          Tina Yang               <[email protected]>                     *
 *          Felix Marti             <[email protected]>                      *
 *          Scott Bardone           <[email protected]>                   *
 *          Kurt Ottaway            <[email protected]>                   *
 *          Frank DiMambro          <[email protected]>                      *
 *                                                                           *
 * History:                                                                  *
 *                                                                           *
 ****************************************************************************/

#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

/* Update statistics every 15 minutes */
#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)
{}

/* Port reset. */
static int pm3393_reset(struct cmac *cmac)
{}

/*
 * Enable interrupts for the PM3393
 *
 *	1. Enable PM3393 BLOCK interrupts.
 *	2. Enable PM3393 Master Interrupt bit(INTE)
 *	3. Enable ELMER's PM3393 bit.
 *	4. Enable Terminator external interrupt.
 */
static int pm3393_interrupt_enable(struct cmac *cmac)
{}

static int pm3393_interrupt_disable(struct cmac *cmac)
{}

static int pm3393_interrupt_clear(struct cmac *cmac)
{}

/* Interrupt handler */
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 =;