m1n1/src/usb.h
Janne Grunau 98076ef693 usb: disable tps6598x interrupts
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>
2021-06-18 14:26:54 +09:00

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