Lines Matching +full:0 +full:x4048
19 #define PCI_DEVICE_ID_IBM_GXT4500P 0x21c
20 #define PCI_DEVICE_ID_IBM_GXT6500P 0x21b
21 #define PCI_DEVICE_ID_IBM_GXT4000P 0x16e
22 #define PCI_DEVICE_ID_IBM_GXT6000P 0x170
27 #define CFG_ENDIAN0 0x40
30 #define STATUS 0x1000
31 #define CTRL_REG0 0x1004
32 #define CR0_HALT_DMA 0x4
33 #define CR0_RASTER_RESET 0x8
34 #define CR0_GEOM_RESET 0x10
35 #define CR0_MEM_CTRLER_RESET 0x20
38 #define FB_AB_CTRL 0x1100
39 #define FB_CD_CTRL 0x1104
40 #define FB_WID_CTRL 0x1108
41 #define FB_Z_CTRL 0x110c
42 #define FB_VGA_CTRL 0x1110
43 #define REFRESH_AB_CTRL 0x1114
44 #define REFRESH_CD_CTRL 0x1118
45 #define FB_OVL_CTRL 0x111c
46 #define FB_CTRL_TYPE 0x80000000
47 #define FB_CTRL_WIDTH_MASK 0x007f0000
49 #define FB_CTRL_START_SEG_MASK 0x00003fff
51 #define REFRESH_START 0x1098
52 #define REFRESH_SIZE 0x109c
55 #define DFA_FB_A 0x11e0
56 #define DFA_FB_B 0x11e4
57 #define DFA_FB_C 0x11e8
58 #define DFA_FB_D 0x11ec
59 #define DFA_FB_ENABLE 0x80000000
60 #define DFA_FB_BASE_MASK 0x03f00000
61 #define DFA_FB_STRIDE_1k 0x00000000
62 #define DFA_FB_STRIDE_2k 0x00000010
63 #define DFA_FB_STRIDE_4k 0x00000020
64 #define DFA_PIX_8BIT 0x00000000
65 #define DFA_PIX_16BIT_565 0x00000001
66 #define DFA_PIX_16BIT_1555 0x00000002
67 #define DFA_PIX_24BIT 0x00000004
68 #define DFA_PIX_32BIT 0x00000005
76 #define DTG_CONTROL 0x1900
79 #define DTG_HORIZ_EXTENT 0x1904
80 #define DTG_HORIZ_DISPLAY 0x1908
81 #define DTG_HSYNC_START 0x190c
82 #define DTG_HSYNC_END 0x1910
83 #define DTG_HSYNC_END_COMP 0x1914
84 #define DTG_VERT_EXTENT 0x1918
85 #define DTG_VERT_DISPLAY 0x191c
86 #define DTG_VSYNC_START 0x1920
87 #define DTG_VSYNC_END 0x1924
88 #define DTG_VERT_SHORT 0x1928
91 #define DISP_CTL 0x402c
93 #define SYNC_CTL 0x4034
97 #define SYNC_CTL_VSYNC_INV 0x10
98 #define SYNC_CTL_HSYNC_OFF 0x20
99 #define SYNC_CTL_VSYNC_OFF 0x40
101 #define PLL_M 0x4040
102 #define PLL_N 0x4044
103 #define PLL_POSTDIV 0x4048
104 #define PLL_C 0x404c
107 #define CURSOR_X 0x4078
108 #define CURSOR_Y 0x407c
109 #define CURSOR_HOTSPOT 0x4080
110 #define CURSOR_MODE 0x4084
111 #define CURSOR_MODE_OFF 0
113 #define CURSOR_PIXMAP 0x5000
114 #define CURSOR_CMAP 0x7400
117 #define WAT_FMT 0x4100
118 #define WAT_FMT_24BIT 0
121 #define WAT_FMT_32BIT 3 /* 0 vs. 3 is a guess */
123 #define WAT_FMT_8BIT 0xa
125 #define WAT_CMAP_OFFSET 0x4104 /* 4-bit value gets << 6 */
126 #define WAT_CTRL 0x4108
129 #define WAT_GAMMA_CTRL 0x410c
131 #define WAT_OVL_CTRL 0x430c /* controls overlay */
135 WAT_FMT_8BIT, WAT_FMT_16BIT_565, WAT_FMT_16BIT_1555, 0,
140 #define CMAP 0x6000
208 /* 1 */ 0x3f, 0x00, 0x20, 0x10, 0x28, 0x14, 0x2a, 0x15, 0x0a,
209 /* 10 */ 0x25, 0x32, 0x19, 0x0c, 0x26, 0x13, 0x09, 0x04, 0x22, 0x11,
210 /* 20 */ 0x08, 0x24, 0x12, 0x29, 0x34, 0x1a, 0x2d, 0x36, 0x1b, 0x0d,
211 /* 30 */ 0x06, 0x23, 0x31, 0x38, 0x1c, 0x2e, 0x17, 0x0b, 0x05, 0x02,
212 /* 40 */ 0x21, 0x30, 0x18, 0x2c, 0x16, 0x2b, 0x35, 0x3a, 0x1d, 0x0e,
213 /* 50 */ 0x27, 0x33, 0x39, 0x3c, 0x1e, 0x2f, 0x37, 0x3b, 0x3d, 0x3e,
214 /* 60 */ 0x1f, 0x0f, 0x07, 0x03, 0x01,
218 /* 2 */ 0x00, 0x80, 0xc0, 0xe0, 0xf0, 0x78, 0xbc, 0x5e,
219 /* 10 */ 0x2f, 0x17, 0x0b, 0x85, 0xc2, 0xe1, 0x70, 0x38, 0x9c, 0x4e,
220 /* 20 */ 0xa7, 0xd3, 0xe9, 0xf4, 0xfa, 0xfd, 0xfe, 0x7f, 0xbf, 0xdf,
221 /* 30 */ 0xef, 0x77, 0x3b, 0x1d, 0x8e, 0xc7, 0xe3, 0x71, 0xb8, 0xdc,
222 /* 40 */ 0x6e, 0xb7, 0x5b, 0x2d, 0x16, 0x8b, 0xc5, 0xe2, 0xf1, 0xf8,
223 /* 50 */ 0xfc, 0x7e, 0x3f, 0x9f, 0xcf, 0x67, 0xb3, 0xd9, 0x6c, 0xb6,
224 /* 60 */ 0xdb, 0x6d, 0x36, 0x9b, 0x4d, 0x26, 0x13, 0x89, 0xc4, 0x62,
225 /* 70 */ 0xb1, 0xd8, 0xec, 0xf6, 0xfb, 0x7d, 0xbe, 0x5f, 0xaf, 0x57,
226 /* 80 */ 0x2b, 0x95, 0x4a, 0x25, 0x92, 0x49, 0xa4, 0x52, 0x29, 0x94,
227 /* 90 */ 0xca, 0x65, 0xb2, 0x59, 0x2c, 0x96, 0xcb, 0xe5, 0xf2, 0x79,
228 /* 100 */ 0x3c, 0x1e, 0x0f, 0x07, 0x83, 0x41, 0x20, 0x90, 0x48, 0x24,
229 /* 110 */ 0x12, 0x09, 0x84, 0x42, 0xa1, 0x50, 0x28, 0x14, 0x8a, 0x45,
230 /* 120 */ 0xa2, 0xd1, 0xe8, 0x74, 0xba, 0xdd, 0xee, 0xf7, 0x7b, 0x3d,
231 /* 130 */ 0x9e, 0x4f, 0x27, 0x93, 0xc9, 0xe4, 0x72, 0x39, 0x1c, 0x0e,
232 /* 140 */ 0x87, 0xc3, 0x61, 0x30, 0x18, 0x8c, 0xc6, 0x63, 0x31, 0x98,
233 /* 150 */ 0xcc, 0xe6, 0x73, 0xb9, 0x5c, 0x2e, 0x97, 0x4b, 0xa5, 0xd2,
234 /* 160 */ 0x69,
263 if (t >= 0 && t < best_error) { in calc_pll()
275 return 0; in calc_pll()
294 if (calc_pll(var->pixclock, par) < 0) in gxt4500_var_to_par()
320 return 0; in gxt4500_var_to_par()
323 static const struct fb_bitfield eightbits = {0, 8};
324 static const struct fb_bitfield nobits = {0, 0};
352 var->blue.offset = 0; in gxt4500_unpack_pixfmt()
400 tmp = readreg(par, PLL_C) & ~0x7f; in gxt4500_set_par()
402 tmp |= 0x29; in gxt4500_set_par()
404 tmp |= 0x35; in gxt4500_set_par()
406 tmp |= 0x76; in gxt4500_set_par()
408 tmp |= 0x7e; in gxt4500_set_par()
415 writereg(par, PLL_POSTDIV, tmp | 0x9); in gxt4500_set_par()
469 writereg(par, FB_AB_CTRL, FB_CTRL_TYPE | (wid_tiles << 16) | 0); in gxt4500_set_par()
470 writereg(par, REFRESH_AB_CTRL, FB_CTRL_TYPE | (wid_tiles << 16) | 0); in gxt4500_set_par()
471 writereg(par, FB_CD_CTRL, FB_CTRL_TYPE | (wid_tiles << 16) | 0); in gxt4500_set_par()
472 writereg(par, REFRESH_CD_CTRL, FB_CTRL_TYPE | (wid_tiles << 16) | 0); in gxt4500_set_par()
487 for (i = 0; i < 32; ++i) { in gxt4500_set_par()
489 writereg(par, WAT_CMAP_OFFSET + (i << 4), 0); in gxt4500_set_par()
490 writereg(par, WAT_CTRL + (i << 4), 0); in gxt4500_set_par()
510 return 0; in gxt4500_set_par()
522 cmap_entry = ((transp & 0xff00) << 16) | ((red & 0xff00) << 8) | in gxt4500_setcolreg()
523 (green & 0xff00) | (blue >> 8); in gxt4500_setcolreg()
546 return 0; in gxt4500_setcolreg()
561 return 0; in gxt4500_pan_display()
591 return 0; in gxt4500_blank()
600 .mmio_len = 0x20000,
634 reg_phys = pci_resource_start(pdev, 0); in gxt4500_probe()
635 if (!request_mem_region(reg_phys, pci_resource_len(pdev, 0), in gxt4500_probe()
661 par->regs = pci_ioremap_bar(pdev, 0); in gxt4500_probe()
682 pci_write_config_dword(pdev, CFG_ENDIAN0, 0x333300); in gxt4500_probe()
685 pci_write_config_dword(pdev, CFG_ENDIAN0, 0x2300); in gxt4500_probe()
686 /* pci_write_config_dword(pdev, CFG_ENDIAN0 + 4, 0x400000);*/ in gxt4500_probe()
687 pci_write_config_dword(pdev, CFG_ENDIAN0 + 8, 0x98530000); in gxt4500_probe()
693 err = fb_alloc_cmap(&info->cmap, 256, 0); in gxt4500_probe()
701 if (!fb_find_mode(&var, info, mode_option, NULL, 0, &defaultmode, 8)) { in gxt4500_probe()
711 if (register_framebuffer(info) < 0) { in gxt4500_probe()
717 return 0; in gxt4500_probe()
730 release_mem_region(reg_phys, pci_resource_len(pdev, 0)); in gxt4500_probe()
748 release_mem_region(pci_resource_start(pdev, 0), in gxt4500_remove()
749 pci_resource_len(pdev, 0)); in gxt4500_remove()
765 { 0 }
800 module_param(mode_option, charp, 0);