mirror of
				https://github.com/qemu/qemu.git
				synced 2025-10-31 12:07:31 +00:00 
			
		
		
		
	 52581c718c
			
		
	
	
		52581c718c
		
	
	
	
	
		
			
			Header guard symbols should match their file name to make guard collisions less likely. Cleaned up with scripts/clean-header-guards.pl, followed by some renaming of new guard symbols picked by the script to better ones. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20220506134911.2856099-2-armbru@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> [Change to generated file ebpf/rss.bpf.skeleton.h backed out]
		
			
				
	
	
		
			48 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * "Inventra" High-speed Dual-Role Controller (MUSB-HDRC), Mentor Graphics,
 | |
|  * USB2.0 OTG compliant core used in various chips.
 | |
|  *
 | |
|  * Only host-mode and non-DMA accesses are currently supported.
 | |
|  *
 | |
|  * Copyright (C) 2008 Nokia Corporation
 | |
|  * Written by Andrzej Zaborowski <balrog@zabor.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: GPL-2.0-or-later
 | |
|  */
 | |
| 
 | |
| #ifndef HW_USB_HCD_MUSB_H
 | |
| #define HW_USB_HCD_MUSB_H
 | |
| 
 | |
| enum musb_irq_source_e {
 | |
|     musb_irq_suspend = 0,
 | |
|     musb_irq_resume,
 | |
|     musb_irq_rst_babble,
 | |
|     musb_irq_sof,
 | |
|     musb_irq_connect,
 | |
|     musb_irq_disconnect,
 | |
|     musb_irq_vbus_request,
 | |
|     musb_irq_vbus_error,
 | |
|     musb_irq_rx,
 | |
|     musb_irq_tx,
 | |
|     musb_set_vbus,
 | |
|     musb_set_session,
 | |
|     /* Add new interrupts here */
 | |
|     musb_irq_max /* total number of interrupts defined */
 | |
| };
 | |
| 
 | |
| /* TODO convert hcd-musb to QOM/qdev and remove MUSBReadFunc/MUSBWriteFunc */
 | |
| typedef void MUSBWriteFunc(void *opaque, hwaddr addr, uint32_t value);
 | |
| typedef uint32_t MUSBReadFunc(void *opaque, hwaddr addr);
 | |
| extern MUSBReadFunc * const musb_read[];
 | |
| extern MUSBWriteFunc * const musb_write[];
 | |
| 
 | |
| typedef struct MUSBState MUSBState;
 | |
| 
 | |
| MUSBState *musb_init(DeviceState *parent_device, int gpio_base);
 | |
| void musb_reset(MUSBState *s);
 | |
| uint32_t musb_core_intr_get(MUSBState *s);
 | |
| void musb_core_intr_clear(MUSBState *s, uint32_t mask);
 | |
| void musb_set_size(MUSBState *s, int epnum, int size, int is_tx);
 | |
| 
 | |
| #endif
 |