Changeset 423e8c81 in mainline for uspace/drv/uhci-hcd/pci.c


Ignore:
Timestamp:
2011-02-19T23:41:38Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
063ead6f, 41e645c, 62066b4
Parents:
374552ef (diff), fb78ae72 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Use hardware interrupts instead of polling

NOTE: hw interrupt enabling is implemented in pciintel driver,
it's probably not done ddf-way, but it works and can be used by other drivers too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/pci.c

    r374552ef r423e8c81  
    121121        return rc;
    122122}
    123 
     123/*----------------------------------------------------------------------------*/
     124int pci_enable_interrupts(device_t *device)
     125{
     126        int parent_phone = devman_parent_device_connect(device->handle,
     127            IPC_FLAG_BLOCKING);
     128        bool enabled = hw_res_enable_interrupt(parent_phone);
     129        return enabled ? EOK : EIO;
     130}
    124131/**
    125132 * @}
Note: See TracChangeset for help on using the changeset viewer.