Changeset f724e82 in mainline for uspace/lib/c/generic/device/hw_res.c


Ignore:
Timestamp:
2011-01-09T12:52:30Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ce79069b
Parents:
b2263e6a
Message:

Clean up hw_res interface client API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/device/hw_res.c

    rb2263e6a rf724e82  
    3838#include <malloc.h>
    3939
    40 int get_hw_resources(int dev_phone, hw_resource_list_t *hw_resources)
     40int hw_res_get_resource_list(int dev_phone, hw_resource_list_t *hw_resources)
    4141{
    4242        sysarg_t count = 0;
    4343
    4444        int rc = async_req_1_1(dev_phone, DEV_IFACE_ID(HW_RES_DEV_IFACE),
    45             GET_RESOURCE_LIST, &count);
     45            HW_RES_GET_RESOURCE_LIST, &count);
    4646
    4747        hw_resources->count = count;
     
    6464}
    6565
    66 bool enable_interrupt(int dev_phone)
     66bool hw_res_enable_interrupt(int dev_phone)
    6767{
    6868        int rc = async_req_1_0(dev_phone, DEV_IFACE_ID(HW_RES_DEV_IFACE),
    69             ENABLE_INTERRUPT);
     69            HW_RES_ENABLE_INTERRUPT);
    7070
    7171        return rc == EOK;
Note: See TracChangeset for help on using the changeset viewer.