#include "common.h"
#include "regs.h"
#include "espi.h"
struct peespi { … };
#define ESPI_INTR_MASK …
#define MON_MASK …
#define TRICN_CNFG …
#define TRICN_CMD_READ …
#define TRICN_CMD_WRITE …
#define TRICN_CMD_ATTEMPTS …
static int tricn_write(adapter_t *adapter, int bundle_addr, int module_addr,
int ch_addr, int reg_offset, u32 wr_data)
{ … }
static int tricn_init(adapter_t *adapter)
{ … }
void t1_espi_intr_enable(struct peespi *espi)
{ … }
void t1_espi_intr_clear(struct peespi *espi)
{ … }
void t1_espi_intr_disable(struct peespi *espi)
{ … }
int t1_espi_intr_handler(struct peespi *espi)
{ … }
const struct espi_intr_counts *t1_espi_get_intr_counts(struct peespi *espi)
{ … }
static void espi_setup_for_pm3393(adapter_t *adapter)
{ … }
static void espi_setup_for_vsc7321(adapter_t *adapter)
{ … }
static void espi_setup_for_ixf1010(adapter_t *adapter, int nports)
{ … }
int t1_espi_init(struct peespi *espi, int mac_type, int nports)
{ … }
void t1_espi_destroy(struct peespi *espi)
{ … }
struct peespi *t1_espi_create(adapter_t *adapter)
{ … }
#if 0
void t1_espi_set_misc_ctrl(adapter_t *adapter, u32 val)
{
struct peespi *espi = adapter->espi;
if (!is_T2(adapter))
return;
spin_lock(&espi->lock);
espi->misc_ctrl = (val & ~MON_MASK) |
(espi->misc_ctrl & MON_MASK);
writel(espi->misc_ctrl, adapter->regs + A_ESPI_MISC_CONTROL);
spin_unlock(&espi->lock);
}
#endif
u32 t1_espi_get_mon(adapter_t *adapter, u32 addr, u8 wait)
{ … }
int t1_espi_get_mon_t204(adapter_t *adapter, u32 *valp, u8 wait)
{ … }