Changeset 0b749a3 in mainline for uspace/srv/hw/netif/dp8390/dp8390.c


Ignore:
Timestamp:
2010-11-22T15:39:53Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0eddb76, aae339e9
Parents:
9a1d8ab (diff), 8cd1aa5e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge development/ changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/netif/dp8390/dp8390.c

    r9a1d8ab r0b749a3  
    3434
    3535#include <assert.h>
     36#include <byteorder.h>
    3637#include <errno.h>
    3738
    38 #include <net_byteorder.h>
    3939#include <netif_local.h>
    40 #include <packet/packet.h>
    41 #include <packet/packet_client.h>
     40#include <net/packet.h>
     41#include <packet_client.h>
    4242
    4343#include "dp8390_drv.h"
     
    6262 *  @param[in] dep The network interface structure.
    6363 *  @param[in] packet The outgoing packet.
    64  *  @returns EOK on success.
    65  *  @returns EINVAL
     64 *  @return EOK on success.
     65 *  @return EINVAL
    6666 */
    67 int queue_packet(dpeth_t * dep, packet_t packet);
     67int queue_packet(dpeth_t * dep, packet_t *packet);
    6868
    6969/** Reads a memory block byte by byte.
     
    336336}
    337337
    338 int queue_packet(dpeth_t * dep, packet_t packet){
    339         packet_t tmp;
     338int queue_packet(dpeth_t * dep, packet_t *packet){
     339        packet_t *tmp;
    340340
    341341        if(dep->packet_count >= MAX_PACKETS){
     
    361361 *                      based on        do_vwrite                                    *
    362362 *===========================================================================*/
    363 int do_pwrite(dpeth_t * dep, packet_t packet, int from_int)
     363int do_pwrite(dpeth_t * dep, packet_t *packet, int from_int)
    364364{
    365365//      int port, count, size;
     
    432432        dep->de_write_iovec.iod_iovec[0].iov_size = size;
    433433        dep->de_write_iovec.iod_iovec_s = 1;
    434         dep->de_write_iovec.iod_iovec_addr = NULL;
     434        dep->de_write_iovec.iod_iovec_addr = (uintptr_t) NULL;
    435435
    436436        if (size < ETH_MIN_PACK_SIZE || size > ETH_MAX_PACK_SIZE_TAGGED)
     
    910910dpeth_t *dep;
    911911{
    912         packet_t packet;
     912        packet_t *packet;
    913913
    914914//      if (!(dep->de_flags &DEF_SEND_AVAIL))
     
    10031003{
    10041004        int last, count;
    1005         packet_t packet;
     1005        packet_t *packet;
    10061006
    10071007//      if (!(dep->de_flags &DEF_READING))
     
    10151015        dep->de_read_iovec.iod_iovec[0].iov_size = length;
    10161016        dep->de_read_iovec.iod_iovec_s = 1;
    1017         dep->de_read_iovec.iod_iovec_addr = NULL;
     1017        dep->de_read_iovec.iod_iovec_addr = (uintptr_t) NULL;
    10181018
    10191019        last = page + (length - 1) / DP_PAGESIZE;
Note: See TracChangeset for help on using the changeset viewer.