mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-26 22:24:09 +08:00
d2912cb15b
Based on 2 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation # extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 4122 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Enrico Weigelt <info@metux.net> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
41 lines
941 B
C
41 lines
941 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* arch/arm/plat-samsung/include/plat/usb-control.h
|
|
*
|
|
* Copyright (c) 2004 Simtec Electronics
|
|
* Ben Dooks <ben@simtec.co.uk>
|
|
*
|
|
* S3C - USB host port information
|
|
*/
|
|
|
|
#ifndef __ASM_ARCH_USBCONTROL_H
|
|
#define __ASM_ARCH_USBCONTROL_H
|
|
|
|
#define S3C_HCDFLG_USED (1)
|
|
|
|
struct s3c2410_hcd_port {
|
|
unsigned char flags;
|
|
unsigned char power;
|
|
unsigned char oc_status;
|
|
unsigned char oc_changed;
|
|
};
|
|
|
|
struct s3c2410_hcd_info {
|
|
struct usb_hcd *hcd;
|
|
struct s3c2410_hcd_port port[2];
|
|
|
|
void (*power_control)(int port, int to);
|
|
void (*enable_oc)(struct s3c2410_hcd_info *, int on);
|
|
void (*report_oc)(struct s3c2410_hcd_info *, int ports);
|
|
};
|
|
|
|
static inline void s3c2410_usb_report_oc(struct s3c2410_hcd_info *info, int ports)
|
|
{
|
|
if (info->report_oc != NULL) {
|
|
(info->report_oc)(info, ports);
|
|
}
|
|
}
|
|
|
|
extern void s3c_ohci_set_platdata(struct s3c2410_hcd_info *info);
|
|
|
|
#endif /*__ASM_ARCH_USBCONTROL_H */
|