Lines Matching +full:0 +full:x00018000
70 #define CG6_ROM_OFFSET 0x0UL
71 #define CG6_BROOKTREE_OFFSET 0x200000UL
72 #define CG6_DHC_OFFSET 0x240000UL
73 #define CG6_ALT_OFFSET 0x280000UL
74 #define CG6_FHC_OFFSET 0x300000UL
75 #define CG6_THC_OFFSET 0x301000UL
76 #define CG6_FBC_OFFSET 0x700000UL
77 #define CG6_TEC_OFFSET 0x701000UL
78 #define CG6_RAM_OFFSET 0x800000UL
92 #define CG6_FHC_1024 (0 << 11)
97 #define CG6_FHC_CPU_SPARC (0 << 9)
103 #define CG6_FHC_TEST_Y_SHIFT 0
107 #define CG6_FBC_BLIT_IGNORE 0x00000000
108 #define CG6_FBC_BLIT_NOSRC 0x00100000
109 #define CG6_FBC_BLIT_SRC 0x00200000
110 #define CG6_FBC_BLIT_ILLEGAL 0x00300000
111 #define CG6_FBC_BLIT_MASK 0x00300000
113 #define CG6_FBC_VBLANK 0x00080000
115 #define CG6_FBC_MODE_IGNORE 0x00000000
116 #define CG6_FBC_MODE_COLOR8 0x00020000
117 #define CG6_FBC_MODE_COLOR1 0x00040000
118 #define CG6_FBC_MODE_HRMONO 0x00060000
119 #define CG6_FBC_MODE_MASK 0x00060000
121 #define CG6_FBC_DRAW_IGNORE 0x00000000
122 #define CG6_FBC_DRAW_RENDER 0x00008000
123 #define CG6_FBC_DRAW_PICK 0x00010000
124 #define CG6_FBC_DRAW_ILLEGAL 0x00018000
125 #define CG6_FBC_DRAW_MASK 0x00018000
127 #define CG6_FBC_BWRITE0_IGNORE 0x00000000
128 #define CG6_FBC_BWRITE0_ENABLE 0x00002000
129 #define CG6_FBC_BWRITE0_DISABLE 0x00004000
130 #define CG6_FBC_BWRITE0_ILLEGAL 0x00006000
131 #define CG6_FBC_BWRITE0_MASK 0x00006000
133 #define CG6_FBC_BWRITE1_IGNORE 0x00000000
134 #define CG6_FBC_BWRITE1_ENABLE 0x00000800
135 #define CG6_FBC_BWRITE1_DISABLE 0x00001000
136 #define CG6_FBC_BWRITE1_ILLEGAL 0x00001800
137 #define CG6_FBC_BWRITE1_MASK 0x00001800
139 #define CG6_FBC_BREAD_IGNORE 0x00000000
140 #define CG6_FBC_BREAD_0 0x00000200
141 #define CG6_FBC_BREAD_1 0x00000400
142 #define CG6_FBC_BREAD_ILLEGAL 0x00000600
143 #define CG6_FBC_BREAD_MASK 0x00000600
145 #define CG6_FBC_BDISP_IGNORE 0x00000000
146 #define CG6_FBC_BDISP_0 0x00000080
147 #define CG6_FBC_BDISP_1 0x00000100
148 #define CG6_FBC_BDISP_ILLEGAL 0x00000180
149 #define CG6_FBC_BDISP_MASK 0x00000180
151 #define CG6_FBC_INDEX_MOD 0x00000040
152 #define CG6_FBC_INDEX_MASK 0x00000030
165 #define CG6_THC_MISC_INIT 0x9f
264 #define CG6_FLAG_BLANKED 0x00000001
276 if (!(sbus_readl(&fbc->s) & 0x10000000)) in cg6_sync()
279 } while (--limit > 0); in cg6_sync()
281 return 0; in cg6_sync()
308 return 0; in cg6_pan_display()
331 sbus_writel(~(u32)0, &fbc->pixelm); in cg6_fillrect()
332 sbus_writel(0xea80ff00, &fbc->alu); in cg6_fillrect()
333 sbus_writel(0, &fbc->s); in cg6_fillrect()
334 sbus_writel(0, &fbc->clip); in cg6_fillrect()
335 sbus_writel(~(u32)0, &fbc->pm); in cg6_fillrect()
342 } while (val < 0 && (val & 0x20000000)); in cg6_fillrect()
367 sbus_writel(0xff, &fbc->fg); in cg6_copyarea()
368 sbus_writel(0x00, &fbc->bg); in cg6_copyarea()
369 sbus_writel(~0, &fbc->pixelm); in cg6_copyarea()
370 sbus_writel(0xe880cccc, &fbc->alu); in cg6_copyarea()
371 sbus_writel(0, &fbc->s); in cg6_copyarea()
372 sbus_writel(0, &fbc->clip); in cg6_copyarea()
384 } while (i < 0 && (i & 0x20000000)); in cg6_copyarea()
414 sbus_writel(0x140000, &fbc->mode); in cg6_imageblit()
415 sbus_writel(0xe880fc30, &fbc->alu); in cg6_imageblit()
416 sbus_writel(~(u32)0, &fbc->pixelm); in cg6_imageblit()
417 sbus_writel(0, &fbc->s); in cg6_imageblit()
418 sbus_writel(0, &fbc->clip); in cg6_imageblit()
419 sbus_writel(0xff, &fbc->pm); in cg6_imageblit()
421 sbus_writel(0, &fbc->incy); in cg6_imageblit()
425 for (i = 0; i < image->height; i++) { in cg6_imageblit()
435 val = ((u32)data[0] << 24) | in cg6_imageblit()
438 ((u32)data[3] << 0); in cg6_imageblit()
452 val = (u32) data[0] << 24; in cg6_imageblit()
455 val = ((u32) data[0] << 24) | in cg6_imageblit()
459 val = ((u32) data[0] << 24) | in cg6_imageblit()
477 * @regno: boolean, 0 copy local, 1 get_user() function
508 return 0; in cg6_setcolreg()
545 return 0; in cg6_blank()
577 .size = 0x10000
587 .size = 0x40000
589 { .size = 0 }
630 if (info->fix.smem_len <= 0x100000) in cg6_init_fix()
635 if (info->fix.smem_len <= 0x100000) in cg6_init_fix()
642 info->fix.id[sizeof(info->fix.id) - 1] = 0; in cg6_init_fix()
657 sbus_writel(0x04 << 24, &bt->addr); /* color planes */ in cg6_bt_init()
658 sbus_writel(0xff << 24, &bt->control); in cg6_bt_init()
659 sbus_writel(0x05 << 24, &bt->addr); in cg6_bt_init()
660 sbus_writel(0x00 << 24, &bt->control); in cg6_bt_init()
661 sbus_writel(0x06 << 24, &bt->addr); /* overlay plane */ in cg6_bt_init()
662 sbus_writel(0x73 << 24, &bt->control); in cg6_bt_init()
663 sbus_writel(0x07 << 24, &bt->addr); in cg6_bt_init()
664 sbus_writel(0x00 << 24, &bt->control); in cg6_bt_init()
680 sbus_writel(0, &tec->tec_matrix); in cg6_chip_init()
681 sbus_writel(0, &tec->tec_clip); in cg6_chip_init()
682 sbus_writel(0, &tec->tec_vdc); in cg6_chip_init()
702 } while (i & 0x10000000); in cg6_chip_init()
713 sbus_writel(0, &fbc->clip); in cg6_chip_init()
714 sbus_writel(0, &fbc->offx); in cg6_chip_init()
715 sbus_writel(0, &fbc->offy); in cg6_chip_init()
716 sbus_writel(0, &fbc->clipminx); in cg6_chip_init()
717 sbus_writel(0, &fbc->clipminy); in cg6_chip_init()
726 of_iounmap(&op->resource[0], par->fbc, 4096); in cg6_unmap_regs()
728 of_iounmap(&op->resource[0], par->tec, sizeof(struct cg6_tec)); in cg6_unmap_regs()
730 of_iounmap(&op->resource[0], par->thc, sizeof(struct cg6_thc)); in cg6_unmap_regs()
732 of_iounmap(&op->resource[0], par->bt, sizeof(struct bt_regs)); in cg6_unmap_regs()
734 of_iounmap(&op->resource[0], par->fhc, sizeof(u32)); in cg6_unmap_regs()
737 of_iounmap(&op->resource[0], info->screen_base, in cg6_unmap_regs()
758 info->fix.smem_start = op->resource[0].start; in cg6_probe()
759 par->which_io = op->resource[0].flags & IORESOURCE_BITS; in cg6_probe()
770 dblbuf = of_getintprop_default(dp, "dblbuf", 0); in cg6_probe()
774 par->fbc = of_ioremap(&op->resource[0], CG6_FBC_OFFSET, in cg6_probe()
776 par->tec = of_ioremap(&op->resource[0], CG6_TEC_OFFSET, in cg6_probe()
778 par->thc = of_ioremap(&op->resource[0], CG6_THC_OFFSET, in cg6_probe()
780 par->bt = of_ioremap(&op->resource[0], CG6_BROOKTREE_OFFSET, in cg6_probe()
782 par->fhc = of_ioremap(&op->resource[0], CG6_FHC_OFFSET, in cg6_probe()
790 info->screen_base = of_ioremap(&op->resource[0], CG6_RAM_OFFSET, in cg6_probe()
802 if (fb_alloc_cmap(&info->cmap, 256, 0)) in cg6_probe()
809 if (err < 0) in cg6_probe()
818 return 0; in cg6_probe()