Project

General

Profile

Bug #143 » rge.diff

Alexander Eremin, 2010-09-03 06:51 AM

View differences:

usr/src/uts/common/io/rge/rge.h Mon Aug 30 23:48:20 2010 -0700 → usr/src/uts/common/io/rge/rge.h Fri Sep 03 14:48:33 2010 +0400
348 348
	uint8_t			clsize;		/* cache-line-size	*/
349 349
	uint8_t			latency;	/* latency-timer	*/
350 350
	boolean_t		is_pcie;
351
	boolean_t               enable_mac_first;
351 352
	uint32_t		mac_ver;
352 353
	uint32_t		phy_ver;
353 354
	uint32_t		rxconfig;
usr/src/uts/common/io/rge/rge_chip.c Mon Aug 30 23:48:20 2010 -0700 → usr/src/uts/common/io/rge/rge_chip.c Fri Sep 03 14:48:33 2010 +0400
710 710
	/*
711 711
	 * Workaround for 8101E_C
712 712
	 */
713
	chip->enable_mac_first = !chip->is_pcie;
713 714
	if (chip->mac_ver == MAC_VER_8101E_C) {
714 715
		chip->is_pcie = B_FALSE;
715 716
	}
......
938 939
	/*
939 940
	 * Start transmit/receive before set tx/rx configuration register
940 941
	 */
941
	if (!chip->is_pcie)
942
	if (chip->enable_mac_first)
942 943
		rge_reg_set8(rgep, RT_COMMAND_REG,
943 944
		    RT_COMMAND_RX_ENABLE | RT_COMMAND_TX_ENABLE);
944 945

  
(1-1/3)