sun4m.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef SUN4M_H
  2. #define SUN4M_H
  3. #include "qemu-common.h"
  4. /* Devices used by sparc32 system. */
  5. /* iommu.c */
  6. void sparc_iommu_memory_rw(void *opaque, target_phys_addr_t addr,
  7. uint8_t *buf, int len, int is_write);
  8. static inline void sparc_iommu_memory_read(void *opaque,
  9. target_phys_addr_t addr,
  10. uint8_t *buf, int len)
  11. {
  12. sparc_iommu_memory_rw(opaque, addr, buf, len, 0);
  13. }
  14. static inline void sparc_iommu_memory_write(void *opaque,
  15. target_phys_addr_t addr,
  16. uint8_t *buf, int len)
  17. {
  18. sparc_iommu_memory_rw(opaque, addr, buf, len, 1);
  19. }
  20. /* slavio_intctl.c */
  21. void slavio_pic_info(Monitor *mon, DeviceState *dev);
  22. void slavio_irq_info(Monitor *mon, DeviceState *dev);
  23. /* sun4c_intctl.c */
  24. void sun4c_pic_info(Monitor *mon, void *opaque);
  25. void sun4c_irq_info(Monitor *mon, void *opaque);
  26. /* sun4m.c */
  27. void sun4m_pic_info(Monitor *mon);
  28. void sun4m_irq_info(Monitor *mon);
  29. /* sparc32_dma.c */
  30. #include "sparc32_dma.h"
  31. #endif