]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
tsec: Move tsec.h to include/
authorAndy Fleming <afleming@freescale.com>
Sun, 31 Aug 2008 21:33:25 +0000 (16:33 -0500)
committerBen Warren <biggerbadderben@gmail.com>
Wed, 3 Sep 2008 04:18:15 +0000 (21:18 -0700)
This is to prepare the way for board code passing in the tsec_info structure

Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
drivers/net/tsec.c
include/tsec.h [moved from drivers/net/tsec.h with 99% similarity]

index e50d516f5773f919642d3946cd02d4157f738f21..59d41e9ce681f81ea4ec53b80ec89c46029cbbc5 100644 (file)
@@ -16,8 +16,8 @@
 #include <malloc.h>
 #include <net.h>
 #include <command.h>
+#include <tsec.h>
 
-#include "tsec.h"
 #include "miiphy.h"
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -32,12 +32,6 @@ typedef volatile struct rtxbd {
        rxbd8_t rxbd[PKTBUFSRX];
 } RTXBD;
 
-struct tsec_info_struct {
-       unsigned int phyaddr;
-       u32 flags;
-       unsigned int phyregidx;
-};
-
 /* The tsec_info structure contains 3 values which the
  * driver uses to determine how to operate a given ethernet
  * device. The information needed is:
similarity index 99%
rename from drivers/net/tsec.h
rename to include/tsec.h
index fee5934e67940b2b07ad318271b6d42d672f2ecf..83863aef16299d534820eaefb11f76403e229a44 100644 (file)
@@ -583,4 +583,10 @@ struct phy_info {
        struct phy_cmd *shutdown;
 };
 
+struct tsec_info_struct {
+       unsigned int phyaddr;
+       u32 flags;
+       unsigned int phyregidx;
+};
+
 #endif /* __TSEC_H */