Changeset 21ff054 in mainline for uspace/lib/virtio/virtio-pci.h


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:
5f03107
Parents:
4e2d387
git-author:
Jakub Jermar <jakub@…> (2018-04-25 19:17:47)
git-committer:
Jakub Jermar <jakub@…> (2018-05-22 19:06:50)
Message:

Make sure the PCI capability is big enough

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/virtio/virtio-pci.h

    r4e2d387 r21ff054  
    3737#include <ddi.h>
    3838
    39 #define VIRTIO_PCI_CAP_TYPE(c)          ((c) + 3)
     39#define VIRTIO_PCI_CAP_CAP_LEN(c)       ((c) + 2)
     40#define VIRTIO_PCI_CAP_CFG_TYPE(c)      ((c) + 3)
    4041#define VIRTIO_PCI_CAP_BAR(c)           ((c) + 4)
    4142#define VIRTIO_PCI_CAP_OFFSET(c)        ((c) + 8)
Note: See TracChangeset for help on using the changeset viewer.