linux/drivers/net/ethernet/davicom/dm9000.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * dm9000 Ethernet
 */

#ifndef _DM9000X_H_
#define _DM9000X_H_

#define DM9000_ID

/* although the registers are 16 bit, they are 32-bit aligned.
 */

#define DM9000_NCR
#define DM9000_NSR
#define DM9000_TCR
#define DM9000_TSR1
#define DM9000_TSR2
#define DM9000_RCR
#define DM9000_RSR
#define DM9000_ROCR
#define DM9000_BPTR
#define DM9000_FCTR
#define DM9000_FCR
#define DM9000_EPCR
#define DM9000_EPAR
#define DM9000_EPDRL
#define DM9000_EPDRH
#define DM9000_WCR

#define DM9000_PAR
#define DM9000_MAR

#define DM9000_GPCR
#define DM9000_GPR
#define DM9000_TRPAL
#define DM9000_TRPAH
#define DM9000_RWPAL
#define DM9000_RWPAH

#define DM9000_VIDL
#define DM9000_VIDH
#define DM9000_PIDL
#define DM9000_PIDH

#define DM9000_CHIPR
#define DM9000_SMCR

#define DM9000_ETXCSR
#define DM9000_TCCR
#define DM9000_RCSR

#define CHIPR_DM9000A
#define CHIPR_DM9000B

#define DM9000_MRCMDX
#define DM9000_MRCMD
#define DM9000_MRRL
#define DM9000_MRRH
#define DM9000_MWCMDX
#define DM9000_MWCMD
#define DM9000_MWRL
#define DM9000_MWRH
#define DM9000_TXPLL
#define DM9000_TXPLH
#define DM9000_ISR
#define DM9000_IMR

#define NCR_EXT_PHY
#define NCR_WAKEEN
#define NCR_FCOL
#define NCR_FDX

#define NCR_RESERVED
#define NCR_MAC_LBK
#define NCR_RST

#define NSR_SPEED
#define NSR_LINKST
#define NSR_WAKEST
#define NSR_TX2END
#define NSR_TX1END
#define NSR_RXOV

#define TCR_TJDIS
#define TCR_EXCECM
#define TCR_PAD_DIS2
#define TCR_CRC_DIS2
#define TCR_PAD_DIS1
#define TCR_CRC_DIS1
#define TCR_TXREQ

#define TSR_TJTO
#define TSR_LC
#define TSR_NC
#define TSR_LCOL
#define TSR_COL
#define TSR_EC

#define RCR_WTDIS
#define RCR_DIS_LONG
#define RCR_DIS_CRC
#define RCR_ALL
#define RCR_RUNT
#define RCR_PRMSC
#define RCR_RXEN

#define RSR_RF
#define RSR_MF
#define RSR_LCS
#define RSR_RWTO
#define RSR_PLE
#define RSR_AE
#define RSR_CE
#define RSR_FOE

#define WCR_LINKEN
#define WCR_SAMPLEEN
#define WCR_MAGICEN
#define WCR_LINKST
#define WCR_SAMPLEST
#define WCR_MAGICST

#define FCTR_HWOT(ot)
#define FCTR_LWOT(ot)

#define IMR_PAR
#define IMR_ROOM
#define IMR_ROM
#define IMR_PTM
#define IMR_PRM

#define ISR_ROOS
#define ISR_ROS
#define ISR_PTS
#define ISR_PRS
#define ISR_CLR_STATUS

#define EPCR_REEP
#define EPCR_WEP
#define EPCR_EPOS
#define EPCR_ERPRR
#define EPCR_ERPRW
#define EPCR_ERRE

#define GPCR_GEP_CNTL

#define TCCR_IP
#define TCCR_TCP
#define TCCR_UDP

#define RCSR_UDP_BAD
#define RCSR_TCP_BAD
#define RCSR_IP_BAD
#define RCSR_UDP
#define RCSR_TCP
#define RCSR_IP
#define RCSR_CSUM
#define RCSR_DISCARD

#define DM9000_PKT_RDY
#define DM9000_PKT_ERR
#define DM9000_PKT_MAX

/* DM9000A / DM9000B definitions */

#define IMR_LNKCHNG
#define IMR_UNDERRUN

#define ISR_LNKCHNG
#define ISR_UNDERRUN

/* Davicom MII registers.
 */

#define MII_DM_DSPCR

#define DSPCR_INIT_PARAM

#endif /* _DM9000X_H_ */