Changeset 89c57b6 in mainline for uspace/lib/c/include/ipc/serial_ctl.h
- Timestamp:
- 2011-04-13T14:45:41Z (14 years ago)
- 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. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/ipc/serial_ctl.h
rcefb126 r89c57b6 1 1 /* 2 * Copyright (c) 2010 Martin Decky2 * Copyright (c) 2010 Lenka Trochtova 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 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 31 39 */ 32 /** @file 33 */ 40 typedef enum { 41 SERIAL_GET_COM_PROPS = DEV_FIRST_CUSTOM_METHOD, 42 SERIAL_SET_COM_PROPS 43 } serial_ctl_t; 34 44 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)) 45 typedef 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; 41 52 42 53 #endif 43 44 /** @}45 */
Note:
See TracChangeset
for help on using the changeset viewer.