kernels/linux-2.4.0/drivers/net/tlan.c
/*********************************************************************
	 *	TLan_PhyPrint
	 *
	 *	Returns:
	 *		Nothing
	 *	Parms:
	 *		dev	A pointer to the device structure of the
	 *			TLAN device having the PHYs to be detailed.
	 *				
	 *	This function prints the registers a PHY (aka tranceiver).
	 *
	 ********************************************************************/
TLan_PhyPrint
Returns:
Nothing
Parms:
dev     A pointer to the device structure of the
TLAN device having the PHYs to be detailed.

This function prints the registers a PHY (aka tranceiver).
TLan_PhyPrint Returns : Nothing Parms : dev A pointer to the device structure of the TLAN device having the PHYs to be detailed . This function prints the registers a PHY ( aka tranceiver ) .
void TLan_PhyPrint( struct net_device *dev )
{
	TLanPrivateInfo *priv = (TLanPrivateInfo *) dev->priv;
	u16 i, data0, data1, data2, data3, phy;
	phy = priv->phy[priv->phyNum];
	if ( priv->adapter->flags & TLAN_ADAPTER_UNMANAGED_PHY ) {
		printk( "TLAN:   Device %s, Unmanaged PHY.\n", dev->name );
	} else if ( phy <= TLAN_PHY_MAX_ADDR ) {
		printk( "TLAN:   Device %s, PHY 0x%02x.\n", dev->name, phy );
		printk( "TLAN:      Off.  +0     +1     +2     +3 \n" );
                for ( i = 0; i < 0x20; i+= 4 ) {
			printk( "TLAN:      0x%02x", i );
			TLan_MiiReadReg( dev, phy, i, &data0 );
			printk( " 0x%04hx", data0 );
			TLan_MiiReadReg( dev, phy, i + 1, &data1 );
			printk( " 0x%04hx", data1 );
			TLan_MiiReadReg( dev, phy, i + 2, &data2 );
			printk( " 0x%04hx", data2 );
			TLan_MiiReadReg( dev, phy, i + 3, &data3 );
			printk( " 0x%04hx\n", data3 );
		}
	} else {
		printk( "TLAN:   Device %s, Invalid PHY.\n", dev->name );
	}
}
void TLan_PhyPrint ( struct net_device * dev ) { TLanPrivateInfo * priv = ( TLanPrivateInfo * ) dev -> priv ; u16 i , data0 , data1 , data2 , data3 , phy ; phy = priv -> phy [ priv -> phyNum ] ; if ( priv -> adapter -> flags & TLAN_ADAPTER_UNMANAGED_PHY ) { printk ( " \n " , dev -> name ) ; } else if ( phy <= TLAN_PHY_MAX_ADDR ) { printk ( " \n " , dev -> name , phy ) ; printk ( " \n " ) ; for ( i = 0 ; i < 0x20 ; i += 4 ) { printk ( " " , i ) ; TLan_MiiReadReg ( dev , phy , i , & data0 ) ; printk ( " " , data0 ) ; TLan_MiiReadReg ( dev , phy , i + 1 , & data1 ) ; printk ( " " , data1 ) ; TLan_MiiReadReg ( dev , phy , i + 2 , & data2 ) ; printk ( " " , data2 ) ; TLan_MiiReadReg ( dev , phy , i + 3 , & data3 ) ; printk ( " \n " , data3 ) ; } } else { printk ( " \n " , dev -> name ) ; } }
TLan_PhyPrint
      Returns:
              Nothing
      Parms:
              dev     A pointer to the device structure of the
                      TLAN device having the PHYs to be detailed.
TLan_PhyPrint Returns : Nothing Parms : dev A pointer to the device structure of the TLAN device having the PHYs to be detailed .