mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-06 05:04:26 +00:00
83d290c56f
When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com>
47 lines
1.3 KiB
C
47 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (C) 2012 Samsung Electronics
|
|
* Lukasz Majewski <l.majewski@samsung.com>
|
|
*/
|
|
|
|
#ifndef __G_DOWNLOAD_H_
|
|
#define __G_DOWNLOAD_H_
|
|
|
|
#include <linux/usb/ch9.h>
|
|
#include <linux/usb/gadget.h>
|
|
#include <linux/usb/composite.h>
|
|
#include <linker_lists.h>
|
|
|
|
/*
|
|
* @usb_fname: unescaped USB function name
|
|
* @callback_ptr: bind callback, one per function name
|
|
*/
|
|
#define DECLARE_GADGET_BIND_CALLBACK(usb_fname, callback_ptr) \
|
|
ll_entry_declare(struct g_dnl_bind_callback, \
|
|
__usb_function_name_##usb_fname, \
|
|
g_dnl_bind_callbacks) = { \
|
|
.usb_function_name = #usb_fname, \
|
|
.fptr = callback_ptr \
|
|
}
|
|
|
|
typedef int (*g_dnl_bind_callback_f)(struct usb_configuration *);
|
|
|
|
/* used in Gadget downloader callback linker list */
|
|
struct g_dnl_bind_callback {
|
|
const char *usb_function_name;
|
|
g_dnl_bind_callback_f fptr;
|
|
};
|
|
|
|
int g_dnl_bind_fixup(struct usb_device_descriptor *, const char *);
|
|
int g_dnl_get_board_bcd_device_number(int gcnum);
|
|
int g_dnl_board_usb_cable_connected(void);
|
|
int g_dnl_register(const char *s);
|
|
void g_dnl_unregister(void);
|
|
void g_dnl_set_serialnumber(char *);
|
|
|
|
bool g_dnl_detach(void);
|
|
void g_dnl_trigger_detach(void);
|
|
void g_dnl_clear_detach(void);
|
|
int run_usb_dnl_gadget(int usbctrl_index, char *usb_dnl_gadget);
|
|
|
|
#endif /* __G_DOWNLOAD_H_ */
|