hidma_mgmt.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Qualcomm Technologies HIDMA Management common header
  3. *
  4. * Copyright (c) 2015, The Linux Foundation. All rights reserved.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 and
  8. * only version 2 as published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. struct hidma_mgmt_dev {
  16. u8 hw_version_major;
  17. u8 hw_version_minor;
  18. u32 max_wr_xactions;
  19. u32 max_rd_xactions;
  20. u32 max_write_request;
  21. u32 max_read_request;
  22. u32 dma_channels;
  23. u32 chreset_timeout_cycles;
  24. u32 hw_version;
  25. u32 *priority;
  26. u32 *weight;
  27. /* Hardware device constants */
  28. void __iomem *virtaddr;
  29. resource_size_t addrsize;
  30. struct kobject **chroots;
  31. struct platform_device *pdev;
  32. };
  33. int hidma_mgmt_init_sys(struct hidma_mgmt_dev *dev);
  34. int hidma_mgmt_setup(struct hidma_mgmt_dev *mgmtdev);