ati-vga: Implement DDC and EDID info from monitor
[qemu/ar7.git] / target / moxie / mmu.h
blobd80690f4d2f1bd7ec30ce42662ccb6e3bb51e12e
1 #ifndef TARGET_MOXIE_MMU_H
2 #define TARGET_MOXIE_MMU_H
4 #define MOXIE_MMU_ERR_EXEC 0
5 #define MOXIE_MMU_ERR_READ 1
6 #define MOXIE_MMU_ERR_WRITE 2
7 #define MOXIE_MMU_ERR_FLUSH 3
9 typedef struct {
10 uint32_t phy;
11 uint32_t pfn;
12 int cause_op;
13 } MoxieMMUResult;
15 int moxie_mmu_translate(MoxieMMUResult *res,
16 CPUMoxieState *env, uint32_t vaddr,
17 int rw, int mmu_idx);
19 #endif