瀏覽代碼

tsec: Move tsec.h to include/

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>
Andy Fleming 16 年之前
父節點
當前提交
dd3d1f56a0
共有 2 個文件被更改,包括 7 次插入7 次删除
  1. 1 7
      drivers/net/tsec.c
  2. 6 0
      include/tsec.h

+ 1 - 7
drivers/net/tsec.c

@@ -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:

+ 6 - 0
drivers/net/tsec.h → include/tsec.h

@@ -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 */