Changeset 6ccc424 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:
a86174ec
Parents:
00192cde
git-author:
Jakub Jermar <jakub@…> (2018-04-21 22:14:00)
git-committer:
Jakub Jermar <jakub@…> (2018-05-22 19:06:50)
Message:

Process VIRTIO PCI configuration structures

File:
1 edited

Legend:

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

    r00192cde r6ccc424  
    3434
    3535#include <ddf/driver.h>
     36#include <pci_dev_iface.h>
    3637#include <ddi.h>
    3738
     
    4041#define VIRTIO_PCI_CAP_OFFSET(c)        ((c) + 8)
    4142#define VIRTIO_PCI_CAP_LENGTH(c)        ((c) + 12)
     43#define VIRTIO_PCI_CAP_END(c)           ((c) + 16)
    4244
    4345#define VIRTIO_PCI_CAP_COMMON_CFG       1
     
    6870
    6971typedef struct {
     72        struct {
     73                bool mapped;
     74                void *mapped_base;
     75        } bar[PCI_BAR_COUNT];
     76
     77        /** Commong configuration structure */
    7078        virtio_pci_common_cfg_t *common_cfg;
     79
     80        /** Notification base address */
     81        ioport8_t *notify_base;
     82        /** Notification offset multiplier */
     83        uint32_t notify_off_multiplier;
     84
     85        /** INT#x interrupt ISR register */
     86        ioport8_t *isr;
     87
     88        /** Device-specific configuration */
     89        void *device_cfg;
    7190} virtio_dev_t;
    7291
Note: See TracChangeset for help on using the changeset viewer.