Ignore:
Timestamp:
2018-05-22T19:06:50Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c1ba24a
Parents:
5b5c286
git-author:
Jakub Jermar <jakub@…> (2018-05-20 10:35:33)
git-committer:
Jakub Jermar <jakub@…> (2018-05-22 19:06:50)
Message:

virtio-net: Setup DMA buffers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/virtio-net/virtio-net.h

    r5b5c286 r9364ced  
    3232#include <virtio-pci.h>
    3333
     34#define RX_BUFFERS      8
     35#define TX_BUFFERS      8
     36#define CT_BUFFERS      4
     37
    3438/** Device handles packets with partial checksum. */
    3539#define VIRTIO_NET_F_CSUM               (1U << 0)
     
    4751typedef struct {
    4852        virtio_dev_t virtio_dev;
     53        void *rx_buf[RX_BUFFERS];
     54        uintptr_t rx_buf_p[RX_BUFFERS];
     55        void *tx_buf[TX_BUFFERS];
     56        uintptr_t tx_buf_p[TX_BUFFERS];
     57        void *ct_buf[CT_BUFFERS];
     58        uintptr_t ct_buf_p[CT_BUFFERS];
    4959} virtio_net_t;
    5060
Note: See TracChangeset for help on using the changeset viewer.