[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100826084312.2b23048f@nehalam>
Date: Thu, 26 Aug 2010 08:43:12 -0700
From: Stephen Hemminger <shemminger@...tta.com>
To: Masayuki Ohtake <masa-korg@....okisemi.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
ML netdev <netdev@...r.kernel.org>,
Greg Rose <gregory.v.rose@...el.com>,
Maxime Bizon <mbizon@...ebox.fr>,
Kristoffer Glembo <kristoffer@...sler.com>,
Ralf Baechle <ralf@...ux-mips.org>,
John Linn <john.linn@...inx.com>,
Randy Dunlap <randy.dunlap@...cle.com>,
"David S. Miller" <davem@...emloft.net>,
MeeGo <meego-dev@...go.com>, "Wang, Qi" <qi.wang@...el.com>,
"Wang, Yong Y" <yong.y.wang@...el.com>,
Andrew <andrew.chih.howe.khor@...el.com>,
Intel OTC <joel.clark@...el.com>,
"Foster, Margie" <margie.foster@...el.com>,
Toshiharu Okada <okada533@....okisemi.com>,
Tomoya Morinaga <morinaga526@....okisemi.com>,
Takahiro Shimizu <shimizu394@....okisemi.com>
Subject: Re: [PATCH] Gigabit Ethernet driver of Topcliff PCH
On Thu, 26 Aug 2010 18:56:55 +0900
Masayuki Ohtake <masa-korg@....okisemi.com> wrote:
> s32 pch_gbe_mac_read_mac_addr(struct pch_gbe_hw *hw)
> +{
> + u32 adr1a, adr1b;
> +
> + PCH_GBE_DEBUG("pch_gbe_mac_read_mac_addr\n");
> +
> + adr1a = ioread32(&hw->reg->mac_adr[0].high);
> + adr1b = ioread32(&hw->reg->mac_adr[0].low);
> +
> + hw->mac.addr[0] = (u8)(adr1a & 0xFF);
> + hw->mac.addr[1] = (u8)((adr1a >> 8) & 0xFF);
> + hw->mac.addr[2] = (u8)((adr1a >> 16) & 0xFF);
> + hw->mac.addr[3] = (u8)((adr1a >> 24) & 0xFF);
> + hw->mac.addr[4] = (u8)(adr1b & 0xFF);
> + hw->mac.addr[5] = (u8)((adr1b >> 8) & 0xFF);
> +
> + PCH_GBE_DEBUG("hw->mac.addr : 0x%02x %02x %02x %02x %02x %02x\n",
> + hw->mac.addr[0], hw->mac.addr[1], hw->mac.addr[2],
> + hw->mac.addr[3], hw->mac.addr[4], hw->mac.addr[5]);
can use new %pM printk format here.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists