Changeset ca62f86 in mainline for uspace/lib/c/include


Ignore:
Timestamp:
2013-09-09T17:52:40Z (12 years ago)
Author:
Jakub Klama <jakub.klama@…>
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.
Message:

Merge mainline changes.

Location:
uspace/lib/c/include
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/adt/list.h

    r6ad185d rca62f86  
    11/*
    22 * Copyright (c) 2001-2004 Jakub Jermar
    3  * Copyright (c) 2011 Jiri Svoboda
     3 * Copyright (c) 2013 Jiri Svoboda
    44 * All rights reserved.
    55 *
     
    6565
    6666#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))))
    6868
    6969#define list_foreach(list, iterator) \
     
    318318}
    319319
     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 */
     324static inline const void *list_link_to_void(const link_t *link)
     325{
     326        return link;
     327}
     328
    320329extern int list_member(const link_t *, const list_t *);
    321330extern void list_concat(list_t *, list_t *);
  • uspace/lib/c/include/async.h

    r6ad185d rca62f86  
    399399extern int async_data_read_start(async_exch_t *, void *, size_t);
    400400extern bool async_data_read_receive(ipc_callid_t *, size_t *);
     401extern bool async_data_read_receive_call(ipc_callid_t *, ipc_call_t *, size_t *);
    401402extern int async_data_read_finalize(ipc_callid_t, const void *, size_t);
    402403
     
    437438extern int async_data_write_start(async_exch_t *, const void *, size_t);
    438439extern bool async_data_write_receive(ipc_callid_t *, size_t *);
     440extern bool async_data_write_receive_call(ipc_callid_t *, ipc_call_t *, size_t *);
    439441extern int async_data_write_finalize(ipc_callid_t, void *, size_t);
    440442
  • uspace/lib/c/include/device/hw_res.h

    r6ad185d rca62f86  
    5353        HW_RES_ENABLE_INTERRUPT,
    5454        HW_RES_DMA_CHANNEL_SETUP,
     55        HW_RES_DMA_CHANNEL_REMAIN,
    5556} hw_res_method_t;
    5657
     
    115116
    116117extern int hw_res_dma_channel_setup(async_sess_t *, unsigned int, uint32_t,
    117     uint16_t, uint8_t);
     118    uint32_t, uint8_t);
     119extern int hw_res_dma_channel_remain(async_sess_t *, unsigned);
    118120
    119121#endif
  • uspace/lib/c/include/device/hw_res_parsed.h

    r6ad185d rca62f86  
    139139}
    140140
    141 extern int hw_res_list_parse(hw_resource_list_t *, hw_res_list_parsed_t *, int);
     141extern int hw_res_list_parse(const hw_resource_list_t *,
     142    hw_res_list_parsed_t *, int);
    142143extern int hw_res_get_list_parsed(async_sess_t *, hw_res_list_parsed_t *, int);
    143144
  • uspace/lib/c/include/ipc/dev_iface.h

    r6ad185d rca62f86  
    3636typedef enum {
    3737        HW_RES_DEV_IFACE = 0,
     38
    3839        /** Character device interface */
    3940        CHAR_DEV_IFACE,
     
    4142        /** Graphic device interface */
    4243        GRAPH_DEV_IFACE,
     44
     45        /** Audio device mixer interface */
     46        AUDIO_MIXER_IFACE,
     47        /** Audio device pcm buffer interface */
     48        AUDIO_PCM_BUFFER_IFACE,
    4349       
    4450        /** Network interface controller interface */
     
    5460        /** Interface provided by USB HID devices. */
    5561        USBHID_DEV_IFACE,
     62
    5663        /** Interface provided by Real Time Clock devices */
    5764        CLOCK_DEV_IFACE,
     65
    5866        /** Interface provided by battery powered devices */
    5967        BATTERY_DEV_IFACE,
     68
    6069        /** Interface provided by AHCI devices. */
    6170        AHCI_DEV_IFACE,
  • uspace/lib/c/include/macros.h

    r6ad185d rca62f86  
    4040#define abs(a)     ((a) >= 0 ? (a) : -(a))
    4141
     42#define ARRAY_SIZE(array)   (sizeof(array) / sizeof(array[0]))
    4243
    4344#define KiB2SIZE(kb)  ((kb) << 10)
Note: See TracChangeset for help on using the changeset viewer.