Changeset 2b3dd78 in mainline for uspace/lib/drv


Ignore:
Timestamp:
2018-01-31T12:02:00Z (7 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5595841
Parents:
a0a9cc2 (diff), 14d789c (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 remote-tracking branch 'upstream/master' into forwardport

change tmon includes because of new stdlib

Location:
uspace/lib/drv
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/logbuf.c

    ra0a9cc2 r2b3dd78  
    3535#include <ddf/log.h>
    3636#include <assert.h>
     37#include <str.h>
    3738
    3839/** Formatting string for printing number of not-printed items. */
  • uspace/lib/drv/generic/private/driver.h

    ra0a9cc2 r2b3dd78  
    5757       
    5858        /** Device name */
    59         const char *name;
     59        char *name;
    6060       
    6161        /** Driver-specific data associated with this device */
     
    8484       
    8585        /** Function name */
    86         const char *name;
     86        char *name;
    8787       
    8888        /** List of device ids for driver matching */
  • uspace/lib/drv/generic/remote_ahci.c

    ra0a9cc2 r2b3dd78  
    3939#include <stdio.h>
    4040#include <macros.h>
     41#include <str.h>
    4142#include "ahci_iface.h"
    4243#include "ddf/driver.h"
  • uspace/lib/drv/generic/remote_audio_mixer.c

    ra0a9cc2 r2b3dd78  
    9494 * @return Error code.
    9595 */
    96 errno_t audio_mixer_get_info(async_exch_t *exch, const char **name, unsigned *items)
     96errno_t audio_mixer_get_info(async_exch_t *exch, char **name, unsigned *items)
    9797{
    9898        if (!exch)
     
    131131 */
    132132errno_t audio_mixer_get_item_info(async_exch_t *exch, unsigned item,
    133     const char **name, unsigned *levels)
     133    char **name, unsigned *levels)
    134134{
    135135        if (!exch)
  • uspace/lib/drv/generic/remote_audio_pcm.c

    ra0a9cc2 r2b3dd78  
    184184 * @note Caller is responsible for freeing newly allocated memory.
    185185 */
    186 errno_t audio_pcm_get_info_str(audio_pcm_sess_t *sess, const char **name)
     186errno_t audio_pcm_get_info_str(audio_pcm_sess_t *sess, char **name)
    187187{
    188188        if (!name)
  • uspace/lib/drv/include/ahci_iface.h

    ra0a9cc2 r2b3dd78  
    4141#include <async.h>
    4242
    43 extern async_sess_t* ahci_get_sess(devman_handle_t, char **);
     43extern async_sess_t *ahci_get_sess(devman_handle_t, char **);
    4444
    4545extern errno_t ahci_get_sata_device_name(async_sess_t *, size_t, char *);
  • uspace/lib/drv/include/audio_mixer_iface.h

    ra0a9cc2 r2b3dd78  
    4343#include "ddf/driver.h"
    4444
    45 errno_t audio_mixer_get_info(async_exch_t *, const char **, unsigned *);
     45errno_t audio_mixer_get_info(async_exch_t *, char **, unsigned *);
    4646errno_t audio_mixer_get_item_info(async_exch_t *, unsigned,
    47     const char **, unsigned *);
     47    char **, unsigned *);
    4848errno_t audio_mixer_get_item_level(async_exch_t *, unsigned, unsigned *);
    4949errno_t audio_mixer_set_item_level(async_exch_t *, unsigned, unsigned);
  • uspace/lib/drv/include/audio_pcm_iface.h

    ra0a9cc2 r2b3dd78  
    8080void audio_pcm_close(audio_pcm_sess_t *);
    8181
    82 errno_t audio_pcm_get_info_str(audio_pcm_sess_t *, const char **);
     82errno_t audio_pcm_get_info_str(audio_pcm_sess_t *, char **);
    8383errno_t audio_pcm_test_format(audio_pcm_sess_t *, unsigned *, unsigned *,
    8484    pcm_sample_format_t *);
     
    120120        errno_t (*release_buffer)(ddf_fun_t *);
    121121        errno_t (*set_event_session)(ddf_fun_t *, async_sess_t *);
    122         async_sess_t * (*get_event_session)(ddf_fun_t *);
     122        async_sess_t *(*get_event_session)(ddf_fun_t *);
    123123        errno_t (*start_playback)(ddf_fun_t *, unsigned,
    124124            unsigned, unsigned, pcm_sample_format_t);
  • uspace/lib/drv/include/ddf/log.h

    ra0a9cc2 r2b3dd78  
    3939extern errno_t ddf_log_init(const char *);
    4040extern void ddf_msg(log_level_t, const char *, ...)
    41     PRINTF_ATTRIBUTE(2, 3);
     41    _HELENOS_PRINTF_ATTRIBUTE(2, 3);
    4242
    4343extern void ddf_dump_buffer(char *, size_t, const void *, size_t, size_t,
  • uspace/lib/drv/include/ops/nic.h

    ra0a9cc2 r2b3dd78  
    6666        errno_t (*autoneg_restart)(ddf_fun_t *);
    6767        errno_t (*get_pause)(ddf_fun_t *, nic_result_t *, nic_result_t *,
    68                 uint16_t *);
     68            uint16_t *);
    6969        errno_t (*set_pause)(ddf_fun_t *, int, int, uint16_t);
    7070       
  • uspace/lib/drv/include/ops/pio_window.h

    ra0a9cc2 r2b3dd78  
    4040
    4141typedef struct {
    42         pio_window_t *(* get_pio_window)(ddf_fun_t *);
     42        pio_window_t *(*get_pio_window)(ddf_fun_t *);
    4343} pio_window_ops_t;
    4444
  • uspace/lib/drv/include/usbhid_iface.h

    ra0a9cc2 r2b3dd78  
    8181         * @return Error code.
    8282         */
    83         errno_t (*get_report_descriptor)(ddf_fun_t *fun, uint8_t *desc, 
     83        errno_t (*get_report_descriptor)(ddf_fun_t *fun, uint8_t *desc,
    8484            size_t size, size_t *act_size);
    8585} usbhid_iface_t;
Note: See TracChangeset for help on using the changeset viewer.