18 #include <linux/module.h>
23 #define GE_COMMAND_OFF 0x00
24 #define GE_DEPTH_OFF 0x04
25 #define GE_HIGHCOLOR_OFF 0x08
26 #define GE_ROPCODE_OFF 0x14
27 #define GE_FIRE_OFF 0x18
28 #define GE_SRCBASE_OFF 0x20
29 #define GE_SRCDISPW_OFF 0x24
30 #define GE_SRCDISPH_OFF 0x28
31 #define GE_SRCAREAX_OFF 0x2c
32 #define GE_SRCAREAY_OFF 0x30
33 #define GE_SRCAREAW_OFF 0x34
34 #define GE_SRCAREAH_OFF 0x38
35 #define GE_DESTBASE_OFF 0x3c
36 #define GE_DESTDISPW_OFF 0x40
37 #define GE_DESTDISPH_OFF 0x44
38 #define GE_DESTAREAX_OFF 0x48
39 #define GE_DESTAREAY_OFF 0x4c
40 #define GE_DESTAREAW_OFF 0x50
41 #define GE_DESTAREAH_OFF 0x54
42 #define GE_PAT0C_OFF 0x88
43 #define GE_ENABLE_OFF 0xec
44 #define GE_INTEN_OFF 0xf0
45 #define GE_STATUS_OFF 0xf8
51 unsigned long fg,
pat;
62 pat = pixel_to_pat(p->
var.bits_per_pixel, fg);
64 if (p->
fbops->fb_sync)
90 if (p->
fbops->fb_sync)
123 return loops > 0 ? 0 : -
EBUSY;
133 dev_err(&pdev->
dev,
"no I/O memory resource defined\n");
144 if (regbase ==
NULL) {
145 dev_err(&pdev->
dev,
"failed to map I/O memory\n");
162 { .compatible =
"wm,prizm-ge-rops", },
167 .probe = wmt_ge_rops_probe,
171 .name =
"wmt_ge_rops",
180 "WonderMedia Graphics Engine");