If you say N, all options in this submenu will be skipped and disabled.
- config ETH_MAC_FROM_WIFI_MAC
- bool "Ethernet mac from Wifi mac"
- ---help---
- Say Y here if you want to set Wifi mac to Ethernet mac,
- when the Wifi device exsits.
- This option alone does not add any kernel code.
-
- If you say N, all options in this submenu will be skipped and disabled.
-
- config ETH_MAC_FROM_SECURE_CHIP
- bool "Ethernet mac from Secure chip"
- ---help---
- Say Y here if you want to set Secure chip mac to Ethernet mac,
- when the Secure chip exsits and mac has been written in.
- This option alone does not add any kernel code.
-
- If you say N, all options in this submenu will be skipped and disabled.
-
endchoice
\r
//extern char GetSNSectorInfo(char * pbuf);\r
\r
-char GetSNSectorInfoBeforeNandInit(char * pbuf)\r
+static char GetSNSectorInfoBeforeNandInit(char * pbuf)\r
{\r
char * sn_addr = ioremap(0x10501600,0x200);\r
memcpy(pbuf,sn_addr,0x200);\r
*大写转小写\r
*\r
*/\r
-void to_lower(char *str) \r
+static void to_lower(char *str) \r
{ \r
int i=0; \r
while(str[i]!=0) \r
*\r
*\r
*/\r
-void trans( char *src ,int * k) \r
+static void trans( char *src ,int * k) \r
{\r
char c;\r
int i;\r
\r
}\r
\r
-int eth_mac_wifi(u8 *eth_mac){\r
+/*int eth_mac_wifi(u8 *eth_mac){\r
int i;\r
struct file *file = NULL;\r
char wifi_mac[32];\r
filp_close(file,NULL);\r
return 0;\r
\r
-}\r
+}*/\r
\r
\r
\r
}\r
#endif\r
\r
- #ifdef CONFIG_ETH_MAC_FROM_WIFI_MAC\r
+ /*#ifdef CONFIG_ETH_MAC_FROM_WIFI_MAC\r
err = eth_mac_wifi(dev->dev_addr);\r
if (err) {\r
printk("read mac from Wifi fail.\n");\r
dev->dev_addr[4],dev->dev_addr[5] );\r
}\r
}\r
- #endif\r
+ #endif*/\r
\r
#ifdef CONFIG_ETH_MAC_FROM_RANDOM\r
random_ether_addr(dev->dev_addr);\r