Changeset 6ccc424 in mainline for uspace/lib/virtio/virtio-pci.h
- Timestamp:
- 2018-05-22T19:06:50Z (7 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/virtio/virtio-pci.h
r00192cde r6ccc424 34 34 35 35 #include <ddf/driver.h> 36 #include <pci_dev_iface.h> 36 37 #include <ddi.h> 37 38 … … 40 41 #define VIRTIO_PCI_CAP_OFFSET(c) ((c) + 8) 41 42 #define VIRTIO_PCI_CAP_LENGTH(c) ((c) + 12) 43 #define VIRTIO_PCI_CAP_END(c) ((c) + 16) 42 44 43 45 #define VIRTIO_PCI_CAP_COMMON_CFG 1 … … 68 70 69 71 typedef struct { 72 struct { 73 bool mapped; 74 void *mapped_base; 75 } bar[PCI_BAR_COUNT]; 76 77 /** Commong configuration structure */ 70 78 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; 71 90 } virtio_dev_t; 72 91
Note:
See TracChangeset
for help on using the changeset viewer.