Changeset 92574f4 in mainline for uspace/drv/uhci-hcd/pci.c


Ignore:
Timestamp:
2011-02-24T12:03:27Z (13 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e7b7ebd5
Parents:
4837092 (diff), a80849c (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:

Merged development (changes in DDF, etc.).

Conflicts in uspace/drv/usbkbd/main.c

File:
1 moved

Legend:

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

    r4837092 r92574f4  
    3434 * PCI related functions needed by the UHCI driver.
    3535 */
    36 #include "uhci.h"
    3736#include <errno.h>
    3837#include <assert.h>
    3938#include <devman.h>
    4039#include <device/hw_res.h>
     40
     41#include "pci.h"
    4142
    4243/** Get address of registers and IRQ for given device.
     
    4849 * @return Error code.
    4950 */
    50 int pci_get_my_registers(device_t *dev,
     51int pci_get_my_registers(ddf_dev_t *dev,
    5152    uintptr_t *io_reg_address, size_t *io_reg_size,
    5253    int *irq_no)
     
    116117        rc = EOK;
    117118leave:
    118         ipc_hangup(parent_phone);
     119        async_hangup(parent_phone);
    119120
    120121        return rc;
    121122}
     123/*----------------------------------------------------------------------------*/
     124int pci_enable_interrupts(ddf_dev_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}
     131/**
     132 * @}
     133 */
    122134
    123135/**
    124136 * @}
    125137 */
    126 
Note: See TracChangeset for help on using the changeset viewer.