/*
. Configures the PHY through the MII Management interface
*/
+#ifndef CONFIG_SMC91111_EXT_PHY
static void smc_phy_configure(void);
+#endif
/*
. This is a separate procedure to handle the receipt of a packet, to
MII Management Interface
*/
+#ifndef CONFIG_SMC91111_EXT_PHY
static word smc_read_phy_register(byte phyreg);
static void smc_write_phy_register(byte phyreg, word phydata);
+#endif
static int poll4int( byte mask, int timeout ) {
}
#ifdef USE_32_BIT
-void
-insl32(r,b,l)
+void insl32(int r, int b, int l)
{
int __i ;
dword *__b2;
if (packet_length & 3)
{
int i;
- byte *tail = NetRxPackets[0] + (packet_length & ~3);
+ volatile byte *tail = NetRxPackets[0] + (packet_length & ~3);
dword leftover = SMC_inl(DATA_REG);
for (i=0; i<(packet_length & 3); i++)
*tail++ = (byte) (leftover >> (8*i)) & 0xff;
}
#endif
+#ifndef CONFIG_SMC91111_EXT_PHY
/*------------------------------------------------------------
. Reads a register from the MII Management serial interface
.-------------------------------------------------------------*/
smc_phy_configure_exit:
}
+#endif /* !CONFIG_SMC91111_EXT_PHY */
#if SMC_DEBUG > 2