summaryrefslogtreecommitdiff
path: root/sysutils/u-boot-beaglebone-eabi/files/patch-api_api.c
blob: c47354336d9397ff6ca0cfa453cfb4499dcf7023 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
--- api/api.c.orig	2013-04-19 09:25:43.000000000 -0500
+++ api/api.c	2013-05-16 17:04:11.000000000 -0500
@@ -226,8 +226,8 @@
 		debugf("RESTART ENUM\n");
 
 		/* net device enumeration first */
-		if (dev_enum_net(di))
-			return 0;
+		//if (dev_enum_net(di))
+		//return 0;
 	}
 
 	/*
@@ -264,8 +264,8 @@
 	if (di->type & DEV_TYP_STOR)
 		err = dev_open_stor(di->cookie);
 
-	else if (di->type & DEV_TYP_NET)
-		err = dev_open_net(di->cookie);
+	//	else if (di->type & DEV_TYP_NET)
+	//		err = dev_open_net(di->cookie);
 	else
 		err = API_ENODEV;
 
@@ -295,8 +295,8 @@
 	if (di->type & DEV_TYP_STOR)
 		err = dev_close_stor(di->cookie);
 
-	else if (di->type & DEV_TYP_NET)
-		err = dev_close_net(di->cookie);
+	//	else if (di->type & DEV_TYP_NET)
+	//		err = dev_close_net(di->cookie);
 	else
 		/*
 		 * In case of unknown device we cannot change its state, so
@@ -364,8 +364,8 @@
 		 */
 		return API_ENODEV;
 
-	else if (di->type & DEV_TYP_NET)
-		err = dev_write_net(di->cookie, buf, *len);
+	//	else if (di->type & DEV_TYP_NET)
+	//		err = dev_write_net(di->cookie, buf, *len);
 	else
 		err = API_ENODEV;
 
@@ -436,6 +436,7 @@
 
 		*act_len_stor = dev_read_stor(di->cookie, buf, *len_stor, *start);
 
+#if 0
 	} else if (di->type & DEV_TYP_NET) {
 
 		/* 3. arg points to the var with length of packet to read */
@@ -452,6 +453,7 @@
 
 		*act_len_net = dev_read_net(di->cookie, buf, *len_net);
 
+#endif
 	} else
 		return API_ENODEV;