Changeset 8c06905 in mainline


Ignore:
Timestamp:
2010-04-05T20:27:51Z (14 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5e598e0
Parents:
9a66bc2
Message:

parts of pci driver

Location:
uspace
Files:
5 added
2 edited

Legend:

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

    r9a66bc2 r8c06905  
    4141bool get_hw_resources(int dev_phone, hw_resource_list_t *hw_resources)
    4242{
    43         bool ret = true;
    4443        ipcarg_t count = 0;
    4544        int rc = async_req_1_1(dev_phone, HW_RES_DEV_IFACE, GET_RESOURCE_LIST, &count);
  • uspace/lib/libc/include/ipc/dev_iface.h

    r9a66bc2 r8c06905  
    3131
    3232#include <ipc/ipc.h>
     33#include <malloc.h>
    3334
    3435#define DEV_IFACE_FIRST IPC_FIRST_USER_METHOD
     
    8586} hw_resource_list_t;
    8687
     88static inline void clean_hw_resource_list(hw_resource_list_t *hw_res)
     89{
     90        free(hw_res->resources);
     91        hw_res->resources = 0;
     92        hw_res->count = 0;     
     93}
     94
    8795#endif
Note: See TracChangeset for help on using the changeset viewer.