Ignore:
Timestamp:
2011-04-13T14:45:41Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
88634420
Parents:
cefb126 (diff), 17279ead (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.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/ipc/serial_ctl.h

    rcefb126 r89c57b6  
    11/*
    2  * Copyright (c) 2010 Martin Decky
     2 * Copyright (c) 2010 Lenka Trochtova
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup abs32le
    30  * @{
     29#ifndef LIBC_IPC_SERIAL_CTL_H_
     30#define LIBC_IPC_SERIAL_CTL_H_
     31
     32#include <ipc/dev_iface.h>
     33
     34/** ipc methods for getting/setting serial communication properties
     35 *      1st ipc arg: baud rate
     36 *      2nd ipc arg: parity
     37 *      3rd ipc arg: number of bits in one word
     38 *      4th ipc arg: number of stop bits
    3139 */
    32 /** @file
    33  */
     40typedef enum { 
     41        SERIAL_GET_COM_PROPS = DEV_FIRST_CUSTOM_METHOD,
     42        SERIAL_SET_COM_PROPS
     43} serial_ctl_t;
    3444
    35 #ifndef KERN_abs32le_MEMSTR_H_
    36 #define KERN_abs32le_MEMSTR_H_
    37 
    38 #define memcpy(dst, src, cnt)   _memcpy((dst), (src), (cnt))
    39 #define memsetb(dst, cnt, val)  _memsetb((dst), (cnt), (val))
    40 #define memsetw(dst, cnt, val)  _memsetw((dst), (cnt), (val))
     45typedef enum {
     46        SERIAL_NO_PARITY = 0,
     47        SERIAL_ODD_PARITY = 1,
     48        SERIAL_EVEN_PARITY = 3,
     49        SERIAL_MARK_PARITY = 5,
     50        SERIAL_SPACE_PARITY = 7
     51} serial_parity_t;
    4152
    4253#endif
    43 
    44 /** @}
    45  */
Note: See TracChangeset for help on using the changeset viewer.