/external/u-boot/drivers/net/ |
D | lan91c96.c | 211 SMC_outw(dev, LAN91C96_RCR_SOFT_RST, LAN91C96_RCR); in smc_reset() 216 SMC_outw(dev, 0, LAN91C96_RCR); in smc_reset() 217 SMC_outw(dev, 0, LAN91C96_TCR); in smc_reset() 221 SMC_outw(dev, SMC_inw(dev, LAN91C96_CONTROL) | LAN91C96_CTR_BIT_8, in smc_reset() 243 SMC_outw(dev, LAN91C96_MCR_TRANSMIT_PAGES, LAN91C96_MCR); in smc_enable() 246 SMC_outw(dev, LAN91C96_TCR_TXENA, LAN91C96_TCR); in smc_enable() 253 SMC_outw(dev, LAN91C96_RCR_RXEN | LAN91C96_RCR_PRMS, LAN91C96_RCR); in smc_enable() 342 SMC_outw(dev, LAN91C96_MMUCR_ALLOC_TX | numPages, LAN91C96_MMU); in smc_send_packet() 384 SMC_outw(dev, LAN91C96_PTR_AUTO_INCR, LAN91C96_POINTER); in smc_send_packet() 399 SMC_outw(dev, 0, LAN91C96_DATA_HIGH); in smc_send_packet() [all …]
|
D | smc91111.c | 177 static inline void SMC_outw(struct eth_device *dev, word value, dword offset) in SMC_outw() function 222 SMC_outw(dev, *p++, offset); in SMC_outsw() 299 SMC_outw (dev, RCR_SOFTRST, RCR_REG); in smc_reset() 307 SMC_outw (dev, CONFIG_DEFAULT | CONFIG_EXT_PHY, CONFIG_REG); in smc_reset() 309 SMC_outw (dev, CONFIG_DEFAULT, CONFIG_REG); in smc_reset() 315 SMC_outw (dev, SMC_inw (dev, CONFIG_REG) | CONFIG_EPH_POWER_EN, in smc_reset() 324 SMC_outw (dev, RCR_CLEAR, RCR_REG); in smc_reset() 325 SMC_outw (dev, TCR_CLEAR, TCR_REG); in smc_reset() 329 SMC_outw (dev, CTL_DEFAULT, CTL_REG); in smc_reset() 334 SMC_outw (dev, MC_RESET, MMU_CMD_REG); in smc_reset() [all …]
|
D | smc91111.h | 92 #define SMC_outw(a,d,r) (*((volatile word *)((a)->iobase+(r<<1))) = d) macro 95 #define SMC_outw(a,d,r) (*((volatile word *)((a)->iobase+(r))) = d) macro 102 SMC_outw((a),__w,(r)&~1); \ 117 SMC_outw((a), *(__b2 + __i), r); \ 171 #define SMC_outw(a,d,r) (*(volatile word *)((a)->iobase+((r)<<0))=SMC_LEON_SWAP16(d)) macro 177 SMC_outw((a),__w,(r)&~1); \ 228 #define SMC_outw(a, d, r) (*((volatile word *)((a)->iobase+(r))) = d) macro 235 SMC_outw((a), __w, ((r)&(~1))); \ 242 SMC_outw(a, SWAB7206(*__b2), r); \ 263 #define SMC_outw(a,d,r) (*((volatile word *)((a)->iobase+((r)<<1))) = d) macro [all …]
|
D | lan91c96.h | 74 #define SMC_outw(edev, d, r) (*((volatile word *)SMCREG(edev, r)) = d) macro 79 SMC_outw(edev, __w, (r)&~1); \ 95 SMC_outw(edev, *(__b2 + __i),\ 140 #define SMC_outw(edev, d, r) (*((volatile word *)((edev)->iobase+(r))) = d) macro 145 SMC_outw(edev, __w, (r)&~1); \ 151 SMC_outw(edev, *(__b2 + __i),\ 584 #define SMC_SELECT_BANK(edev, x) { SMC_outw(edev, x, LAN91C96_BANK_SELECT); }
|
/external/u-boot/examples/standalone/ |
D | smc91111_eeprom.c | 203 SMC_outw (&dev, value, reg & 0xE); in smc91111_eeprom() 236 SMC_outw (dev, (SMC_inw (dev, CTL_REG) & !CTL_EEPROM_SELECT) | in copy_from_eeprom() 314 SMC_outw (dev, reg, PTR_REG); in read_eeprom_reg() 317 SMC_outw (dev, SMC_inw (dev, CTL_REG) | CTL_EEPROM_SELECT | in read_eeprom_reg() 336 SMC_outw (dev, reg, PTR_REG); in write_eeprom_reg() 339 SMC_outw (dev, value, GP_REG); in write_eeprom_reg() 340 SMC_outw (dev, SMC_inw (dev, CTL_REG) | CTL_EEPROM_SELECT | in write_eeprom_reg()
|