162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * enc28j60_hw.h: EDTP FrameThrower style enc28j60 registers
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * $Id: enc28j60_hw.h,v 1.9 2007/12/14 11:59:16 claudio Exp $
662306a36Sopenharmony_ci */
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci#ifndef _ENC28J60_HW_H
962306a36Sopenharmony_ci#define _ENC28J60_HW_H
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci/*
1262306a36Sopenharmony_ci * ENC28J60 Control Registers
1362306a36Sopenharmony_ci * Control register definitions are a combination of address,
1462306a36Sopenharmony_ci * bank number, and Ethernet/MAC/PHY indicator bits.
1562306a36Sopenharmony_ci * - Register address	(bits 0-4)
1662306a36Sopenharmony_ci * - Bank number	(bits 5-6)
1762306a36Sopenharmony_ci * - MAC/MII indicator	(bit 7)
1862306a36Sopenharmony_ci */
1962306a36Sopenharmony_ci#define ADDR_MASK	0x1F
2062306a36Sopenharmony_ci#define BANK_MASK	0x60
2162306a36Sopenharmony_ci#define SPRD_MASK	0x80
2262306a36Sopenharmony_ci/* All-bank registers */
2362306a36Sopenharmony_ci#define EIE		0x1B
2462306a36Sopenharmony_ci#define EIR		0x1C
2562306a36Sopenharmony_ci#define ESTAT		0x1D
2662306a36Sopenharmony_ci#define ECON2		0x1E
2762306a36Sopenharmony_ci#define ECON1		0x1F
2862306a36Sopenharmony_ci/* Bank 0 registers */
2962306a36Sopenharmony_ci#define ERDPTL		(0x00|0x00)
3062306a36Sopenharmony_ci#define ERDPTH		(0x01|0x00)
3162306a36Sopenharmony_ci#define EWRPTL		(0x02|0x00)
3262306a36Sopenharmony_ci#define EWRPTH		(0x03|0x00)
3362306a36Sopenharmony_ci#define ETXSTL		(0x04|0x00)
3462306a36Sopenharmony_ci#define ETXSTH		(0x05|0x00)
3562306a36Sopenharmony_ci#define ETXNDL		(0x06|0x00)
3662306a36Sopenharmony_ci#define ETXNDH		(0x07|0x00)
3762306a36Sopenharmony_ci#define ERXSTL		(0x08|0x00)
3862306a36Sopenharmony_ci#define ERXSTH		(0x09|0x00)
3962306a36Sopenharmony_ci#define ERXNDL		(0x0A|0x00)
4062306a36Sopenharmony_ci#define ERXNDH		(0x0B|0x00)
4162306a36Sopenharmony_ci#define ERXRDPTL	(0x0C|0x00)
4262306a36Sopenharmony_ci#define ERXRDPTH	(0x0D|0x00)
4362306a36Sopenharmony_ci#define ERXWRPTL	(0x0E|0x00)
4462306a36Sopenharmony_ci#define ERXWRPTH	(0x0F|0x00)
4562306a36Sopenharmony_ci#define EDMASTL		(0x10|0x00)
4662306a36Sopenharmony_ci#define EDMASTH		(0x11|0x00)
4762306a36Sopenharmony_ci#define EDMANDL		(0x12|0x00)
4862306a36Sopenharmony_ci#define EDMANDH		(0x13|0x00)
4962306a36Sopenharmony_ci#define EDMADSTL	(0x14|0x00)
5062306a36Sopenharmony_ci#define EDMADSTH	(0x15|0x00)
5162306a36Sopenharmony_ci#define EDMACSL		(0x16|0x00)
5262306a36Sopenharmony_ci#define EDMACSH		(0x17|0x00)
5362306a36Sopenharmony_ci/* Bank 1 registers */
5462306a36Sopenharmony_ci#define EHT0		(0x00|0x20)
5562306a36Sopenharmony_ci#define EHT1		(0x01|0x20)
5662306a36Sopenharmony_ci#define EHT2		(0x02|0x20)
5762306a36Sopenharmony_ci#define EHT3		(0x03|0x20)
5862306a36Sopenharmony_ci#define EHT4		(0x04|0x20)
5962306a36Sopenharmony_ci#define EHT5		(0x05|0x20)
6062306a36Sopenharmony_ci#define EHT6		(0x06|0x20)
6162306a36Sopenharmony_ci#define EHT7		(0x07|0x20)
6262306a36Sopenharmony_ci#define EPMM0		(0x08|0x20)
6362306a36Sopenharmony_ci#define EPMM1		(0x09|0x20)
6462306a36Sopenharmony_ci#define EPMM2		(0x0A|0x20)
6562306a36Sopenharmony_ci#define EPMM3		(0x0B|0x20)
6662306a36Sopenharmony_ci#define EPMM4		(0x0C|0x20)
6762306a36Sopenharmony_ci#define EPMM5		(0x0D|0x20)
6862306a36Sopenharmony_ci#define EPMM6		(0x0E|0x20)
6962306a36Sopenharmony_ci#define EPMM7		(0x0F|0x20)
7062306a36Sopenharmony_ci#define EPMCSL		(0x10|0x20)
7162306a36Sopenharmony_ci#define EPMCSH		(0x11|0x20)
7262306a36Sopenharmony_ci#define EPMOL		(0x14|0x20)
7362306a36Sopenharmony_ci#define EPMOH		(0x15|0x20)
7462306a36Sopenharmony_ci#define EWOLIE		(0x16|0x20)
7562306a36Sopenharmony_ci#define EWOLIR		(0x17|0x20)
7662306a36Sopenharmony_ci#define ERXFCON		(0x18|0x20)
7762306a36Sopenharmony_ci#define EPKTCNT		(0x19|0x20)
7862306a36Sopenharmony_ci/* Bank 2 registers */
7962306a36Sopenharmony_ci#define MACON1		(0x00|0x40|SPRD_MASK)
8062306a36Sopenharmony_ci/* #define MACON2	(0x01|0x40|SPRD_MASK) */
8162306a36Sopenharmony_ci#define MACON3		(0x02|0x40|SPRD_MASK)
8262306a36Sopenharmony_ci#define MACON4		(0x03|0x40|SPRD_MASK)
8362306a36Sopenharmony_ci#define MABBIPG		(0x04|0x40|SPRD_MASK)
8462306a36Sopenharmony_ci#define MAIPGL		(0x06|0x40|SPRD_MASK)
8562306a36Sopenharmony_ci#define MAIPGH		(0x07|0x40|SPRD_MASK)
8662306a36Sopenharmony_ci#define MACLCON1	(0x08|0x40|SPRD_MASK)
8762306a36Sopenharmony_ci#define MACLCON2	(0x09|0x40|SPRD_MASK)
8862306a36Sopenharmony_ci#define MAMXFLL		(0x0A|0x40|SPRD_MASK)
8962306a36Sopenharmony_ci#define MAMXFLH		(0x0B|0x40|SPRD_MASK)
9062306a36Sopenharmony_ci#define MAPHSUP		(0x0D|0x40|SPRD_MASK)
9162306a36Sopenharmony_ci#define MICON		(0x11|0x40|SPRD_MASK)
9262306a36Sopenharmony_ci#define MICMD		(0x12|0x40|SPRD_MASK)
9362306a36Sopenharmony_ci#define MIREGADR	(0x14|0x40|SPRD_MASK)
9462306a36Sopenharmony_ci#define MIWRL		(0x16|0x40|SPRD_MASK)
9562306a36Sopenharmony_ci#define MIWRH		(0x17|0x40|SPRD_MASK)
9662306a36Sopenharmony_ci#define MIRDL		(0x18|0x40|SPRD_MASK)
9762306a36Sopenharmony_ci#define MIRDH		(0x19|0x40|SPRD_MASK)
9862306a36Sopenharmony_ci/* Bank 3 registers */
9962306a36Sopenharmony_ci#define MAADR1		(0x00|0x60|SPRD_MASK)
10062306a36Sopenharmony_ci#define MAADR0		(0x01|0x60|SPRD_MASK)
10162306a36Sopenharmony_ci#define MAADR3		(0x02|0x60|SPRD_MASK)
10262306a36Sopenharmony_ci#define MAADR2		(0x03|0x60|SPRD_MASK)
10362306a36Sopenharmony_ci#define MAADR5		(0x04|0x60|SPRD_MASK)
10462306a36Sopenharmony_ci#define MAADR4		(0x05|0x60|SPRD_MASK)
10562306a36Sopenharmony_ci#define EBSTSD		(0x06|0x60)
10662306a36Sopenharmony_ci#define EBSTCON		(0x07|0x60)
10762306a36Sopenharmony_ci#define EBSTCSL		(0x08|0x60)
10862306a36Sopenharmony_ci#define EBSTCSH		(0x09|0x60)
10962306a36Sopenharmony_ci#define MISTAT		(0x0A|0x60|SPRD_MASK)
11062306a36Sopenharmony_ci#define EREVID		(0x12|0x60)
11162306a36Sopenharmony_ci#define ECOCON		(0x15|0x60)
11262306a36Sopenharmony_ci#define EFLOCON		(0x17|0x60)
11362306a36Sopenharmony_ci#define EPAUSL		(0x18|0x60)
11462306a36Sopenharmony_ci#define EPAUSH		(0x19|0x60)
11562306a36Sopenharmony_ci/* PHY registers */
11662306a36Sopenharmony_ci#define PHCON1		0x00
11762306a36Sopenharmony_ci#define PHSTAT1		0x01
11862306a36Sopenharmony_ci#define PHHID1		0x02
11962306a36Sopenharmony_ci#define PHHID2		0x03
12062306a36Sopenharmony_ci#define PHCON2		0x10
12162306a36Sopenharmony_ci#define PHSTAT2		0x11
12262306a36Sopenharmony_ci#define PHIE		0x12
12362306a36Sopenharmony_ci#define PHIR		0x13
12462306a36Sopenharmony_ci#define PHLCON		0x14
12562306a36Sopenharmony_ci
12662306a36Sopenharmony_ci/* ENC28J60 EIE Register Bit Definitions */
12762306a36Sopenharmony_ci#define EIE_INTIE	0x80
12862306a36Sopenharmony_ci#define EIE_PKTIE	0x40
12962306a36Sopenharmony_ci#define EIE_DMAIE	0x20
13062306a36Sopenharmony_ci#define EIE_LINKIE	0x10
13162306a36Sopenharmony_ci#define EIE_TXIE	0x08
13262306a36Sopenharmony_ci/* #define EIE_WOLIE	0x04 (reserved) */
13362306a36Sopenharmony_ci#define EIE_TXERIE	0x02
13462306a36Sopenharmony_ci#define EIE_RXERIE	0x01
13562306a36Sopenharmony_ci/* ENC28J60 EIR Register Bit Definitions */
13662306a36Sopenharmony_ci#define EIR_PKTIF	0x40
13762306a36Sopenharmony_ci#define EIR_DMAIF	0x20
13862306a36Sopenharmony_ci#define EIR_LINKIF	0x10
13962306a36Sopenharmony_ci#define EIR_TXIF	0x08
14062306a36Sopenharmony_ci/* #define EIR_WOLIF	0x04 (reserved) */
14162306a36Sopenharmony_ci#define EIR_TXERIF	0x02
14262306a36Sopenharmony_ci#define EIR_RXERIF	0x01
14362306a36Sopenharmony_ci/* ENC28J60 ESTAT Register Bit Definitions */
14462306a36Sopenharmony_ci#define ESTAT_INT	0x80
14562306a36Sopenharmony_ci#define ESTAT_LATECOL	0x10
14662306a36Sopenharmony_ci#define ESTAT_RXBUSY	0x04
14762306a36Sopenharmony_ci#define ESTAT_TXABRT	0x02
14862306a36Sopenharmony_ci#define ESTAT_CLKRDY	0x01
14962306a36Sopenharmony_ci/* ENC28J60 ECON2 Register Bit Definitions */
15062306a36Sopenharmony_ci#define ECON2_AUTOINC	0x80
15162306a36Sopenharmony_ci#define ECON2_PKTDEC	0x40
15262306a36Sopenharmony_ci#define ECON2_PWRSV	0x20
15362306a36Sopenharmony_ci#define ECON2_VRPS	0x08
15462306a36Sopenharmony_ci/* ENC28J60 ECON1 Register Bit Definitions */
15562306a36Sopenharmony_ci#define ECON1_TXRST	0x80
15662306a36Sopenharmony_ci#define ECON1_RXRST	0x40
15762306a36Sopenharmony_ci#define ECON1_DMAST	0x20
15862306a36Sopenharmony_ci#define ECON1_CSUMEN	0x10
15962306a36Sopenharmony_ci#define ECON1_TXRTS	0x08
16062306a36Sopenharmony_ci#define ECON1_RXEN	0x04
16162306a36Sopenharmony_ci#define ECON1_BSEL1	0x02
16262306a36Sopenharmony_ci#define ECON1_BSEL0	0x01
16362306a36Sopenharmony_ci/* ENC28J60 MACON1 Register Bit Definitions */
16462306a36Sopenharmony_ci#define MACON1_LOOPBK	0x10
16562306a36Sopenharmony_ci#define MACON1_TXPAUS	0x08
16662306a36Sopenharmony_ci#define MACON1_RXPAUS	0x04
16762306a36Sopenharmony_ci#define MACON1_PASSALL	0x02
16862306a36Sopenharmony_ci#define MACON1_MARXEN	0x01
16962306a36Sopenharmony_ci/* ENC28J60 MACON2 Register Bit Definitions */
17062306a36Sopenharmony_ci#define MACON2_MARST	0x80
17162306a36Sopenharmony_ci#define MACON2_RNDRST	0x40
17262306a36Sopenharmony_ci#define MACON2_MARXRST	0x08
17362306a36Sopenharmony_ci#define MACON2_RFUNRST	0x04
17462306a36Sopenharmony_ci#define MACON2_MATXRST	0x02
17562306a36Sopenharmony_ci#define MACON2_TFUNRST	0x01
17662306a36Sopenharmony_ci/* ENC28J60 MACON3 Register Bit Definitions */
17762306a36Sopenharmony_ci#define MACON3_PADCFG2	0x80
17862306a36Sopenharmony_ci#define MACON3_PADCFG1	0x40
17962306a36Sopenharmony_ci#define MACON3_PADCFG0	0x20
18062306a36Sopenharmony_ci#define MACON3_TXCRCEN	0x10
18162306a36Sopenharmony_ci#define MACON3_PHDRLEN	0x08
18262306a36Sopenharmony_ci#define MACON3_HFRMLEN	0x04
18362306a36Sopenharmony_ci#define MACON3_FRMLNEN	0x02
18462306a36Sopenharmony_ci#define MACON3_FULDPX	0x01
18562306a36Sopenharmony_ci/* ENC28J60 MICMD Register Bit Definitions */
18662306a36Sopenharmony_ci#define MICMD_MIISCAN	0x02
18762306a36Sopenharmony_ci#define MICMD_MIIRD	0x01
18862306a36Sopenharmony_ci/* ENC28J60 MISTAT Register Bit Definitions */
18962306a36Sopenharmony_ci#define MISTAT_NVALID	0x04
19062306a36Sopenharmony_ci#define MISTAT_SCAN	0x02
19162306a36Sopenharmony_ci#define MISTAT_BUSY	0x01
19262306a36Sopenharmony_ci/* ENC28J60 ERXFCON Register Bit Definitions */
19362306a36Sopenharmony_ci#define ERXFCON_UCEN	0x80
19462306a36Sopenharmony_ci#define ERXFCON_ANDOR	0x40
19562306a36Sopenharmony_ci#define ERXFCON_CRCEN	0x20
19662306a36Sopenharmony_ci#define ERXFCON_PMEN	0x10
19762306a36Sopenharmony_ci#define ERXFCON_MPEN	0x08
19862306a36Sopenharmony_ci#define ERXFCON_HTEN	0x04
19962306a36Sopenharmony_ci#define ERXFCON_MCEN	0x02
20062306a36Sopenharmony_ci#define ERXFCON_BCEN	0x01
20162306a36Sopenharmony_ci
20262306a36Sopenharmony_ci/* ENC28J60 PHY PHCON1 Register Bit Definitions */
20362306a36Sopenharmony_ci#define PHCON1_PRST	0x8000
20462306a36Sopenharmony_ci#define PHCON1_PLOOPBK	0x4000
20562306a36Sopenharmony_ci#define PHCON1_PPWRSV	0x0800
20662306a36Sopenharmony_ci#define PHCON1_PDPXMD	0x0100
20762306a36Sopenharmony_ci/* ENC28J60 PHY PHSTAT1 Register Bit Definitions */
20862306a36Sopenharmony_ci#define PHSTAT1_PFDPX	0x1000
20962306a36Sopenharmony_ci#define PHSTAT1_PHDPX	0x0800
21062306a36Sopenharmony_ci#define PHSTAT1_LLSTAT	0x0004
21162306a36Sopenharmony_ci#define PHSTAT1_JBSTAT	0x0002
21262306a36Sopenharmony_ci/* ENC28J60 PHY PHSTAT2 Register Bit Definitions */
21362306a36Sopenharmony_ci#define PHSTAT2_TXSTAT	(1 << 13)
21462306a36Sopenharmony_ci#define PHSTAT2_RXSTAT	(1 << 12)
21562306a36Sopenharmony_ci#define PHSTAT2_COLSTAT	(1 << 11)
21662306a36Sopenharmony_ci#define PHSTAT2_LSTAT	(1 << 10)
21762306a36Sopenharmony_ci#define PHSTAT2_DPXSTAT	(1 << 9)
21862306a36Sopenharmony_ci#define PHSTAT2_PLRITY	(1 << 5)
21962306a36Sopenharmony_ci/* ENC28J60 PHY PHCON2 Register Bit Definitions */
22062306a36Sopenharmony_ci#define PHCON2_FRCLINK	0x4000
22162306a36Sopenharmony_ci#define PHCON2_TXDIS	0x2000
22262306a36Sopenharmony_ci#define PHCON2_JABBER	0x0400
22362306a36Sopenharmony_ci#define PHCON2_HDLDIS	0x0100
22462306a36Sopenharmony_ci/* ENC28J60 PHY PHIE Register Bit Definitions */
22562306a36Sopenharmony_ci#define PHIE_PLNKIE	(1 << 4)
22662306a36Sopenharmony_ci#define PHIE_PGEIE	(1 << 1)
22762306a36Sopenharmony_ci/* ENC28J60 PHY PHIR Register Bit Definitions */
22862306a36Sopenharmony_ci#define PHIR_PLNKIF	(1 << 4)
22962306a36Sopenharmony_ci#define PHIR_PGEIF	(1 << 1)
23062306a36Sopenharmony_ci
23162306a36Sopenharmony_ci/* ENC28J60 Packet Control Byte Bit Definitions */
23262306a36Sopenharmony_ci#define PKTCTRL_PHUGEEN		0x08
23362306a36Sopenharmony_ci#define PKTCTRL_PPADEN		0x04
23462306a36Sopenharmony_ci#define PKTCTRL_PCRCEN		0x02
23562306a36Sopenharmony_ci#define PKTCTRL_POVERRIDE	0x01
23662306a36Sopenharmony_ci
23762306a36Sopenharmony_ci/* ENC28J60 Transmit Status Vector */
23862306a36Sopenharmony_ci#define TSV_TXBYTECNT		0
23962306a36Sopenharmony_ci#define TSV_TXCOLLISIONCNT	16
24062306a36Sopenharmony_ci#define TSV_TXCRCERROR		20
24162306a36Sopenharmony_ci#define TSV_TXLENCHKERROR	21
24262306a36Sopenharmony_ci#define TSV_TXLENOUTOFRANGE	22
24362306a36Sopenharmony_ci#define TSV_TXDONE		23
24462306a36Sopenharmony_ci#define TSV_TXMULTICAST		24
24562306a36Sopenharmony_ci#define TSV_TXBROADCAST		25
24662306a36Sopenharmony_ci#define TSV_TXPACKETDEFER	26
24762306a36Sopenharmony_ci#define TSV_TXEXDEFER		27
24862306a36Sopenharmony_ci#define TSV_TXEXCOLLISION	28
24962306a36Sopenharmony_ci#define TSV_TXLATECOLLISION	29
25062306a36Sopenharmony_ci#define TSV_TXGIANT		30
25162306a36Sopenharmony_ci#define TSV_TXUNDERRUN		31
25262306a36Sopenharmony_ci#define TSV_TOTBYTETXONWIRE	32
25362306a36Sopenharmony_ci#define TSV_TXCONTROLFRAME	48
25462306a36Sopenharmony_ci#define TSV_TXPAUSEFRAME	49
25562306a36Sopenharmony_ci#define TSV_BACKPRESSUREAPP	50
25662306a36Sopenharmony_ci#define TSV_TXVLANTAGFRAME	51
25762306a36Sopenharmony_ci
25862306a36Sopenharmony_ci#define TSV_SIZE		7
25962306a36Sopenharmony_ci#define TSV_BYTEOF(x)		((x) / 8)
26062306a36Sopenharmony_ci#define TSV_BITMASK(x)		(1 << ((x) % 8))
26162306a36Sopenharmony_ci#define TSV_GETBIT(x, y)	(((x)[TSV_BYTEOF(y)] & TSV_BITMASK(y)) ? 1 : 0)
26262306a36Sopenharmony_ci
26362306a36Sopenharmony_ci/* ENC28J60 Receive Status Vector */
26462306a36Sopenharmony_ci#define RSV_RXLONGEVDROPEV	16
26562306a36Sopenharmony_ci#define RSV_CARRIEREV		18
26662306a36Sopenharmony_ci#define RSV_CRCERROR		20
26762306a36Sopenharmony_ci#define RSV_LENCHECKERR		21
26862306a36Sopenharmony_ci#define RSV_LENOUTOFRANGE	22
26962306a36Sopenharmony_ci#define RSV_RXOK		23
27062306a36Sopenharmony_ci#define RSV_RXMULTICAST		24
27162306a36Sopenharmony_ci#define RSV_RXBROADCAST		25
27262306a36Sopenharmony_ci#define RSV_DRIBBLENIBBLE	26
27362306a36Sopenharmony_ci#define RSV_RXCONTROLFRAME	27
27462306a36Sopenharmony_ci#define RSV_RXPAUSEFRAME	28
27562306a36Sopenharmony_ci#define RSV_RXUNKNOWNOPCODE	29
27662306a36Sopenharmony_ci#define RSV_RXTYPEVLAN		30
27762306a36Sopenharmony_ci
27862306a36Sopenharmony_ci#define RSV_SIZE		6
27962306a36Sopenharmony_ci#define RSV_BITMASK(x)		(1 << ((x) - 16))
28062306a36Sopenharmony_ci#define RSV_GETBIT(x, y)	(((x) & RSV_BITMASK(y)) ? 1 : 0)
28162306a36Sopenharmony_ci
28262306a36Sopenharmony_ci
28362306a36Sopenharmony_ci/* SPI operation codes */
28462306a36Sopenharmony_ci#define ENC28J60_READ_CTRL_REG	0x00
28562306a36Sopenharmony_ci#define ENC28J60_READ_BUF_MEM	0x3A
28662306a36Sopenharmony_ci#define ENC28J60_WRITE_CTRL_REG 0x40
28762306a36Sopenharmony_ci#define ENC28J60_WRITE_BUF_MEM	0x7A
28862306a36Sopenharmony_ci#define ENC28J60_BIT_FIELD_SET	0x80
28962306a36Sopenharmony_ci#define ENC28J60_BIT_FIELD_CLR	0xA0
29062306a36Sopenharmony_ci#define ENC28J60_SOFT_RESET	0xFF
29162306a36Sopenharmony_ci
29262306a36Sopenharmony_ci
29362306a36Sopenharmony_ci/* buffer boundaries applied to internal 8K ram
29462306a36Sopenharmony_ci * entire available packet buffer space is allocated.
29562306a36Sopenharmony_ci * Give TX buffer space for one full ethernet frame (~1500 bytes)
29662306a36Sopenharmony_ci * receive buffer gets the rest */
29762306a36Sopenharmony_ci#define TXSTART_INIT		0x1A00
29862306a36Sopenharmony_ci#define TXEND_INIT		0x1FFF
29962306a36Sopenharmony_ci
30062306a36Sopenharmony_ci/* Put RX buffer at 0 as suggested by the Errata datasheet */
30162306a36Sopenharmony_ci#define RXSTART_INIT		0x0000
30262306a36Sopenharmony_ci#define RXEND_INIT		0x19FF
30362306a36Sopenharmony_ci
30462306a36Sopenharmony_ci/* maximum ethernet frame length */
30562306a36Sopenharmony_ci#define MAX_FRAMELEN		1518
30662306a36Sopenharmony_ci
30762306a36Sopenharmony_ci/* Preferred half duplex: LEDA: Link status LEDB: Rx/Tx activity */
30862306a36Sopenharmony_ci#define ENC28J60_LAMPS_MODE	0x3476
30962306a36Sopenharmony_ci
31062306a36Sopenharmony_ci#endif
311