Changeset 54de5ebd in mainline for uspace/lib/c/generic/device/hw_res.c
- Timestamp:
- 2011-01-09T12:26:33Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0adddea
- Parents:
- a676574
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/device/hw_res.c
ra676574 r54de5ebd 41 41 { 42 42 sysarg_t count = 0; 43 int rc = async_req_1_1(dev_phone, DEV_IFACE_ID(HW_RES_DEV_IFACE), GET_RESOURCE_LIST, &count); 43 44 int rc = async_req_1_1(dev_phone, DEV_IFACE_ID(HW_RES_DEV_IFACE), 45 GET_RESOURCE_LIST, &count); 44 46 hw_resources->count = count; 45 47 if (rc != EOK) … … 57 59 return rc; 58 60 } 59 61 60 62 return EOK; 61 63 } … … 63 65 bool enable_interrupt(int dev_phone) 64 66 { 65 int rc = async_req_1_0(dev_phone, DEV_IFACE_ID(HW_RES_DEV_IFACE), ENABLE_INTERRUPT); 67 int rc = async_req_1_0(dev_phone, DEV_IFACE_ID(HW_RES_DEV_IFACE), 68 ENABLE_INTERRUPT); 66 69 return rc == EOK; 67 70 }
Note:
See TracChangeset
for help on using the changeset viewer.