From: Anton Vorontsov <avorontsov@ru.mvista.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/5] net: tsec: export tsec_info
Date: Tue, 30 Sep 2008 20:27:37 +0400 [thread overview]
Message-ID: <20080930162737.GD12032@oksana.dev.rtsoft.ru> (raw)
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 <avorontsov@ru.mvista.com>
---
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
next reply other threads:[~2008-09-30 16:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-30 16:27 Anton Vorontsov [this message]
2008-09-30 19:15 ` [U-Boot] [PATCH 4/5] net: tsec: export tsec_info Andy Fleming
2008-09-30 21:56 ` Anton Vorontsov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080930162737.GD12032@oksana.dev.rtsoft.ru \
--to=avorontsov@ru.mvista.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.