Changeset fc23ef6 in mainline
- Timestamp:
- 2011-01-06T15:05:59Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 74864ac
- Parents:
- 2a6e4ac2
- Location:
- uspace/srv/hw/netif/dp8390
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/netif/dp8390/dp8390.c
r2a6e4ac2 rfc23ef6 233 233 assert(!from_int); 234 234 // dep->de_flags |= DEF_PACK_SEND; 235 reply(dep, OK, FALSE);235 reply(dep, EOK, FALSE); 236 236 // return; 237 237 return EOK; … … 253 253 // dep->de_sendmsg= *mp; 254 254 // dep->de_flags |= DEF_SEND_AVAIL; 255 // reply(dep, OK, FALSE);255 // reply(dep, EOK, FALSE); 256 256 // return; 257 257 // return queue_packet(dep, packet); … … 318 318 return EOK; 319 319 320 reply(dep, OK, FALSE);320 reply(dep, EOK, FALSE); 321 321 322 322 assert(dep->de_mode == DEM_ENABLED); … … 711 711 // else 712 712 r = dp_pkt2user(dep, pageno, length); 713 if (r != OK)713 if (r != EOK) 714 714 return; 715 715 … … 856 856 } 857 857 } 858 return OK;858 return EOK; 859 859 } 860 860 … … 974 974 // SELF, D, (vir_bytes)&two_bytes[1], 1); 975 975 SELF, D, (vir_bytes)&(((u8_t *)&two_bytes)[1]), 1); 976 if (r != OK)976 if (r != EOK) 977 977 { 978 978 panic("DP8390", … … 1006 1006 // SELF, D, (vir_bytes)&two_bytes[0], 1); 1007 1007 SELF, D, (vir_bytes)&(((u8_t *)&two_bytes)[0]), 1); 1008 if (r != OK)1008 if (r != EOK) 1009 1009 { 1010 1010 panic("DP8390", … … 1138 1138 r= sys_vircopy(SELF, D, (vir_bytes)&(((u8_t *)&two_bytes)[1]), 1139 1139 user_proc, D, vir_user, 1); 1140 if (r != OK)1140 if (r != EOK) 1141 1141 { 1142 1142 panic("DP8390", … … 1170 1170 r= sys_vircopy(SELF, D, (vir_bytes)&(((u8_t *)&two_bytes)[0]), 1171 1171 user_proc, D, vir_user, 1); 1172 if (r != OK)1172 if (r != EOK) 1173 1173 { 1174 1174 panic("DP8390", … … 1290 1290 r= sys_vircopy(user_proc, D, user_addr, 1291 1291 SELF, D, (vir_bytes)loc_addr, count); 1292 if (r != OK)1292 if (r != EOK) 1293 1293 panic("DP8390", "get_userdata: sys_vircopy failed", r); 1294 1294 } -
uspace/srv/hw/netif/dp8390/dp8390_port.h
r2a6e4ac2 rfc23ef6 50 50 #define _PROTOTYPE(function, params) function params 51 51 52 /** Success error code.53 */54 #define OK EOK55 56 52 /** Type definition of the unsigned byte. 57 53 */ -
uspace/srv/hw/netif/dp8390/ne2000.c
r2a6e4ac2 rfc23ef6 16 16 #define N 100 17 17 18 /** Type definition of the testing function. 19 */ 20 _PROTOTYPE(typedef int (*testf_t), (dpeth_t *dep, int pos, u8_t *pat)); 18 typedef int (*testf_t)(dpeth_t *dep, int pos, u8_t *pat); 21 19 22 20 /** Data patterns */
Note:
See TracChangeset
for help on using the changeset viewer.