Rev 4243 | Rev 4327 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4243 | Rev 4261 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | #include "../../structures/packet/packet_client.h" |
37 | #include "../../structures/packet/packet_client.h" |
38 | 38 | ||
39 | #include "../netif.h" |
39 | #include "../netif.h" |
40 | 40 | ||
41 | #include "dp8390_drv.h" |
41 | #include "dp8390_drv.h" |
42 | #include "dp8390_module.h" |
- | |
43 | #include "dp8390_port.h" |
42 | #include "dp8390_port.h" |
44 | 43 | ||
45 | /* |
44 | /* |
46 | * dp8390.c |
45 | * dp8390.c |
47 | * |
46 | * |
Line 920... | Line 919... | ||
920 | dpeth_t *dep; |
919 | dpeth_t *dep; |
921 | int page, length; |
920 | int page, length; |
922 | { |
921 | { |
923 | int last, count; |
922 | int last, count; |
924 | packet_t packet; |
923 | packet_t packet; |
- | 924 | packet_t queue; |
|
925 | 925 | ||
926 | if (!(dep->de_flags & DEF_READING)) |
926 | if (!(dep->de_flags & DEF_READING)) |
927 | return EGENERIC; |
927 | return EGENERIC; |
928 | 928 | ||
929 | packet = netif_packet_get_1( length ); |
929 | packet = netif_packet_get_1( length ); |
Line 954... | Line 954... | ||
954 | 954 | ||
955 | dep->de_read_s = length; |
955 | dep->de_read_s = length; |
956 | dep->de_flags |= DEF_PACK_RECV; |
956 | dep->de_flags |= DEF_PACK_RECV; |
957 | dep->de_flags &= ~DEF_READING; |
957 | dep->de_flags &= ~DEF_READING; |
958 | 958 | ||
959 | if( netif_send_packet( dep, packet ) != EOK ){ |
959 | queue = pq_add( dep->received_queue, packet, 0, 0 ); |
- | 960 | if( queue ){ |
|
- | 961 | dep->received_queue = queue; |
|
- | 962 | }else{ |
|
960 | netif_pq_release( packet_get_id( packet )); |
963 | netif_pq_release( packet_get_id( packet )); |
961 | } |
964 | } |
962 | return OK; |
965 | return OK; |
963 | } |
966 | } |
964 | 967 |