From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anton Vorontsov Date: Tue, 30 Sep 2008 20:27:37 +0400 Subject: [U-Boot] [PATCH 4/5] net: tsec: export tsec_info Message-ID: <20080930162737.GD12032@oksana.dev.rtsoft.ru> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de We'll need the exported tsec_info to fix up the phy addresses and tsecs' flags based on the hardware reset configuration words. Thus we'll use the tsec_info very early and just once at boot time, so network code won't notice it. Signed-off-by: Anton Vorontsov --- drivers/net/tsec.c | 2 +- include/tsec.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c index 8ab6d07..1bca1b4 100644 --- a/drivers/net/tsec.c +++ b/drivers/net/tsec.c @@ -72,7 +72,7 @@ static int tsec_mcast_addr (struct eth_device *dev, u8 mcast_mac, u8 set); /* Default initializations for TSEC controllers. */ -static struct tsec_info_struct tsec_info[] = { +struct tsec_info_struct tsec_info[] = { #ifdef CONFIG_TSEC1 STD_TSEC_INFO(1), /* TSEC1 */ #endif diff --git a/include/tsec.h b/include/tsec.h index f7e5857..191bf1b 100644 --- a/include/tsec.h +++ b/include/tsec.h @@ -630,6 +630,8 @@ struct tsec_info_struct { u32 flags; }; +extern struct tsec_info_struct tsec_info[]; + int tsec_initialize(bd_t * bis, struct tsec_info_struct *tsec_info); int tsec_standard_init(bd_t *bis); int tsec_eth_init(bd_t *bis, struct tsec_info_struct *tsec_info, int num); -- 1.5.6.3