Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Qualcomm Technologies HIDMA Management common header
0004  *
0005  * Copyright (c) 2015, The Linux Foundation. All rights reserved.
0006  */
0007 
0008 struct hidma_mgmt_dev {
0009     u8 hw_version_major;
0010     u8 hw_version_minor;
0011 
0012     u32 max_wr_xactions;
0013     u32 max_rd_xactions;
0014     u32 max_write_request;
0015     u32 max_read_request;
0016     u32 dma_channels;
0017     u32 chreset_timeout_cycles;
0018     u32 hw_version;
0019     u32 *priority;
0020     u32 *weight;
0021 
0022     /* Hardware device constants */
0023     void __iomem *virtaddr;
0024     resource_size_t addrsize;
0025 
0026     struct kobject **chroots;
0027     struct platform_device *pdev;
0028 };
0029 
0030 int hidma_mgmt_init_sys(struct hidma_mgmt_dev *dev);
0031 int hidma_mgmt_setup(struct hidma_mgmt_dev *mgmtdev);