Changeset 3843ecb in mainline for uspace/lib/libc/generic/device/hw_res.c
- Timestamp:
- 2010-04-09T13:54:06Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 892e4e1
- Parents:
- 3a5909f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/device/hw_res.c
r3a5909f r3843ecb 37 37 #include <async.h> 38 38 #include <malloc.h> 39 40 39 41 40 bool get_hw_resources(int dev_phone, hw_resource_list_t *hw_resources) 42 41 { 43 42 ipcarg_t count = 0; 44 int rc = async_req_1_1(dev_phone, HW_RES_DEV_IFACE, GET_RESOURCE_LIST, &count);43 int rc = async_req_1_1(dev_phone, DEV_IFACE_ID(HW_RES_DEV_IFACE), GET_RESOURCE_LIST, &count); 45 44 hw_resources->count = count; 46 45 if (EOK != rc) { … … 66 65 bool enable_interrupt(int dev_phone) 67 66 { 68 int rc = async_req_1_0(dev_phone, HW_RES_DEV_IFACE, ENABLE_INTERRUPT);67 int rc = async_req_1_0(dev_phone, DEV_IFACE_ID(HW_RES_DEV_IFACE), ENABLE_INTERRUPT); 69 68 return rc == EOK; 70 69 }
Note:
See TracChangeset
for help on using the changeset viewer.