| 
									
										
										
										
											2007-11-17 17:14:51 +00:00
										 |  |  | #ifndef SUN4M_H
 | 
					
						
							|  |  |  | #define SUN4M_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-05 23:01:23 +00:00
										 |  |  | #include "qemu-common.h"
 | 
					
						
							| 
									
										
										
										
											2013-02-05 14:38:25 +01:00
										 |  |  | #include "exec/hwaddr.h"
 | 
					
						
							|  |  |  | #include "qapi/qmp/types.h"
 | 
					
						
							| 
									
										
										
										
											2009-03-05 23:01:23 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-11-17 17:14:51 +00:00
										 |  |  | /* Devices used by sparc32 system.  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* iommu.c */ | 
					
						
							| 
									
										
										
										
											2012-10-23 12:30:10 +02:00
										 |  |  | void sparc_iommu_memory_rw(void *opaque, hwaddr addr, | 
					
						
							| 
									
										
										
										
											2007-11-17 17:14:51 +00:00
										 |  |  |                                  uint8_t *buf, int len, int is_write); | 
					
						
							|  |  |  | static inline void sparc_iommu_memory_read(void *opaque, | 
					
						
							| 
									
										
										
										
											2012-10-23 12:30:10 +02:00
										 |  |  |                                            hwaddr addr, | 
					
						
							| 
									
										
										
										
											2007-11-17 17:14:51 +00:00
										 |  |  |                                            uint8_t *buf, int len) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     sparc_iommu_memory_rw(opaque, addr, buf, len, 0); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static inline void sparc_iommu_memory_write(void *opaque, | 
					
						
							| 
									
										
										
										
											2012-10-23 12:30:10 +02:00
										 |  |  |                                             hwaddr addr, | 
					
						
							| 
									
										
										
										
											2007-11-17 17:14:51 +00:00
										 |  |  |                                             uint8_t *buf, int len) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     sparc_iommu_memory_rw(opaque, addr, buf, len, 1); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* sparc32_dma.c */ | 
					
						
							| 
									
										
										
										
											2013-02-05 17:06:20 +01:00
										 |  |  | #include "hw/sparc/sparc32_dma.h"
 | 
					
						
							| 
									
										
										
										
											2007-11-17 17:14:51 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | #endif
 |