* Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef VIRTMNGHOST_VPC_UNIT_H
#define VIRTMNGHOST_VPC_UNIT_H
#include "ka_common_pub.h"
#include "virtmng_msg_pub.h"
#include "virtmng_public_def.h"
struct vmngh_vpc_unit {
void *vdavinci;
ka_pci_dev_t *pdev;
void __ka_mm_iomem *db_base;
void __ka_mm_iomem *msg_base;
void __ka_mm_iomem *ts_msg_base;
struct vmng_msg_dev *msg_dev;
struct vmng_shr_para *shr_para;
u32 dev_id;
u32 fid;
};
int vmngh_dev_id_check(u32 dev_id, u32 fid);
#endif