thor.h 463 B

123456789101112131415161718192021222324252627
  1. /*
  2. * thor.h -- USB THOR Downloader protocol
  3. *
  4. * Copyright (C) 2013 Samsung Electronics
  5. * Lukasz Majewski <l.majewski@samsung.com>
  6. *
  7. * SPDX-License-Identifier: GPL-2.0+
  8. *
  9. */
  10. #ifndef __THOR_H_
  11. #define __THOR_H_
  12. #include <linux/usb/composite.h>
  13. int thor_handle(void);
  14. int thor_init(void);
  15. #ifdef CONFIG_THOR_FUNCTION
  16. int thor_add(struct usb_configuration *c);
  17. #else
  18. int thor_add(struct usb_configuration *c)
  19. {
  20. return 0;
  21. }
  22. #endif
  23. #endif /* __THOR_H_ */