/* copy TX descriptor to buffer mem append FC field and MAC frame if more bit is set in descr append pointer to descriptor (endless loop) else append 'end of chain' pointer  */
static void copy_tx_mac(struct s_smc *smc, u_long td, struct fddi_mac *mac, unsigned off, int len)
/* copy TX descriptor to buffer mem append FC field and MAC frame if more bit is set in descr append pointer to descriptor (endless loop) else append 'end of chain' pointer  */
static void copy_tx_mac(struct s_smc *smc, u_long td, struct fddi_mac *mac, unsigned off, int len)
{
	int	i ;
	__le32	*p ;
	CHECK_NPP() ;
	MARW(off) ;
	p = (__le32 *) mac ;
	for (i = (len + 3)/4 ; i ; i--) {
		if (i == 1) {
			outpw(FM_A(FM_CMDREG2),FM_ISTTB) ;
		}
		write_mdr(smc,le32_to_cpu(*p)) ;
		p++ ;
	}
	outpw(FM_A(FM_CMDREG2),FM_ISTTB) ;
	write_mdr(smc,td) ;
}