Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | /* |
| 14 | * SDIO TTY interface. |
| 15 | */ |
| 16 | |
| 17 | #ifndef __SDIO_TTY__ |
| 18 | #define __SDIO_TTY__ |
| 19 | |
| 20 | /** |
| 21 | * sdio_tty_init_tty - Initialize the SDIO TTY driver. |
| 22 | * |
| 23 | * @tty_name: tty name - identify the tty device. |
| 24 | * @sdio_ch_name: channel name - identify the channel. |
| 25 | * @return sdio_tty handle on success, NULL on error. |
| 26 | * |
| 27 | */ |
| 28 | void *sdio_tty_init_tty(char *tty_name, char* sdio_ch_name); |
| 29 | |
| 30 | /** |
| 31 | * sdio_tty_uninit_tty - Uninitialize the SDIO TTY driver. |
| 32 | * |
| 33 | * @sdio_tty_handle: sdio_tty handle. |
| 34 | * @return 0 on success, negative value on error. |
| 35 | */ |
| 36 | int sdio_tty_uninit_tty(void *sdio_tty_handle); |
| 37 | |
| 38 | /** |
| 39 | * sdio_tty_enable_debug_msg - Enable/Disable sdio_tty debug |
| 40 | * messages. |
| 41 | * |
| 42 | * @enable: A flag to indicate if to enable or disable the debug |
| 43 | * messages. |
| 44 | * @return 0 on success, negative value on error. |
| 45 | */ |
| 46 | void sdio_tty_enable_debug_msg(void *sdio_tty_handle, int enable); |
| 47 | |
| 48 | #endif /* __SDIO_TTY__ */ |