Lines Matching +full:mode +full:- +full:capable

1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*------------------------------------------------------------------------
3 . smc91111.h - macros for the LAN91C111 Ethernet Driver
6 . Sysgo Real-Time Solutions, GmbH <www.elinos.com>
27 ---------------------------------------------------------------------------*/
71 #define SMC_inl(a,r) (*((volatile dword *)((a)->iobase+((r)<<1))))
72 #define SMC_inw(a,r) (*((volatile word *)((a)->iobase+((r)<<1))))
74 unsigned int __p = (unsigned int)((a)->iobase + ((p)<<1)); \
80 #define SMC_inl(a,r) (*((volatile dword *)((a)->iobase+(r))))
81 #define SMC_inw(a,r) (*((volatile word *)((a)->iobase+(r))))
83 unsigned int __p = (unsigned int)((a)->iobase + (p)); \
91 #define SMC_outl(a,d,r) (*((volatile dword *)((a)->iobase+(r<<1))) = d)
92 #define SMC_outw(a,d,r) (*((volatile word *)((a)->iobase+(r<<1))) = d)
94 #define SMC_outl(a,d,r) (*((volatile dword *)((a)->iobase+(r))) = d)
95 #define SMC_outw(a,d,r) (*((volatile word *)((a)->iobase+(r))) = d)
159 #define SMC_inl(a,r) (SMC_LEON_SWAP32((*(volatile dword *)((a)->iobase+((r)<<0)))))
160 #define SMC_inl_nosw(a,r) ((*(volatile dword *)((a)->iobase+((r)<<0))))
161 #define SMC_inw(a,r) (SMC_LEON_SWAP16((*(volatile word *)((a)->iobase+((r)<<0)))))
162 #define SMC_inw_nosw(a,r) ((*(volatile word *)((a)->iobase+((r)<<0))))
169 #define SMC_outl(a,d,r) (*(volatile dword *)((a)->iobase+((r)<<0))=SMC_LEON_SWAP32(d))
170 #define SMC_outl_nosw(a,d,r) (*(volatile dword *)((a)->iobase+((r)<<0))=(d))
171 #define SMC_outw(a,d,r) (*(volatile word *)((a)->iobase+((r)<<0))=SMC_LEON_SWAP16(d))
172 #define SMC_outw_nosw(a,d,r) (*(volatile word *)((a)->iobase+((r)<<0))=(d))
218 #define SMC_inw(a, r) *((volatile word*)((a)->iobase + (r)))
219 #define SMC_inb(a, r) (*((volatile byte*)((a)->iobase + ((r) ^ 0x01))))
228 #define SMC_outw(a, d, r) (*((volatile word *)((a)->iobase+(r))) = d)
254 #define SMC_inw(a,r) (*((volatile word *)((a)->iobase+((r)<<1))))
256 #define SMC_inw(a, r) (*((volatile word*)((a)->iobase+((dword)(r)))))
258 #define SMC_inw(a, r) (*((volatile word*)((a)->iobase+(r))))
263 #define SMC_outw(a,d,r) (*((volatile word *)((a)->iobase+((r)<<1))) = d)
266 (*((volatile word*)((a)->iobase+((dword)(r)))) = d)
269 (*((volatile word*)((a)->iobase+(r))) = d)
278 #define SMC_outsw(a,r,b,l) outsw((a)->iobase+(r), (b), (l))
290 #define SMC_insw(a,r,b,l) insw((a)->iobase+(r), (b), (l))
307 #define SMC_inl(a,r) (*((volatile dword *)((a)->iobase+(r<<1))))
309 #define SMC_inl(a,r) (*((volatile dword *)((a)->iobase+(r))))
322 #define SMC_outl(a,d,r) (*((volatile dword *)((a)->iobase+(r<<1))) = d)
324 #define SMC_outl(a,d,r) (*((volatile dword *)((a)->iobase+(r))) = d)
338 /*---------------------------------------------------------------
349 -----------------------------------------------------------------------*/
372 #define TCR_SWFDUP 0x8000 /* When 1 enables Switched Full Duplex mode */
403 #define RCR_PRMS 0x0002 /* Enable promiscuous mode */
426 #define RPC_SPEED 0x2000 /* When 1 PHY is in 100Mbps mode. */
427 #define RPC_DPLX 0x1000 /* When 1 PHY is in Full-Duplex Mode */
428 #define RPC_ANEG 0x0800 /* When 1 PHY is in Auto-Negotiate Mode */
434 #define RPC_LED_FD (0x03) /* LED = Full Duplex Mode */
440 /* buggy schematic: LEDa -> yellow, LEDb --> green */
445 /* SSV ADNP/ESC1 has only one LED: LEDa -> Rx/Tx indicator */
450 /* SMSC reference design: LEDa --> green, LEDb --> yellow */
469 #define CONFIG_EPH_POWER_EN 0x8000 /* When 0 EPH is placed into low power mode. */
471 /* Default is powered-up, Internal Phy, Wait States, and pin nCNTRL=low */
667 #define PHY_CNTL_PDN 0x0800 /* 1=PHY Power Down mode */
675 #define PHY_STAT_CAP_T4 0x8000 /* 1=100Base-T4 capable */
676 #define PHY_STAT_CAP_TXF 0x4000 /* 1=100Base-X full duplex capable */
677 #define PHY_STAT_CAP_TXH 0x2000 /* 1=100Base-X half duplex capable */
678 #define PHY_STAT_CAP_TF 0x1000 /* 1=10Mbps full duplex capable */
679 #define PHY_STAT_CAP_TH 0x0800 /* 1=10Mbps half duplex capable */
683 #define PHY_STAT_CAP_ANEG 0x0008 /* 1=Auto negotiate capable */
692 /* PHY Auto-Negotiation Advertisement Register */
697 #define PHY_AD_T4 0x0200 /* 1=PHY is capable of 100Base-T4 */
698 #define PHY_AD_TX_FDX 0x0100 /* 1=PHY is capable of 100Base-TX FDPLX */
699 #define PHY_AD_TX_HDX 0x0080 /* 1=PHY is capable of 100Base-TX HDPLX */
700 #define PHY_AD_10_FDX 0x0040 /* 1=PHY is capable of 10Base-T FDPLX */
701 #define PHY_AD_10_HDX 0x0020 /* 1=PHY is capable of 10Base-T HDPLX */
702 #define PHY_AD_CSMA 0x0001 /* 1=PHY is capable of 802.3 CMSA */
704 /* PHY Auto-negotiation Remote End Capability Register */
740 #define PHY_INT_SPDDET 0x0080 /* 1=100Base-TX mode, 0=10Base-T mode */
748 /*-------------------------------------------------------------------------
751 --------------------------------------------------------------------------*/
776 /*----------------------------------------------------------------------
784 --------------------------------------------------------------------------*/