Changeset ca62f86 in mainline for uspace/lib/c/include
- Timestamp:
- 2013-09-09T17:52:40Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f7bb6d1
- Parents:
- 6ad185d (diff), a1ecb88 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/lib/c/include
- Files:
-
- 6 edited
-
adt/list.h (modified) (3 diffs)
-
async.h (modified) (2 diffs)
-
device/hw_res.h (modified) (2 diffs)
-
device/hw_res_parsed.h (modified) (1 diff)
-
ipc/dev_iface.h (modified) (3 diffs)
-
macros.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/adt/list.h
r6ad185d rca62f86 1 1 /* 2 2 * Copyright (c) 2001-2004 Jakub Jermar 3 * Copyright (c) 201 1Jiri Svoboda3 * Copyright (c) 2013 Jiri Svoboda 4 4 * All rights reserved. 5 5 * … … 65 65 66 66 #define list_get_instance(link, type, member) \ 67 ((type *) (((void *)(link)) - ((void *)&(((type *) NULL)->member))))67 ((type *) (((void *)(link)) - list_link_to_void(&(((type *) NULL)->member)))) 68 68 69 69 #define list_foreach(list, iterator) \ … … 318 318 } 319 319 320 /** Verify that argument type is a pointer to link_t (at compile time). 321 * 322 * This can be used to check argument type in a macro. 323 */ 324 static inline const void *list_link_to_void(const link_t *link) 325 { 326 return link; 327 } 328 320 329 extern int list_member(const link_t *, const list_t *); 321 330 extern void list_concat(list_t *, list_t *); -
uspace/lib/c/include/async.h
r6ad185d rca62f86 399 399 extern int async_data_read_start(async_exch_t *, void *, size_t); 400 400 extern bool async_data_read_receive(ipc_callid_t *, size_t *); 401 extern bool async_data_read_receive_call(ipc_callid_t *, ipc_call_t *, size_t *); 401 402 extern int async_data_read_finalize(ipc_callid_t, const void *, size_t); 402 403 … … 437 438 extern int async_data_write_start(async_exch_t *, const void *, size_t); 438 439 extern bool async_data_write_receive(ipc_callid_t *, size_t *); 440 extern bool async_data_write_receive_call(ipc_callid_t *, ipc_call_t *, size_t *); 439 441 extern int async_data_write_finalize(ipc_callid_t, void *, size_t); 440 442 -
uspace/lib/c/include/device/hw_res.h
r6ad185d rca62f86 53 53 HW_RES_ENABLE_INTERRUPT, 54 54 HW_RES_DMA_CHANNEL_SETUP, 55 HW_RES_DMA_CHANNEL_REMAIN, 55 56 } hw_res_method_t; 56 57 … … 115 116 116 117 extern int hw_res_dma_channel_setup(async_sess_t *, unsigned int, uint32_t, 117 uint16_t, uint8_t); 118 uint32_t, uint8_t); 119 extern int hw_res_dma_channel_remain(async_sess_t *, unsigned); 118 120 119 121 #endif -
uspace/lib/c/include/device/hw_res_parsed.h
r6ad185d rca62f86 139 139 } 140 140 141 extern int hw_res_list_parse(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); 142 143 extern int hw_res_get_list_parsed(async_sess_t *, hw_res_list_parsed_t *, int); 143 144 -
uspace/lib/c/include/ipc/dev_iface.h
r6ad185d rca62f86 36 36 typedef enum { 37 37 HW_RES_DEV_IFACE = 0, 38 38 39 /** Character device interface */ 39 40 CHAR_DEV_IFACE, … … 41 42 /** Graphic device interface */ 42 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, 43 49 44 50 /** Network interface controller interface */ … … 54 60 /** Interface provided by USB HID devices. */ 55 61 USBHID_DEV_IFACE, 62 56 63 /** Interface provided by Real Time Clock devices */ 57 64 CLOCK_DEV_IFACE, 65 58 66 /** Interface provided by battery powered devices */ 59 67 BATTERY_DEV_IFACE, 68 60 69 /** Interface provided by AHCI devices. */ 61 70 AHCI_DEV_IFACE, -
uspace/lib/c/include/macros.h
r6ad185d rca62f86 40 40 #define abs(a) ((a) >= 0 ? (a) : -(a)) 41 41 42 #define ARRAY_SIZE(array) (sizeof(array) / sizeof(array[0])) 42 43 43 44 #define KiB2SIZE(kb) ((kb) << 10)
Note:
See TracChangeset
for help on using the changeset viewer.
