rpi: limit size of the RAM to the multiple of the MMU_SECTION_SIZE
[platform/kernel/u-boot.git] / include / thor.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * thor.h -- USB THOR Downloader protocol
4  *
5  * Copyright (C) 2013 Samsung Electronics
6  * Lukasz Majewski  <l.majewski@samsung.com>
7  *
8  */
9
10 #ifndef __THOR_H_
11 #define __THOR_H_
12
13 #include <linux/usb/composite.h>
14
15 #define THOR_DFU_REINIT_NEEDED  0xFFFFFFFE
16
17 int thor_handle(void);
18 int thor_init(void);
19 int thor_add(struct usb_configuration *c);
20
21 enum thor_notify_type {
22         THOR_NOTIFY_INIT,
23         THOR_NOTIFY_CONNECTED,
24         THOR_NOTIFY_PROGRESS,
25         THOR_NOTIFY_DOWNLOAD_FAILED,
26 };
27
28 struct thor_notify_data {
29         u64 total_size;
30         u64 current_size;
31 };
32
33 void thor_status_notify(enum thor_notify_type type,
34                         struct thor_notify_data *data);
35 #endif /* __THOR_H_ */