Changeset fe96085 in mainline for uspace/lib/virtio


Ignore:
Timestamp:
2018-06-10T19:56:27Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3d135e9
Parents:
848e880f
Message:

Register and enable virtio-net IRQ

Location:
uspace/lib/virtio
Files:
2 edited

Legend:

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

    r848e880f rfe96085  
    100100
    101101        vdev->isr = vdev->bar[bar].mapped_base + offset;
    102 
    103         ddf_msg(LVL_NOTE, "isr=%p", vdev->isr);
     102        vdev->isr_phys = vdev->bar[bar].phys_base + offset;
     103
     104        ddf_msg(LVL_NOTE, "isr=%p (phys=%#" PRIxn ")", vdev->isr,
     105            vdev->isr_phys);
    104106}
    105107
  • uspace/lib/virtio/virtio-pci.h

    r848e880f rfe96085  
    167167        /** INT#x interrupt ISR register */
    168168        ioport8_t *isr;
     169        uintptr_t isr_phys;
    169170
    170171        /** Device-specific configuration */
Note: See TracChangeset for help on using the changeset viewer.