mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-12-11 23:22:27 +00:00
98076ef693
Restore the interrupt masks on chainload or HV guest start. The interrupt mask is not restored on the USB-C port used by the hypervisor. This prevents an interrupt storm in the guest when the other USB-C port is exposed to the guest. Both tps6598x share unfortunately an interrupt line. Signed-off-by: Janne Grunau <j@jannau.net>
16 lines
268 B
C
16 lines
268 B
C
/* SPDX-License-Identifier: MIT */
|
|
|
|
#ifndef USB_H
|
|
#define USB_H
|
|
|
|
#include "types.h"
|
|
#include "usb_dwc3.h"
|
|
|
|
dwc3_dev_t *usb_bringup(u32 idx);
|
|
|
|
void usb_init(void);
|
|
void usb_hpm_restore_irqs(bool force);
|
|
void usb_iodev_init(void);
|
|
void usb_iodev_shutdown(void);
|
|
|
|
#endif
|