diagfwd_smux.h 950 B

12345678910111213141516171819202122232425262728
  1. /* Copyright (c) 2012, The Linux Foundation. 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. #ifndef DIAGFWD_SMUX_H
  13. #define DIAGFWD_SMUX_H
  14. #include <linux/smux.h>
  15. #define LCID_VALID SMUX_USB_DIAG_0
  16. #define LCID_INVALID 0
  17. int diagfwd_read_complete_smux(void);
  18. int diagfwd_write_complete_smux(void);
  19. int diagfwd_connect_smux(void);
  20. void diag_usb_read_complete_smux_fn(struct work_struct *w);
  21. void diag_read_usb_smux_work_fn(struct work_struct *work);
  22. extern struct platform_driver msm_diagfwd_smux_driver;
  23. #endif