162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifndef __ASM_VIRT_H 362306a36Sopenharmony_ci#define __ASM_VIRT_H 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#define NUM_VIRT_SOURCES 200 662306a36Sopenharmony_ci 762306a36Sopenharmony_cistruct virt_booter_device_data { 862306a36Sopenharmony_ci u32 mmio; 962306a36Sopenharmony_ci u32 irq; 1062306a36Sopenharmony_ci}; 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_cistruct virt_booter_data { 1362306a36Sopenharmony_ci u32 qemu_version; 1462306a36Sopenharmony_ci struct virt_booter_device_data pic; 1562306a36Sopenharmony_ci struct virt_booter_device_data rtc; 1662306a36Sopenharmony_ci struct virt_booter_device_data tty; 1762306a36Sopenharmony_ci struct virt_booter_device_data ctrl; 1862306a36Sopenharmony_ci struct virt_booter_device_data virtio; 1962306a36Sopenharmony_ci}; 2062306a36Sopenharmony_ci 2162306a36Sopenharmony_ciextern struct virt_booter_data virt_bi_data; 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_ciextern void __init virt_init_IRQ(void); 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ci#endif 26