mic_device.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Intel MIC Platform Software Stack (MPSS)
  3. *
  4. * Copyright(c) 2013 Intel Corporation.
  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, as
  8. * published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * General Public License for more details.
  14. *
  15. * The full GNU General Public License is included in this distribution in
  16. * the file called "COPYING".
  17. *
  18. * Intel MIC driver.
  19. *
  20. */
  21. #ifndef __MIC_COMMON_DEVICE_H_
  22. #define __MIC_COMMON_DEVICE_H_
  23. /**
  24. * struct mic_mw - MIC memory window
  25. *
  26. * @pa: Base physical address.
  27. * @va: Base ioremap'd virtual address.
  28. * @len: Size of the memory window.
  29. */
  30. struct mic_mw {
  31. phys_addr_t pa;
  32. void __iomem *va;
  33. resource_size_t len;
  34. };
  35. /*
  36. * Scratch pad register offsets used by the host to communicate
  37. * device page DMA address to the card.
  38. */
  39. #define MIC_DPLO_SPAD 14
  40. #define MIC_DPHI_SPAD 15
  41. /*
  42. * These values are supposed to be in the config_change field of the
  43. * device page when the host sends a config change interrupt to the card.
  44. */
  45. #define MIC_VIRTIO_PARAM_DEV_REMOVE 0x1
  46. #define MIC_VIRTIO_PARAM_CONFIG_CHANGED 0x2
  47. #endif