Go to the documentation of this file.
11 #ifndef __CIRRUS_DRV_H__
12 #define __CIRRUS_DRV_H__
24 #define DRIVER_AUTHOR "Matthew Garrett"
26 #define DRIVER_NAME "cirrus"
27 #define DRIVER_DESC "qemu Cirrus emulation"
28 #define DRIVER_DATE "20110418"
30 #define DRIVER_MAJOR 1
31 #define DRIVER_MINOR 0
32 #define DRIVER_PATCHLEVEL 0
34 #define CIRRUSFB_CONN_LIMIT 1
36 #define RREG8(reg) ioread8(((void __iomem *)cdev->rmmio) + (reg))
37 #define WREG8(reg, v) iowrite8(v, ((void __iomem *)cdev->rmmio) + (reg))
38 #define RREG32(reg) ioread32(((void __iomem *)cdev->rmmio) + (reg))
39 #define WREG32(reg, v) iowrite32(v, ((void __iomem *)cdev->rmmio) + (reg))
44 #define WREG_SEQ(reg, v) \
46 WREG8(SEQ_INDEX, reg); \
50 #define CRT_INDEX 0x14
53 #define WREG_CRT(reg, v) \
55 WREG8(CRT_INDEX, reg); \
62 #define WREG_GFX(reg, v) \
64 WREG8(GFX_INDEX, reg); \
73 #define VGA_DAC_MASK 0x6
77 RREG8(VGA_DAC_MASK); \
78 RREG8(VGA_DAC_MASK); \
79 RREG8(VGA_DAC_MASK); \
80 RREG8(VGA_DAC_MASK); \
81 WREG8(VGA_DAC_MASK, v); \
85 #define CIRRUS_MAX_FB_HEIGHT 4096
86 #define CIRRUS_MAX_FB_WIDTH 4096
88 #define CIRRUS_DPMS_CLEARED (-1)
90 #define to_cirrus_crtc(x) container_of(x, struct cirrus_crtc, base)
91 #define to_cirrus_encoder(x) container_of(x, struct cirrus_encoder, base)
92 #define to_cirrus_framebuffer(x) container_of(x, struct cirrus_framebuffer, base)
120 struct drm_gem_object *
obj;
163 struct drm_gem_object
gem;
167 #define gem_to_cirrus_bo(gobj) container_of((gobj), struct cirrus_bo, gem)
176 #define to_cirrus_obj(x) container_of(x, struct cirrus_gem_object, base)
177 #define DRM_FILE_PAGE_OFFSET (0x100000000ULL >> PAGE_SHIFT)
200 struct drm_gem_object **obj);
211 struct drm_gem_object *obj);