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:
2d4faf7
Parents:
cbcb34c
git-author:
Jakub Jermar <jakub@…> (2018-05-05 20:07:00)
git-committer:
Jakub Jermar <jakub@…> (2018-05-22 19:06:50)
Message:

Factor our generic virtio device initialization

File:
1 edited

Legend:

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

    rcbcb34c r341df5f  
    3232#include <virtio-pci.h>
    3333
    34 #define VIRTIO_NET_F_SELECT_PAGE_0      0
    35 
    3634/** Device handles packets with partial checksum. */
    37 #define VIRTIO_NET_F_CSUM               0
     35#define VIRTIO_NET_F_CSUM               (1U << 0)
    3836/** Driver handles packets with partial checksum. */
    39 #define VIRTIO_NET_F_GUEST_CSUM         2
     37#define VIRTIO_NET_F_GUEST_CSUM         (1U << 2)
    4038/** Device has given MAC address. */
    41 #define VIRTIO_NET_F_MAC                5
     39#define VIRTIO_NET_F_MAC                (1U << 5)
    4240/** Control channel is available */
    43 #define VIRTIO_NET_F_CTRL_VQ            17
     41#define VIRTIO_NET_F_CTRL_VQ            (1U << 17)
    4442
    4543typedef struct {
Note: See TracChangeset for help on using the changeset viewer.