linux/drivers/net/ethernet/apm/xgene-v2/enet.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Applied Micro X-Gene SoC Ethernet v2 Driver
 *
 * Copyright (c) 2017, Applied Micro Circuits Corporation
 * Author(s): Iyappan Subramanian <[email protected]>
 *	      Keyur Chudgar <[email protected]>
 */

#ifndef __XGENE_ENET_V2_ENET_H__
#define __XGENE_ENET_V2_ENET_H__

#define ENET_CLKEN
#define ENET_SRST
#define ENET_SHIM
#define CFG_MEM_RAM_SHUTDOWN
#define BLOCK_MEM_RDY

#define MEM_RDY
#define DEVM_ARAUX_COH
#define DEVM_AWAUX_COH

#define CFG_FORCE_LINK_STATUS_EN
#define FORCE_LINK_STATUS
#define CFG_LINK_AGGR_RESUME
#define RX_DV_GATE_REG

void xge_wr_csr(struct xge_pdata *pdata, u32 offset, u32 val);
u32 xge_rd_csr(struct xge_pdata *pdata, u32 offset);
int xge_port_reset(struct net_device *ndev);
void xge_port_init(struct net_device *ndev);

#endif  /* __XGENE_ENET_V2_ENET__H__ */