Changeset f724e82 in mainline for uspace/lib/c
- Timestamp:
- 2011-01-09T12:52:30Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ce79069b
- Parents:
- b2263e6a
- Location:
- uspace/lib/c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/device/hw_res.c
rb2263e6a rf724e82 38 38 #include <malloc.h> 39 39 40 int get_hw_resources(int dev_phone, hw_resource_list_t *hw_resources)40 int hw_res_get_resource_list(int dev_phone, hw_resource_list_t *hw_resources) 41 41 { 42 42 sysarg_t count = 0; 43 43 44 44 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); 46 46 47 47 hw_resources->count = count; … … 64 64 } 65 65 66 bool enable_interrupt(int dev_phone)66 bool hw_res_enable_interrupt(int dev_phone) 67 67 { 68 68 int rc = async_req_1_0(dev_phone, DEV_IFACE_ID(HW_RES_DEV_IFACE), 69 ENABLE_INTERRUPT);69 HW_RES_ENABLE_INTERRUPT); 70 70 71 71 return rc == EOK; -
uspace/lib/c/include/device/hw_res.h
rb2263e6a rf724e82 41 41 /** HW resource provider interface */ 42 42 typedef enum { 43 GET_RESOURCE_LIST = 0,44 ENABLE_INTERRUPT43 HW_RES_GET_RESOURCE_LIST = 0, 44 HW_RES_ENABLE_INTERRUPT 45 45 } hw_res_funcs_t; 46 46 … … 84 84 } hw_resource_list_t; 85 85 86 static inline void clean_hw_resource_list(hw_resource_list_t *hw_res)86 static inline void hw_res_clean_resource_list(hw_resource_list_t *hw_res) 87 87 { 88 88 if (hw_res->resources != NULL) { … … 95 95 } 96 96 97 extern int get_hw_resources(int, hw_resource_list_t *);98 extern bool enable_interrupt(int);97 extern int hw_res_get_resource_list(int, hw_resource_list_t *); 98 extern bool hw_res_enable_interrupt(int); 99 99 100 100 #endif
Note:
See TracChangeset
for help on using the changeset viewer.