Changeset 132ab5d1 in mainline for uspace/lib/c/include/io/serial.h


Ignore:
Timestamp:
2018-01-30T03:20:45Z (8 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a6cc679
Parents:
8bfb163 (diff), 6a5d05b (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 commit '6a5d05bd2551e64111bea4f9332dd7448c26ce84' into forwardport

Separate return value from error code in gen_irq_code*().

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/io/serial.h

    r8bfb163 r132ab5d1  
    11/*
    2  * Copyright (c) 2010 Lenka Trochtova
     2 * Copyright (c) 2017 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup libdrv
     29/** @addtogroup libc
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef LIBDRV_OPS_CHAR_DEV_H_
    36 #define LIBDRV_OPS_CHAR_DEV_H_
     35#ifndef LIBC_IO_SERIAL_H_
     36#define LIBC_IO_SERIAL_H_
    3737
    38 #include "../ddf/driver.h"
     38#include <async.h>
     39#include <ipc/serial_ctl.h>
    3940
    4041typedef struct {
    41         int (*read)(ddf_fun_t *, char *, size_t);
    42         int (*write)(ddf_fun_t *, char *, size_t);
    43 } char_dev_ops_t;
     42        async_sess_t *sess;
     43} serial_t;
     44
     45extern int serial_open(async_sess_t *, serial_t **);
     46extern void serial_close(serial_t *);
     47extern int serial_set_comm_props(serial_t *, unsigned, serial_parity_t,
     48    unsigned, unsigned);
     49extern int serial_get_comm_props(serial_t *, unsigned *, serial_parity_t *,
     50    unsigned *, unsigned *);
    4451
    4552#endif
    4653
    47 /**
    48  * @}
     54/** @}
    4955 */
Note: See TracChangeset for help on using the changeset viewer.