12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- /* Copyright (c) 2012,2014 The Linux Foundation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 and
- * only version 2 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
- #ifndef DIAGFWD_SMUX_H
- #define DIAGFWD_SMUX_H
- #include <linux/smux.h>
- #define SMUX_1 0
- #define NUM_SMUX_DEV 1
- #define DIAG_SMUX_NAME_SZ 24
- struct diag_smux_info {
- int id;
- int lcid;
- int dev_id;
- char name[DIAG_SMUX_NAME_SZ];
- unsigned char *read_buf;
- int read_len;
- int in_busy;
- int enabled;
- int inited;
- int opened;
- struct work_struct read_work;
- struct workqueue_struct *smux_wq;
- };
- extern struct diag_smux_info diag_smux[NUM_SMUX_DEV];
- int diag_smux_init(void);
- void diag_smux_exit(void);
- #endif
|