mei_aux.h 929 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (c) 2022, Intel Corporation. All rights reserved.
  4. */
  5. #ifndef _LINUX_MEI_AUX_H
  6. #define _LINUX_MEI_AUX_H
  7. #include <linux/auxiliary_bus.h>
  8. /**
  9. * struct mei_aux_device - mei auxiliary device
  10. * @aux_dev: - auxiliary device object
  11. * @irq: interrupt driving the mei auxiliary device
  12. * @bar: mmio resource bar reserved to mei auxiliary device
  13. * @ext_op_mem: resource for extend operational memory
  14. * used in graphics PXP mode.
  15. * @slow_firmware: The device has slow underlying firmware.
  16. * Such firmware will require to use larger operation timeouts.
  17. */
  18. struct mei_aux_device {
  19. struct auxiliary_device aux_dev;
  20. int irq;
  21. struct resource bar;
  22. struct resource ext_op_mem;
  23. bool slow_firmware;
  24. };
  25. #define auxiliary_dev_to_mei_aux_dev(auxiliary_dev) \
  26. container_of(auxiliary_dev, struct mei_aux_device, aux_dev)
  27. #endif /* _LINUX_MEI_AUX_H */