Mercurial > flash_v2
comparison packages/io/eth/current/src/stand_alone/eth_drv.c @ 143:6b5f480c6929 ecos-sw-2000-12-08
Merge from eCos master repository on 2000-12-08-02:09:36-GMT
| author | jlarmour |
|---|---|
| date | Fri, 08 Dec 2000 03:30:06 +0000 |
| parents | 518f42066aba |
| children | 0d0f03f76f6a |
comparison
equal
deleted
inserted
replaced
| 142:12eccf9656f3 | 143:6b5f480c6929 |
|---|---|
| 246 sg_list[0].buf = (CYG_ADDRESS)eth_hdr; | 246 sg_list[0].buf = (CYG_ADDRESS)eth_hdr; |
| 247 sg_list[0].len = 14; // FIXME | 247 sg_list[0].len = 14; // FIXME |
| 248 sg_list[1].buf = (CYG_ADDRESS)buf; | 248 sg_list[1].buf = (CYG_ADDRESS)buf; |
| 249 sg_list[1].len = len; | 249 sg_list[1].len = len; |
| 250 packet_sent = 0; | 250 packet_sent = 0; |
| 251 (sc->funs->send)(sc, sg_list, sg_len, len+14, (CYG_ADDRWORD)&packet_sent); | |
| 252 if (net_debug) { | 251 if (net_debug) { |
| 253 int old_console; | 252 int old_console; |
| 254 old_console = start_console(); | 253 old_console = start_console(); |
| 255 printf("Ethernet send:\n"); | 254 printf("Ethernet send:\n"); |
| 256 dump_buf((CYG_ADDRWORD)eth_hdr, 14); | 255 dump_buf((CYG_ADDRWORD)eth_hdr, 14); |
| 257 dump_buf((CYG_ADDRWORD)buf, len); | 256 dump_buf((CYG_ADDRWORD)buf, len); |
| 258 end_console(old_console); | 257 end_console(old_console); |
| 259 } | 258 } |
| 259 (sc->funs->send)(sc, sg_list, sg_len, len+14, (CYG_ADDRWORD)&packet_sent); | |
| 260 | 260 |
| 261 while (!packet_sent) { | 261 while (!packet_sent) { |
| 262 (sc->funs->poll)(sc); | 262 (sc->funs->poll)(sc); |
| 263 } | 263 } |
| 264 reset_and_out: | 264 reset_and_out: |
