shm_channel.h 557 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
  2. /* Copyright (c) 2021, Microsoft Corporation. */
  3. #ifndef _SHM_CHANNEL_H
  4. #define _SHM_CHANNEL_H
  5. struct shm_channel {
  6. struct device *dev;
  7. void __iomem *base;
  8. };
  9. void mana_smc_init(struct shm_channel *sc, struct device *dev,
  10. void __iomem *base);
  11. int mana_smc_setup_hwc(struct shm_channel *sc, bool reset_vf, u64 eq_addr,
  12. u64 cq_addr, u64 rq_addr, u64 sq_addr,
  13. u32 eq_msix_index);
  14. int mana_smc_teardown_hwc(struct shm_channel *sc, bool reset_vf);
  15. #endif /* _SHM_CHANNEL_H */