Changeset cf02eaf in mainline
- Timestamp:
- 2013-08-22T16:01:19Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5b1adf5
- Parents:
- a6bdccc
- Location:
- uspace
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/device/hw_res.c
ra6bdccc rcf02eaf 42 42 { 43 43 sysarg_t count = 0; 44 44 45 45 async_exch_t *exch = async_exchange_begin(sess); 46 46 if (exch == NULL) … … 48 48 int rc = async_req_1_1(exch, DEV_IFACE_ID(HW_RES_DEV_IFACE), 49 49 HW_RES_GET_RESOURCE_LIST, &count); 50 50 51 51 if (rc != EOK) { 52 52 async_exchange_end(exch); 53 53 return rc; 54 54 } 55 55 56 56 size_t size = count * sizeof(hw_resource_t); 57 57 hw_resource_t *resources = (hw_resource_t *) malloc(size); … … 61 61 return ENOMEM; 62 62 } 63 63 64 64 rc = async_data_read_start(exch, resources, size); 65 65 async_exchange_end(exch); 66 66 67 67 if (rc != EOK) { 68 68 free(resources); 69 69 return rc; 70 70 } 71 71 72 72 hw_resources->resources = resources; 73 73 hw_resources->count = count; 74 74 75 75 return EOK; 76 76 } … … 84 84 HW_RES_ENABLE_INTERRUPT); 85 85 async_exchange_end(exch); 86 86 87 87 return (rc == EOK); 88 88 } -
uspace/lib/c/generic/device/hw_res_parsed.c
ra6bdccc rcf02eaf 175 175 for (size_t i = 0; i < res_count; ++i) { 176 176 const hw_resource_t *resource = &(hw_resources->resources[i]); 177 177 178 178 switch (resource->type) { 179 179 case INTERRUPT: … … 195 195 } 196 196 } 197 197 198 198 return EOK; 199 199 }; -
uspace/lib/c/include/device/hw_res_parsed.h
ra6bdccc rcf02eaf 139 139 } 140 140 141 extern int hw_res_list_parse( 142 const hw_resource_list_t *,hw_res_list_parsed_t *, int);141 extern int hw_res_list_parse(const hw_resource_list_t *, 142 hw_res_list_parsed_t *, int); 143 143 extern int hw_res_get_list_parsed(async_sess_t *, hw_res_list_parsed_t *, int); 144 144 -
uspace/lib/c/include/ipc/dev_iface.h
ra6bdccc rcf02eaf 37 37 HW_RES_DEV_IFACE = 0, 38 38 39 /** Audio device mixer interface */40 AUDIO_MIXER_IFACE,41 /** Audio device pcm buffer interface */42 AUDIO_PCM_BUFFER_IFACE,43 44 39 /** Character device interface */ 45 40 CHAR_DEV_IFACE, … … 47 42 /** Graphic device interface */ 48 43 GRAPH_DEV_IFACE, 44 45 /** Audio device mixer interface */ 46 AUDIO_MIXER_IFACE, 47 /** Audio device pcm buffer interface */ 48 AUDIO_PCM_BUFFER_IFACE, 49 49 50 50 /** Network interface controller interface */ … … 60 60 /** Interface provided by USB HID devices. */ 61 61 USBHID_DEV_IFACE, 62 62 63 /** Interface provided by Real Time Clock devices */ 63 64 CLOCK_DEV_IFACE, 65 64 66 /** Interface provided by battery powered devices */ 65 67 BATTERY_DEV_IFACE, 68 66 69 /** Interface provided by AHCI devices. */ 67 70 AHCI_DEV_IFACE, -
uspace/lib/drv/generic/dev_iface.c
ra6bdccc rcf02eaf 67 67 [CLOCK_DEV_IFACE] = &remote_clock_dev_iface, 68 68 [BATTERY_DEV_IFACE] = &remote_battery_dev_iface, 69 [AHCI_DEV_IFACE] = &remote_ahci_iface ,69 [AHCI_DEV_IFACE] = &remote_ahci_iface 70 70 } 71 71 }; -
uspace/lib/softfloat/softfloat.c
ra6bdccc rcf02eaf 1265 1265 } 1266 1266 1267 1268 1267 float __aeabi_i2f(int i) 1269 1268 { -
uspace/srv/hid/compositor/compositor.c
ra6bdccc rcf02eaf 2207 2207 2208 2208 if (list_empty(&viewport_list)) { 2209 printf("%s: Failed to get view 2209 printf("%s: Failed to get viewports.\n", NAME); 2210 2210 input_disconnect(); 2211 2211 return -1;
Note:
See TracChangeset
for help on using the changeset viewer.