1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * thor.h -- USB THOR Downloader protocol
5 * Copyright (C) 2013 Samsung Electronics
6 * Lukasz Majewski <l.majewski@samsung.com>
13 #include <linux/usb/composite.h>
15 #define THOR_DFU_REINIT_NEEDED 0xFFFFFFFE
17 int thor_handle(void);
19 int thor_add(struct usb_configuration *c);
21 enum thor_notify_type {
23 THOR_NOTIFY_CONNECTED,
25 THOR_NOTIFY_DOWNLOAD_FAILED,
28 struct thor_notify_data {
33 void thor_status_notify(enum thor_notify_type type,
34 struct thor_notify_data *data);
35 #endif /* __THOR_H_ */