Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 1 | /* |
| 2 | * Procedures for drawing on the screen early on in the boot process. |
| 3 | * |
| 4 | * Benjamin Herrenschmidt <benh@kernel.crashing.org> |
| 5 | */ |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 6 | #include <linux/kernel.h> |
| 7 | #include <linux/string.h> |
| 8 | #include <linux/init.h> |
Paul Gortmaker | 4b16f8e | 2011-07-22 18:24:23 -0400 | [diff] [blame] | 9 | #include <linux/export.h> |
Yinghai Lu | 95f72d1 | 2010-07-12 14:36:09 +1000 | [diff] [blame] | 10 | #include <linux/memblock.h> |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 11 | |
| 12 | #include <asm/sections.h> |
| 13 | #include <asm/prom.h> |
| 14 | #include <asm/btext.h> |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 15 | #include <asm/page.h> |
| 16 | #include <asm/mmu.h> |
| 17 | #include <asm/pgtable.h> |
| 18 | #include <asm/io.h> |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 19 | #include <asm/processor.h> |
David Gibson | 719c91c | 2007-02-13 15:54:22 +1100 | [diff] [blame] | 20 | #include <asm/udbg.h> |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 21 | |
| 22 | #define NO_SCROLL |
| 23 | |
| 24 | #ifndef NO_SCROLL |
| 25 | static void scrollscreen(void); |
| 26 | #endif |
| 27 | |
| 28 | static void draw_byte(unsigned char c, long locX, long locY); |
| 29 | static void draw_byte_32(unsigned char *bits, unsigned int *base, int rb); |
| 30 | static void draw_byte_16(unsigned char *bits, unsigned int *base, int rb); |
| 31 | static void draw_byte_8(unsigned char *bits, unsigned int *base, int rb); |
| 32 | |
Benjamin Herrenschmidt | 51d3082 | 2005-11-23 17:57:25 +1100 | [diff] [blame] | 33 | #define __force_data __attribute__((__section__(".data"))) |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 34 | |
Benjamin Herrenschmidt | 51d3082 | 2005-11-23 17:57:25 +1100 | [diff] [blame] | 35 | static int g_loc_X __force_data; |
| 36 | static int g_loc_Y __force_data; |
| 37 | static int g_max_loc_X __force_data; |
| 38 | static int g_max_loc_Y __force_data; |
| 39 | |
| 40 | static int dispDeviceRowBytes __force_data; |
| 41 | static int dispDeviceDepth __force_data; |
| 42 | static int dispDeviceRect[4] __force_data; |
| 43 | static unsigned char *dispDeviceBase __force_data; |
| 44 | static unsigned char *logicalDisplayBase __force_data; |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 45 | |
| 46 | unsigned long disp_BAT[2] __initdata = {0, 0}; |
| 47 | |
| 48 | #define cmapsz (16*256) |
| 49 | |
| 50 | static unsigned char vga_font[cmapsz]; |
| 51 | |
Benjamin Herrenschmidt | 51d3082 | 2005-11-23 17:57:25 +1100 | [diff] [blame] | 52 | int boot_text_mapped __force_data = 0; |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 53 | int force_printk_to_btext = 0; |
| 54 | |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 55 | #ifdef CONFIG_PPC32 |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 56 | /* Calc BAT values for mapping the display and store them |
| 57 | * in disp_BAT. Those values are then used from head.S to map |
| 58 | * the display during identify_machine() and MMU_Init() |
| 59 | * |
| 60 | * The display is mapped to virtual address 0xD0000000, rather |
| 61 | * than 1:1, because some some CHRP machines put the frame buffer |
Michael Ellerman | b5666f7 | 2005-12-05 10:24:33 -0600 | [diff] [blame] | 62 | * in the region starting at 0xC0000000 (PAGE_OFFSET). |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 63 | * This mapping is temporary and will disappear as soon as the |
| 64 | * setup done by MMU_Init() is applied. |
| 65 | * |
| 66 | * For now, we align the BAT and then map 8Mb on 601 and 16Mb |
| 67 | * on other PPCs. This may cause trouble if the framebuffer |
| 68 | * is really badly aligned, but I didn't encounter this case |
| 69 | * yet. |
| 70 | */ |
Benjamin Herrenschmidt | 51d3082 | 2005-11-23 17:57:25 +1100 | [diff] [blame] | 71 | void __init btext_prepare_BAT(void) |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 72 | { |
Michael Ellerman | b5666f7 | 2005-12-05 10:24:33 -0600 | [diff] [blame] | 73 | unsigned long vaddr = PAGE_OFFSET + 0x10000000; |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 74 | unsigned long addr; |
| 75 | unsigned long lowbits; |
| 76 | |
| 77 | addr = (unsigned long)dispDeviceBase; |
| 78 | if (!addr) { |
| 79 | boot_text_mapped = 0; |
| 80 | return; |
| 81 | } |
| 82 | if (PVR_VER(mfspr(SPRN_PVR)) != 1) { |
| 83 | /* 603, 604, G3, G4, ... */ |
| 84 | lowbits = addr & ~0xFF000000UL; |
| 85 | addr &= 0xFF000000UL; |
| 86 | disp_BAT[0] = vaddr | (BL_16M<<2) | 2; |
| 87 | disp_BAT[1] = addr | (_PAGE_NO_CACHE | _PAGE_GUARDED | BPP_RW); |
| 88 | } else { |
| 89 | /* 601 */ |
| 90 | lowbits = addr & ~0xFF800000UL; |
| 91 | addr &= 0xFF800000UL; |
| 92 | disp_BAT[0] = vaddr | (_PAGE_NO_CACHE | PP_RWXX) | 4; |
| 93 | disp_BAT[1] = addr | BL_8M | 0x40; |
| 94 | } |
| 95 | logicalDisplayBase = (void *) (vaddr + lowbits); |
| 96 | } |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 97 | #endif |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 98 | |
Benjamin Herrenschmidt | 51d3082 | 2005-11-23 17:57:25 +1100 | [diff] [blame] | 99 | |
| 100 | /* This function can be used to enable the early boot text when doing |
| 101 | * OF booting or within bootx init. It must be followed by a btext_unmap() |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 102 | * call before the logical address becomes unusable |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 103 | */ |
Benjamin Herrenschmidt | 51d3082 | 2005-11-23 17:57:25 +1100 | [diff] [blame] | 104 | void __init btext_setup_display(int width, int height, int depth, int pitch, |
| 105 | unsigned long address) |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 106 | { |
| 107 | g_loc_X = 0; |
| 108 | g_loc_Y = 0; |
| 109 | g_max_loc_X = width / 8; |
| 110 | g_max_loc_Y = height / 16; |
| 111 | logicalDisplayBase = (unsigned char *)address; |
| 112 | dispDeviceBase = (unsigned char *)address; |
| 113 | dispDeviceRowBytes = pitch; |
Benjamin Herrenschmidt | ab13446 | 2006-07-03 17:19:48 +1000 | [diff] [blame] | 114 | dispDeviceDepth = depth == 15 ? 16 : depth; |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 115 | dispDeviceRect[0] = dispDeviceRect[1] = 0; |
| 116 | dispDeviceRect[2] = width; |
| 117 | dispDeviceRect[3] = height; |
| 118 | boot_text_mapped = 1; |
| 119 | } |
| 120 | |
Benjamin Herrenschmidt | 51d3082 | 2005-11-23 17:57:25 +1100 | [diff] [blame] | 121 | void __init btext_unmap(void) |
| 122 | { |
| 123 | boot_text_mapped = 0; |
| 124 | } |
| 125 | |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 126 | /* Here's a small text engine to use during early boot |
| 127 | * or for debugging purposes |
| 128 | * |
| 129 | * todo: |
| 130 | * |
| 131 | * - build some kind of vgacon with it to enable early printk |
| 132 | * - move to a separate file |
| 133 | * - add a few video driver hooks to keep in sync with display |
| 134 | * changes. |
| 135 | */ |
| 136 | |
Benjamin Herrenschmidt | 51d3082 | 2005-11-23 17:57:25 +1100 | [diff] [blame] | 137 | static void map_boot_text(void) |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 138 | { |
| 139 | unsigned long base, offset, size; |
| 140 | unsigned char *vbase; |
| 141 | |
| 142 | /* By default, we are no longer mapped */ |
| 143 | boot_text_mapped = 0; |
| 144 | if (dispDeviceBase == 0) |
| 145 | return; |
| 146 | base = ((unsigned long) dispDeviceBase) & 0xFFFFF000UL; |
| 147 | offset = ((unsigned long) dispDeviceBase) - base; |
| 148 | size = dispDeviceRowBytes * dispDeviceRect[3] + offset |
| 149 | + dispDeviceRect[0]; |
| 150 | vbase = __ioremap(base, size, _PAGE_NO_CACHE); |
| 151 | if (vbase == 0) |
| 152 | return; |
| 153 | logicalDisplayBase = vbase + offset; |
| 154 | boot_text_mapped = 1; |
| 155 | } |
| 156 | |
| 157 | int btext_initialize(struct device_node *np) |
| 158 | { |
| 159 | unsigned int width, height, depth, pitch; |
| 160 | unsigned long address = 0; |
Jeremy Kerr | a7f67bd | 2006-07-12 15:35:54 +1000 | [diff] [blame] | 161 | const u32 *prop; |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 162 | |
Stephen Rothwell | e2eb639 | 2007-04-03 22:26:41 +1000 | [diff] [blame] | 163 | prop = of_get_property(np, "linux,bootx-width", NULL); |
Benjamin Herrenschmidt | ab13446 | 2006-07-03 17:19:48 +1000 | [diff] [blame] | 164 | if (prop == NULL) |
Stephen Rothwell | e2eb639 | 2007-04-03 22:26:41 +1000 | [diff] [blame] | 165 | prop = of_get_property(np, "width", NULL); |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 166 | if (prop == NULL) |
| 167 | return -EINVAL; |
| 168 | width = *prop; |
Stephen Rothwell | e2eb639 | 2007-04-03 22:26:41 +1000 | [diff] [blame] | 169 | prop = of_get_property(np, "linux,bootx-height", NULL); |
Benjamin Herrenschmidt | ab13446 | 2006-07-03 17:19:48 +1000 | [diff] [blame] | 170 | if (prop == NULL) |
Stephen Rothwell | e2eb639 | 2007-04-03 22:26:41 +1000 | [diff] [blame] | 171 | prop = of_get_property(np, "height", NULL); |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 172 | if (prop == NULL) |
| 173 | return -EINVAL; |
| 174 | height = *prop; |
Stephen Rothwell | e2eb639 | 2007-04-03 22:26:41 +1000 | [diff] [blame] | 175 | prop = of_get_property(np, "linux,bootx-depth", NULL); |
Benjamin Herrenschmidt | ab13446 | 2006-07-03 17:19:48 +1000 | [diff] [blame] | 176 | if (prop == NULL) |
Stephen Rothwell | e2eb639 | 2007-04-03 22:26:41 +1000 | [diff] [blame] | 177 | prop = of_get_property(np, "depth", NULL); |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 178 | if (prop == NULL) |
| 179 | return -EINVAL; |
| 180 | depth = *prop; |
| 181 | pitch = width * ((depth + 7) / 8); |
Stephen Rothwell | e2eb639 | 2007-04-03 22:26:41 +1000 | [diff] [blame] | 182 | prop = of_get_property(np, "linux,bootx-linebytes", NULL); |
Benjamin Herrenschmidt | ab13446 | 2006-07-03 17:19:48 +1000 | [diff] [blame] | 183 | if (prop == NULL) |
Stephen Rothwell | e2eb639 | 2007-04-03 22:26:41 +1000 | [diff] [blame] | 184 | prop = of_get_property(np, "linebytes", NULL); |
Benjamin Herrenschmidt | 441cbd8 | 2006-10-26 15:38:10 +1000 | [diff] [blame] | 185 | if (prop && *prop != 0xffffffffu) |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 186 | pitch = *prop; |
| 187 | if (pitch == 1) |
| 188 | pitch = 0x1000; |
Benjamin Herrenschmidt | b7a2da1 | 2007-11-13 13:46:52 +1100 | [diff] [blame] | 189 | prop = of_get_property(np, "linux,bootx-addr", NULL); |
| 190 | if (prop == NULL) |
| 191 | prop = of_get_property(np, "address", NULL); |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 192 | if (prop) |
| 193 | address = *prop; |
| 194 | |
Benjamin Herrenschmidt | 51d3082 | 2005-11-23 17:57:25 +1100 | [diff] [blame] | 195 | /* FIXME: Add support for PCI reg properties. Right now, only |
| 196 | * reliable on macs |
| 197 | */ |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 198 | if (address == 0) |
| 199 | return -EINVAL; |
| 200 | |
| 201 | g_loc_X = 0; |
| 202 | g_loc_Y = 0; |
| 203 | g_max_loc_X = width / 8; |
| 204 | g_max_loc_Y = height / 16; |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 205 | dispDeviceBase = (unsigned char *)address; |
| 206 | dispDeviceRowBytes = pitch; |
Benjamin Herrenschmidt | ab13446 | 2006-07-03 17:19:48 +1000 | [diff] [blame] | 207 | dispDeviceDepth = depth == 15 ? 16 : depth; |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 208 | dispDeviceRect[0] = dispDeviceRect[1] = 0; |
| 209 | dispDeviceRect[2] = width; |
| 210 | dispDeviceRect[3] = height; |
| 211 | |
| 212 | map_boot_text(); |
| 213 | |
| 214 | return 0; |
| 215 | } |
| 216 | |
Benjamin Herrenschmidt | 51d3082 | 2005-11-23 17:57:25 +1100 | [diff] [blame] | 217 | int __init btext_find_display(int allow_nonstdout) |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 218 | { |
Jeremy Kerr | a7f67bd | 2006-07-12 15:35:54 +1000 | [diff] [blame] | 219 | const char *name; |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 220 | struct device_node *np = NULL; |
| 221 | int rc = -ENODEV; |
| 222 | |
Stephen Rothwell | e2eb639 | 2007-04-03 22:26:41 +1000 | [diff] [blame] | 223 | name = of_get_property(of_chosen, "linux,stdout-path", NULL); |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 224 | if (name != NULL) { |
| 225 | np = of_find_node_by_path(name); |
| 226 | if (np != NULL) { |
| 227 | if (strcmp(np->type, "display") != 0) { |
| 228 | printk("boot stdout isn't a display !\n"); |
| 229 | of_node_put(np); |
| 230 | np = NULL; |
| 231 | } |
| 232 | } |
| 233 | } |
| 234 | if (np) |
| 235 | rc = btext_initialize(np); |
Benjamin Herrenschmidt | 51d3082 | 2005-11-23 17:57:25 +1100 | [diff] [blame] | 236 | if (rc == 0 || !allow_nonstdout) |
| 237 | return rc; |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 238 | |
Cyrill Gorcunov | 3329c0d | 2007-11-30 06:45:47 +1100 | [diff] [blame] | 239 | for_each_node_by_type(np, "display") { |
Stephen Rothwell | e2eb639 | 2007-04-03 22:26:41 +1000 | [diff] [blame] | 240 | if (of_get_property(np, "linux,opened", NULL)) { |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 241 | printk("trying %s ...\n", np->full_name); |
| 242 | rc = btext_initialize(np); |
| 243 | printk("result: %d\n", rc); |
| 244 | } |
| 245 | if (rc == 0) |
Benjamin Herrenschmidt | 51d3082 | 2005-11-23 17:57:25 +1100 | [diff] [blame] | 246 | break; |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 247 | } |
Benjamin Herrenschmidt | 51d3082 | 2005-11-23 17:57:25 +1100 | [diff] [blame] | 248 | return rc; |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 249 | } |
| 250 | |
| 251 | /* Calc the base address of a given point (x,y) */ |
| 252 | static unsigned char * calc_base(int x, int y) |
| 253 | { |
| 254 | unsigned char *base; |
| 255 | |
| 256 | base = logicalDisplayBase; |
| 257 | if (base == 0) |
| 258 | base = dispDeviceBase; |
| 259 | base += (x + dispDeviceRect[0]) * (dispDeviceDepth >> 3); |
| 260 | base += (y + dispDeviceRect[1]) * dispDeviceRowBytes; |
| 261 | return base; |
| 262 | } |
| 263 | |
| 264 | /* Adjust the display to a new resolution */ |
| 265 | void btext_update_display(unsigned long phys, int width, int height, |
| 266 | int depth, int pitch) |
| 267 | { |
| 268 | if (dispDeviceBase == 0) |
| 269 | return; |
| 270 | |
| 271 | /* check it's the same frame buffer (within 256MB) */ |
| 272 | if ((phys ^ (unsigned long)dispDeviceBase) & 0xf0000000) |
| 273 | return; |
| 274 | |
| 275 | dispDeviceBase = (__u8 *) phys; |
| 276 | dispDeviceRect[0] = 0; |
| 277 | dispDeviceRect[1] = 0; |
| 278 | dispDeviceRect[2] = width; |
| 279 | dispDeviceRect[3] = height; |
| 280 | dispDeviceDepth = depth; |
| 281 | dispDeviceRowBytes = pitch; |
| 282 | if (boot_text_mapped) { |
| 283 | iounmap(logicalDisplayBase); |
| 284 | boot_text_mapped = 0; |
| 285 | } |
| 286 | map_boot_text(); |
| 287 | g_loc_X = 0; |
| 288 | g_loc_Y = 0; |
| 289 | g_max_loc_X = width / 8; |
| 290 | g_max_loc_Y = height / 16; |
| 291 | } |
| 292 | EXPORT_SYMBOL(btext_update_display); |
| 293 | |
| 294 | void btext_clearscreen(void) |
| 295 | { |
Benjamin Herrenschmidt | 51d3082 | 2005-11-23 17:57:25 +1100 | [diff] [blame] | 296 | unsigned int *base = (unsigned int *)calc_base(0, 0); |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 297 | unsigned long width = ((dispDeviceRect[2] - dispDeviceRect[0]) * |
Benjamin Herrenschmidt | 51d3082 | 2005-11-23 17:57:25 +1100 | [diff] [blame] | 298 | (dispDeviceDepth >> 3)) >> 2; |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 299 | int i,j; |
| 300 | |
| 301 | for (i=0; i<(dispDeviceRect[3] - dispDeviceRect[1]); i++) |
| 302 | { |
Benjamin Herrenschmidt | 51d3082 | 2005-11-23 17:57:25 +1100 | [diff] [blame] | 303 | unsigned int *ptr = base; |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 304 | for(j=width; j; --j) |
| 305 | *(ptr++) = 0; |
Benjamin Herrenschmidt | 51d3082 | 2005-11-23 17:57:25 +1100 | [diff] [blame] | 306 | base += (dispDeviceRowBytes >> 2); |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 307 | } |
| 308 | } |
| 309 | |
Benjamin Herrenschmidt | 51d3082 | 2005-11-23 17:57:25 +1100 | [diff] [blame] | 310 | void btext_flushscreen(void) |
| 311 | { |
| 312 | unsigned int *base = (unsigned int *)calc_base(0, 0); |
| 313 | unsigned long width = ((dispDeviceRect[2] - dispDeviceRect[0]) * |
| 314 | (dispDeviceDepth >> 3)) >> 2; |
| 315 | int i,j; |
| 316 | |
| 317 | for (i=0; i < (dispDeviceRect[3] - dispDeviceRect[1]); i++) |
| 318 | { |
| 319 | unsigned int *ptr = base; |
| 320 | for(j = width; j > 0; j -= 8) { |
| 321 | __asm__ __volatile__ ("dcbst 0,%0" :: "r" (ptr)); |
| 322 | ptr += 8; |
| 323 | } |
| 324 | base += (dispDeviceRowBytes >> 2); |
| 325 | } |
| 326 | __asm__ __volatile__ ("sync" ::: "memory"); |
| 327 | } |
| 328 | |
| 329 | void btext_flushline(void) |
| 330 | { |
| 331 | unsigned int *base = (unsigned int *)calc_base(0, g_loc_Y << 4); |
| 332 | unsigned long width = ((dispDeviceRect[2] - dispDeviceRect[0]) * |
| 333 | (dispDeviceDepth >> 3)) >> 2; |
| 334 | int i,j; |
| 335 | |
| 336 | for (i=0; i < 16; i++) |
| 337 | { |
| 338 | unsigned int *ptr = base; |
| 339 | for(j = width; j > 0; j -= 8) { |
| 340 | __asm__ __volatile__ ("dcbst 0,%0" :: "r" (ptr)); |
| 341 | ptr += 8; |
| 342 | } |
| 343 | base += (dispDeviceRowBytes >> 2); |
| 344 | } |
| 345 | __asm__ __volatile__ ("sync" ::: "memory"); |
| 346 | } |
| 347 | |
| 348 | |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 349 | #ifndef NO_SCROLL |
| 350 | static void scrollscreen(void) |
| 351 | { |
Benjamin Herrenschmidt | 51d3082 | 2005-11-23 17:57:25 +1100 | [diff] [blame] | 352 | unsigned int *src = (unsigned int *)calc_base(0,16); |
| 353 | unsigned int *dst = (unsigned int *)calc_base(0,0); |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 354 | unsigned long width = ((dispDeviceRect[2] - dispDeviceRect[0]) * |
Benjamin Herrenschmidt | 51d3082 | 2005-11-23 17:57:25 +1100 | [diff] [blame] | 355 | (dispDeviceDepth >> 3)) >> 2; |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 356 | int i,j; |
| 357 | |
| 358 | for (i=0; i<(dispDeviceRect[3] - dispDeviceRect[1] - 16); i++) |
| 359 | { |
Benjamin Herrenschmidt | 51d3082 | 2005-11-23 17:57:25 +1100 | [diff] [blame] | 360 | unsigned int *src_ptr = src; |
| 361 | unsigned int *dst_ptr = dst; |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 362 | for(j=width; j; --j) |
| 363 | *(dst_ptr++) = *(src_ptr++); |
Benjamin Herrenschmidt | 51d3082 | 2005-11-23 17:57:25 +1100 | [diff] [blame] | 364 | src += (dispDeviceRowBytes >> 2); |
| 365 | dst += (dispDeviceRowBytes >> 2); |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 366 | } |
| 367 | for (i=0; i<16; i++) |
| 368 | { |
Benjamin Herrenschmidt | 51d3082 | 2005-11-23 17:57:25 +1100 | [diff] [blame] | 369 | unsigned int *dst_ptr = dst; |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 370 | for(j=width; j; --j) |
| 371 | *(dst_ptr++) = 0; |
Benjamin Herrenschmidt | 51d3082 | 2005-11-23 17:57:25 +1100 | [diff] [blame] | 372 | dst += (dispDeviceRowBytes >> 2); |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 373 | } |
| 374 | } |
| 375 | #endif /* ndef NO_SCROLL */ |
| 376 | |
| 377 | void btext_drawchar(char c) |
| 378 | { |
| 379 | int cline = 0; |
| 380 | #ifdef NO_SCROLL |
| 381 | int x; |
| 382 | #endif |
| 383 | if (!boot_text_mapped) |
| 384 | return; |
| 385 | |
| 386 | switch (c) { |
| 387 | case '\b': |
| 388 | if (g_loc_X > 0) |
| 389 | --g_loc_X; |
| 390 | break; |
| 391 | case '\t': |
| 392 | g_loc_X = (g_loc_X & -8) + 8; |
| 393 | break; |
| 394 | case '\r': |
| 395 | g_loc_X = 0; |
| 396 | break; |
| 397 | case '\n': |
| 398 | g_loc_X = 0; |
| 399 | g_loc_Y++; |
| 400 | cline = 1; |
| 401 | break; |
| 402 | default: |
| 403 | draw_byte(c, g_loc_X++, g_loc_Y); |
| 404 | } |
| 405 | if (g_loc_X >= g_max_loc_X) { |
| 406 | g_loc_X = 0; |
| 407 | g_loc_Y++; |
| 408 | cline = 1; |
| 409 | } |
| 410 | #ifndef NO_SCROLL |
| 411 | while (g_loc_Y >= g_max_loc_Y) { |
| 412 | scrollscreen(); |
| 413 | g_loc_Y--; |
| 414 | } |
| 415 | #else |
| 416 | /* wrap around from bottom to top of screen so we don't |
| 417 | waste time scrolling each line. -- paulus. */ |
| 418 | if (g_loc_Y >= g_max_loc_Y) |
| 419 | g_loc_Y = 0; |
| 420 | if (cline) { |
| 421 | for (x = 0; x < g_max_loc_X; ++x) |
| 422 | draw_byte(' ', x, g_loc_Y); |
| 423 | } |
| 424 | #endif |
| 425 | } |
| 426 | |
| 427 | void btext_drawstring(const char *c) |
| 428 | { |
| 429 | if (!boot_text_mapped) |
| 430 | return; |
| 431 | while (*c) |
| 432 | btext_drawchar(*c++); |
| 433 | } |
| 434 | |
Benjamin Herrenschmidt | 51d3082 | 2005-11-23 17:57:25 +1100 | [diff] [blame] | 435 | void btext_drawtext(const char *c, unsigned int len) |
| 436 | { |
| 437 | if (!boot_text_mapped) |
| 438 | return; |
| 439 | while (len--) |
| 440 | btext_drawchar(*c++); |
| 441 | } |
| 442 | |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 443 | void btext_drawhex(unsigned long v) |
| 444 | { |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 445 | if (!boot_text_mapped) |
| 446 | return; |
| 447 | #ifdef CONFIG_PPC64 |
Harvey Harrison | 542ad5d | 2008-07-31 05:29:03 +1000 | [diff] [blame] | 448 | btext_drawchar(hex_asc_hi(v >> 56)); |
| 449 | btext_drawchar(hex_asc_lo(v >> 56)); |
| 450 | btext_drawchar(hex_asc_hi(v >> 48)); |
| 451 | btext_drawchar(hex_asc_lo(v >> 48)); |
| 452 | btext_drawchar(hex_asc_hi(v >> 40)); |
| 453 | btext_drawchar(hex_asc_lo(v >> 40)); |
| 454 | btext_drawchar(hex_asc_hi(v >> 32)); |
| 455 | btext_drawchar(hex_asc_lo(v >> 32)); |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 456 | #endif |
Harvey Harrison | 542ad5d | 2008-07-31 05:29:03 +1000 | [diff] [blame] | 457 | btext_drawchar(hex_asc_hi(v >> 24)); |
| 458 | btext_drawchar(hex_asc_lo(v >> 24)); |
| 459 | btext_drawchar(hex_asc_hi(v >> 16)); |
| 460 | btext_drawchar(hex_asc_lo(v >> 16)); |
| 461 | btext_drawchar(hex_asc_hi(v >> 8)); |
| 462 | btext_drawchar(hex_asc_lo(v >> 8)); |
| 463 | btext_drawchar(hex_asc_hi(v)); |
| 464 | btext_drawchar(hex_asc_lo(v)); |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 465 | btext_drawchar(' '); |
| 466 | } |
| 467 | |
| 468 | static void draw_byte(unsigned char c, long locX, long locY) |
| 469 | { |
| 470 | unsigned char *base = calc_base(locX << 3, locY << 4); |
| 471 | unsigned char *font = &vga_font[((unsigned int)c) * 16]; |
| 472 | int rb = dispDeviceRowBytes; |
| 473 | |
| 474 | switch(dispDeviceDepth) { |
| 475 | case 24: |
| 476 | case 32: |
| 477 | draw_byte_32(font, (unsigned int *)base, rb); |
| 478 | break; |
| 479 | case 15: |
| 480 | case 16: |
| 481 | draw_byte_16(font, (unsigned int *)base, rb); |
| 482 | break; |
| 483 | case 8: |
| 484 | draw_byte_8(font, (unsigned int *)base, rb); |
| 485 | break; |
| 486 | } |
| 487 | } |
| 488 | |
| 489 | static unsigned int expand_bits_8[16] = { |
| 490 | 0x00000000, |
| 491 | 0x000000ff, |
| 492 | 0x0000ff00, |
| 493 | 0x0000ffff, |
| 494 | 0x00ff0000, |
| 495 | 0x00ff00ff, |
| 496 | 0x00ffff00, |
| 497 | 0x00ffffff, |
| 498 | 0xff000000, |
| 499 | 0xff0000ff, |
| 500 | 0xff00ff00, |
| 501 | 0xff00ffff, |
| 502 | 0xffff0000, |
| 503 | 0xffff00ff, |
| 504 | 0xffffff00, |
| 505 | 0xffffffff |
| 506 | }; |
| 507 | |
| 508 | static unsigned int expand_bits_16[4] = { |
| 509 | 0x00000000, |
| 510 | 0x0000ffff, |
| 511 | 0xffff0000, |
| 512 | 0xffffffff |
| 513 | }; |
| 514 | |
| 515 | |
| 516 | static void draw_byte_32(unsigned char *font, unsigned int *base, int rb) |
| 517 | { |
| 518 | int l, bits; |
| 519 | int fg = 0xFFFFFFFFUL; |
| 520 | int bg = 0x00000000UL; |
| 521 | |
| 522 | for (l = 0; l < 16; ++l) |
| 523 | { |
| 524 | bits = *font++; |
| 525 | base[0] = (-(bits >> 7) & fg) ^ bg; |
| 526 | base[1] = (-((bits >> 6) & 1) & fg) ^ bg; |
| 527 | base[2] = (-((bits >> 5) & 1) & fg) ^ bg; |
| 528 | base[3] = (-((bits >> 4) & 1) & fg) ^ bg; |
| 529 | base[4] = (-((bits >> 3) & 1) & fg) ^ bg; |
| 530 | base[5] = (-((bits >> 2) & 1) & fg) ^ bg; |
| 531 | base[6] = (-((bits >> 1) & 1) & fg) ^ bg; |
| 532 | base[7] = (-(bits & 1) & fg) ^ bg; |
| 533 | base = (unsigned int *) ((char *)base + rb); |
| 534 | } |
| 535 | } |
| 536 | |
| 537 | static void draw_byte_16(unsigned char *font, unsigned int *base, int rb) |
| 538 | { |
| 539 | int l, bits; |
| 540 | int fg = 0xFFFFFFFFUL; |
| 541 | int bg = 0x00000000UL; |
| 542 | unsigned int *eb = (int *)expand_bits_16; |
| 543 | |
| 544 | for (l = 0; l < 16; ++l) |
| 545 | { |
| 546 | bits = *font++; |
| 547 | base[0] = (eb[bits >> 6] & fg) ^ bg; |
| 548 | base[1] = (eb[(bits >> 4) & 3] & fg) ^ bg; |
| 549 | base[2] = (eb[(bits >> 2) & 3] & fg) ^ bg; |
| 550 | base[3] = (eb[bits & 3] & fg) ^ bg; |
| 551 | base = (unsigned int *) ((char *)base + rb); |
| 552 | } |
| 553 | } |
| 554 | |
| 555 | static void draw_byte_8(unsigned char *font, unsigned int *base, int rb) |
| 556 | { |
| 557 | int l, bits; |
| 558 | int fg = 0x0F0F0F0FUL; |
| 559 | int bg = 0x00000000UL; |
| 560 | unsigned int *eb = (int *)expand_bits_8; |
| 561 | |
| 562 | for (l = 0; l < 16; ++l) |
| 563 | { |
| 564 | bits = *font++; |
| 565 | base[0] = (eb[bits >> 4] & fg) ^ bg; |
| 566 | base[1] = (eb[bits & 0xf] & fg) ^ bg; |
| 567 | base = (unsigned int *) ((char *)base + rb); |
| 568 | } |
| 569 | } |
| 570 | |
| 571 | static unsigned char vga_font[cmapsz] = { |
| 572 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 573 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, 0x81, 0xa5, 0x81, 0x81, 0xbd, |
| 574 | 0x99, 0x81, 0x81, 0x7e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, 0xff, |
| 575 | 0xdb, 0xff, 0xff, 0xc3, 0xe7, 0xff, 0xff, 0x7e, 0x00, 0x00, 0x00, 0x00, |
| 576 | 0x00, 0x00, 0x00, 0x00, 0x6c, 0xfe, 0xfe, 0xfe, 0xfe, 0x7c, 0x38, 0x10, |
| 577 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x38, 0x7c, 0xfe, |
| 578 | 0x7c, 0x38, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, |
| 579 | 0x3c, 0x3c, 0xe7, 0xe7, 0xe7, 0x18, 0x18, 0x3c, 0x00, 0x00, 0x00, 0x00, |
| 580 | 0x00, 0x00, 0x00, 0x18, 0x3c, 0x7e, 0xff, 0xff, 0x7e, 0x18, 0x18, 0x3c, |
| 581 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x3c, |
| 582 | 0x3c, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, |
| 583 | 0xff, 0xff, 0xe7, 0xc3, 0xc3, 0xe7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, |
| 584 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x66, 0x42, 0x42, 0x66, 0x3c, 0x00, |
| 585 | 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc3, 0x99, 0xbd, |
| 586 | 0xbd, 0x99, 0xc3, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x1e, 0x0e, |
| 587 | 0x1a, 0x32, 0x78, 0xcc, 0xcc, 0xcc, 0xcc, 0x78, 0x00, 0x00, 0x00, 0x00, |
| 588 | 0x00, 0x00, 0x3c, 0x66, 0x66, 0x66, 0x66, 0x3c, 0x18, 0x7e, 0x18, 0x18, |
| 589 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x33, 0x3f, 0x30, 0x30, 0x30, |
| 590 | 0x30, 0x70, 0xf0, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0x63, |
| 591 | 0x7f, 0x63, 0x63, 0x63, 0x63, 0x67, 0xe7, 0xe6, 0xc0, 0x00, 0x00, 0x00, |
| 592 | 0x00, 0x00, 0x00, 0x18, 0x18, 0xdb, 0x3c, 0xe7, 0x3c, 0xdb, 0x18, 0x18, |
| 593 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xc0, 0xe0, 0xf0, 0xf8, 0xfe, 0xf8, |
| 594 | 0xf0, 0xe0, 0xc0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x06, 0x0e, |
| 595 | 0x1e, 0x3e, 0xfe, 0x3e, 0x1e, 0x0e, 0x06, 0x02, 0x00, 0x00, 0x00, 0x00, |
| 596 | 0x00, 0x00, 0x18, 0x3c, 0x7e, 0x18, 0x18, 0x18, 0x7e, 0x3c, 0x18, 0x00, |
| 597 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, |
| 598 | 0x66, 0x00, 0x66, 0x66, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xdb, |
| 599 | 0xdb, 0xdb, 0x7b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x00, 0x00, 0x00, 0x00, |
| 600 | 0x00, 0x7c, 0xc6, 0x60, 0x38, 0x6c, 0xc6, 0xc6, 0x6c, 0x38, 0x0c, 0xc6, |
| 601 | 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 602 | 0xfe, 0xfe, 0xfe, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x3c, |
| 603 | 0x7e, 0x18, 0x18, 0x18, 0x7e, 0x3c, 0x18, 0x7e, 0x00, 0x00, 0x00, 0x00, |
| 604 | 0x00, 0x00, 0x18, 0x3c, 0x7e, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, |
| 605 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, |
| 606 | 0x18, 0x7e, 0x3c, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 607 | 0x00, 0x18, 0x0c, 0xfe, 0x0c, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 608 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x60, 0xfe, 0x60, 0x30, 0x00, 0x00, |
| 609 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xc0, |
| 610 | 0xc0, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 611 | 0x00, 0x24, 0x66, 0xff, 0x66, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 612 | 0x00, 0x00, 0x00, 0x00, 0x10, 0x38, 0x38, 0x7c, 0x7c, 0xfe, 0xfe, 0x00, |
| 613 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xfe, 0x7c, 0x7c, |
| 614 | 0x38, 0x38, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 615 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 616 | 0x00, 0x00, 0x18, 0x3c, 0x3c, 0x3c, 0x18, 0x18, 0x18, 0x00, 0x18, 0x18, |
| 617 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x66, 0x66, 0x66, 0x24, 0x00, 0x00, 0x00, |
| 618 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6c, |
| 619 | 0x6c, 0xfe, 0x6c, 0x6c, 0x6c, 0xfe, 0x6c, 0x6c, 0x00, 0x00, 0x00, 0x00, |
| 620 | 0x18, 0x18, 0x7c, 0xc6, 0xc2, 0xc0, 0x7c, 0x06, 0x06, 0x86, 0xc6, 0x7c, |
| 621 | 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc2, 0xc6, 0x0c, 0x18, |
| 622 | 0x30, 0x60, 0xc6, 0x86, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x6c, |
| 623 | 0x6c, 0x38, 0x76, 0xdc, 0xcc, 0xcc, 0xcc, 0x76, 0x00, 0x00, 0x00, 0x00, |
| 624 | 0x00, 0x30, 0x30, 0x30, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 625 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x18, 0x30, 0x30, 0x30, 0x30, |
| 626 | 0x30, 0x30, 0x18, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x18, |
| 627 | 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x18, 0x30, 0x00, 0x00, 0x00, 0x00, |
| 628 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x66, 0x3c, 0xff, 0x3c, 0x66, 0x00, 0x00, |
| 629 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x7e, |
| 630 | 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 631 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x18, 0x30, 0x00, 0x00, 0x00, |
| 632 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, 0x00, |
| 633 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 634 | 0x00, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 635 | 0x02, 0x06, 0x0c, 0x18, 0x30, 0x60, 0xc0, 0x80, 0x00, 0x00, 0x00, 0x00, |
| 636 | 0x00, 0x00, 0x7c, 0xc6, 0xc6, 0xce, 0xde, 0xf6, 0xe6, 0xc6, 0xc6, 0x7c, |
| 637 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x38, 0x78, 0x18, 0x18, 0x18, |
| 638 | 0x18, 0x18, 0x18, 0x7e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0xc6, |
| 639 | 0x06, 0x0c, 0x18, 0x30, 0x60, 0xc0, 0xc6, 0xfe, 0x00, 0x00, 0x00, 0x00, |
| 640 | 0x00, 0x00, 0x7c, 0xc6, 0x06, 0x06, 0x3c, 0x06, 0x06, 0x06, 0xc6, 0x7c, |
| 641 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x1c, 0x3c, 0x6c, 0xcc, 0xfe, |
| 642 | 0x0c, 0x0c, 0x0c, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xc0, |
| 643 | 0xc0, 0xc0, 0xfc, 0x06, 0x06, 0x06, 0xc6, 0x7c, 0x00, 0x00, 0x00, 0x00, |
| 644 | 0x00, 0x00, 0x38, 0x60, 0xc0, 0xc0, 0xfc, 0xc6, 0xc6, 0xc6, 0xc6, 0x7c, |
| 645 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xc6, 0x06, 0x06, 0x0c, 0x18, |
| 646 | 0x30, 0x30, 0x30, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0xc6, |
| 647 | 0xc6, 0xc6, 0x7c, 0xc6, 0xc6, 0xc6, 0xc6, 0x7c, 0x00, 0x00, 0x00, 0x00, |
| 648 | 0x00, 0x00, 0x7c, 0xc6, 0xc6, 0xc6, 0x7e, 0x06, 0x06, 0x06, 0x0c, 0x78, |
| 649 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x00, 0x00, |
| 650 | 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 651 | 0x18, 0x18, 0x00, 0x00, 0x00, 0x18, 0x18, 0x30, 0x00, 0x00, 0x00, 0x00, |
| 652 | 0x00, 0x00, 0x00, 0x06, 0x0c, 0x18, 0x30, 0x60, 0x30, 0x18, 0x0c, 0x06, |
| 653 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, 0x00, 0x00, |
| 654 | 0x7e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, |
| 655 | 0x30, 0x18, 0x0c, 0x06, 0x0c, 0x18, 0x30, 0x60, 0x00, 0x00, 0x00, 0x00, |
| 656 | 0x00, 0x00, 0x7c, 0xc6, 0xc6, 0x0c, 0x18, 0x18, 0x18, 0x00, 0x18, 0x18, |
| 657 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0xc6, 0xc6, 0xc6, 0xde, 0xde, |
| 658 | 0xde, 0xdc, 0xc0, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x38, |
| 659 | 0x6c, 0xc6, 0xc6, 0xfe, 0xc6, 0xc6, 0xc6, 0xc6, 0x00, 0x00, 0x00, 0x00, |
| 660 | 0x00, 0x00, 0xfc, 0x66, 0x66, 0x66, 0x7c, 0x66, 0x66, 0x66, 0x66, 0xfc, |
| 661 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x66, 0xc2, 0xc0, 0xc0, 0xc0, |
| 662 | 0xc0, 0xc2, 0x66, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x6c, |
| 663 | 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x6c, 0xf8, 0x00, 0x00, 0x00, 0x00, |
| 664 | 0x00, 0x00, 0xfe, 0x66, 0x62, 0x68, 0x78, 0x68, 0x60, 0x62, 0x66, 0xfe, |
| 665 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x66, 0x62, 0x68, 0x78, 0x68, |
| 666 | 0x60, 0x60, 0x60, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x66, |
| 667 | 0xc2, 0xc0, 0xc0, 0xde, 0xc6, 0xc6, 0x66, 0x3a, 0x00, 0x00, 0x00, 0x00, |
| 668 | 0x00, 0x00, 0xc6, 0xc6, 0xc6, 0xc6, 0xfe, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, |
| 669 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x18, 0x18, 0x18, 0x18, 0x18, |
| 670 | 0x18, 0x18, 0x18, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x0c, |
| 671 | 0x0c, 0x0c, 0x0c, 0x0c, 0xcc, 0xcc, 0xcc, 0x78, 0x00, 0x00, 0x00, 0x00, |
| 672 | 0x00, 0x00, 0xe6, 0x66, 0x66, 0x6c, 0x78, 0x78, 0x6c, 0x66, 0x66, 0xe6, |
| 673 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x60, 0x60, 0x60, 0x60, 0x60, |
| 674 | 0x60, 0x62, 0x66, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc3, 0xe7, |
| 675 | 0xff, 0xff, 0xdb, 0xc3, 0xc3, 0xc3, 0xc3, 0xc3, 0x00, 0x00, 0x00, 0x00, |
| 676 | 0x00, 0x00, 0xc6, 0xe6, 0xf6, 0xfe, 0xde, 0xce, 0xc6, 0xc6, 0xc6, 0xc6, |
| 677 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, |
| 678 | 0xc6, 0xc6, 0xc6, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x66, |
| 679 | 0x66, 0x66, 0x7c, 0x60, 0x60, 0x60, 0x60, 0xf0, 0x00, 0x00, 0x00, 0x00, |
| 680 | 0x00, 0x00, 0x7c, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xd6, 0xde, 0x7c, |
| 681 | 0x0c, 0x0e, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x66, 0x66, 0x66, 0x7c, 0x6c, |
| 682 | 0x66, 0x66, 0x66, 0xe6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0xc6, |
| 683 | 0xc6, 0x60, 0x38, 0x0c, 0x06, 0xc6, 0xc6, 0x7c, 0x00, 0x00, 0x00, 0x00, |
| 684 | 0x00, 0x00, 0xff, 0xdb, 0x99, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3c, |
| 685 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, |
| 686 | 0xc6, 0xc6, 0xc6, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc3, 0xc3, |
| 687 | 0xc3, 0xc3, 0xc3, 0xc3, 0xc3, 0x66, 0x3c, 0x18, 0x00, 0x00, 0x00, 0x00, |
| 688 | 0x00, 0x00, 0xc3, 0xc3, 0xc3, 0xc3, 0xc3, 0xdb, 0xdb, 0xff, 0x66, 0x66, |
| 689 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc3, 0xc3, 0x66, 0x3c, 0x18, 0x18, |
| 690 | 0x3c, 0x66, 0xc3, 0xc3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc3, 0xc3, |
| 691 | 0xc3, 0x66, 0x3c, 0x18, 0x18, 0x18, 0x18, 0x3c, 0x00, 0x00, 0x00, 0x00, |
| 692 | 0x00, 0x00, 0xff, 0xc3, 0x86, 0x0c, 0x18, 0x30, 0x60, 0xc1, 0xc3, 0xff, |
| 693 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x30, 0x30, 0x30, 0x30, 0x30, |
| 694 | 0x30, 0x30, 0x30, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, |
| 695 | 0xc0, 0xe0, 0x70, 0x38, 0x1c, 0x0e, 0x06, 0x02, 0x00, 0x00, 0x00, 0x00, |
| 696 | 0x00, 0x00, 0x3c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x3c, |
| 697 | 0x00, 0x00, 0x00, 0x00, 0x10, 0x38, 0x6c, 0xc6, 0x00, 0x00, 0x00, 0x00, |
| 698 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 699 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, |
| 700 | 0x30, 0x30, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 701 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x0c, 0x7c, |
| 702 | 0xcc, 0xcc, 0xcc, 0x76, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x60, |
| 703 | 0x60, 0x78, 0x6c, 0x66, 0x66, 0x66, 0x66, 0x7c, 0x00, 0x00, 0x00, 0x00, |
| 704 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0xc6, 0xc0, 0xc0, 0xc0, 0xc6, 0x7c, |
| 705 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x0c, 0x0c, 0x3c, 0x6c, 0xcc, |
| 706 | 0xcc, 0xcc, 0xcc, 0x76, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 707 | 0x00, 0x7c, 0xc6, 0xfe, 0xc0, 0xc0, 0xc6, 0x7c, 0x00, 0x00, 0x00, 0x00, |
| 708 | 0x00, 0x00, 0x38, 0x6c, 0x64, 0x60, 0xf0, 0x60, 0x60, 0x60, 0x60, 0xf0, |
| 709 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0xcc, 0xcc, |
| 710 | 0xcc, 0xcc, 0xcc, 0x7c, 0x0c, 0xcc, 0x78, 0x00, 0x00, 0x00, 0xe0, 0x60, |
| 711 | 0x60, 0x6c, 0x76, 0x66, 0x66, 0x66, 0x66, 0xe6, 0x00, 0x00, 0x00, 0x00, |
| 712 | 0x00, 0x00, 0x18, 0x18, 0x00, 0x38, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3c, |
| 713 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x06, 0x00, 0x0e, 0x06, 0x06, |
| 714 | 0x06, 0x06, 0x06, 0x06, 0x66, 0x66, 0x3c, 0x00, 0x00, 0x00, 0xe0, 0x60, |
| 715 | 0x60, 0x66, 0x6c, 0x78, 0x78, 0x6c, 0x66, 0xe6, 0x00, 0x00, 0x00, 0x00, |
| 716 | 0x00, 0x00, 0x38, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3c, |
| 717 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe6, 0xff, 0xdb, |
| 718 | 0xdb, 0xdb, 0xdb, 0xdb, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 719 | 0x00, 0xdc, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x00, 0x00, 0x00, 0x00, |
| 720 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x7c, |
| 721 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xdc, 0x66, 0x66, |
| 722 | 0x66, 0x66, 0x66, 0x7c, 0x60, 0x60, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 723 | 0x00, 0x76, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0x7c, 0x0c, 0x0c, 0x1e, 0x00, |
| 724 | 0x00, 0x00, 0x00, 0x00, 0x00, 0xdc, 0x76, 0x66, 0x60, 0x60, 0x60, 0xf0, |
| 725 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0xc6, 0x60, |
| 726 | 0x38, 0x0c, 0xc6, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x30, |
| 727 | 0x30, 0xfc, 0x30, 0x30, 0x30, 0x30, 0x36, 0x1c, 0x00, 0x00, 0x00, 0x00, |
| 728 | 0x00, 0x00, 0x00, 0x00, 0x00, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0x76, |
| 729 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc3, 0xc3, 0xc3, |
| 730 | 0xc3, 0x66, 0x3c, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 731 | 0x00, 0xc3, 0xc3, 0xc3, 0xdb, 0xdb, 0xff, 0x66, 0x00, 0x00, 0x00, 0x00, |
| 732 | 0x00, 0x00, 0x00, 0x00, 0x00, 0xc3, 0x66, 0x3c, 0x18, 0x3c, 0x66, 0xc3, |
| 733 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc6, 0xc6, 0xc6, |
| 734 | 0xc6, 0xc6, 0xc6, 0x7e, 0x06, 0x0c, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 735 | 0x00, 0xfe, 0xcc, 0x18, 0x30, 0x60, 0xc6, 0xfe, 0x00, 0x00, 0x00, 0x00, |
| 736 | 0x00, 0x00, 0x0e, 0x18, 0x18, 0x18, 0x70, 0x18, 0x18, 0x18, 0x18, 0x0e, |
| 737 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x18, 0x18, 0x00, 0x18, |
| 738 | 0x18, 0x18, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x18, |
| 739 | 0x18, 0x18, 0x0e, 0x18, 0x18, 0x18, 0x18, 0x70, 0x00, 0x00, 0x00, 0x00, |
| 740 | 0x00, 0x00, 0x76, 0xdc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 741 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x38, 0x6c, 0xc6, |
| 742 | 0xc6, 0xc6, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x66, |
| 743 | 0xc2, 0xc0, 0xc0, 0xc0, 0xc2, 0x66, 0x3c, 0x0c, 0x06, 0x7c, 0x00, 0x00, |
| 744 | 0x00, 0x00, 0xcc, 0x00, 0x00, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0x76, |
| 745 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x18, 0x30, 0x00, 0x7c, 0xc6, 0xfe, |
| 746 | 0xc0, 0xc0, 0xc6, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x38, 0x6c, |
| 747 | 0x00, 0x78, 0x0c, 0x7c, 0xcc, 0xcc, 0xcc, 0x76, 0x00, 0x00, 0x00, 0x00, |
| 748 | 0x00, 0x00, 0xcc, 0x00, 0x00, 0x78, 0x0c, 0x7c, 0xcc, 0xcc, 0xcc, 0x76, |
| 749 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x30, 0x18, 0x00, 0x78, 0x0c, 0x7c, |
| 750 | 0xcc, 0xcc, 0xcc, 0x76, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x6c, 0x38, |
| 751 | 0x00, 0x78, 0x0c, 0x7c, 0xcc, 0xcc, 0xcc, 0x76, 0x00, 0x00, 0x00, 0x00, |
| 752 | 0x00, 0x00, 0x00, 0x00, 0x3c, 0x66, 0x60, 0x60, 0x66, 0x3c, 0x0c, 0x06, |
| 753 | 0x3c, 0x00, 0x00, 0x00, 0x00, 0x10, 0x38, 0x6c, 0x00, 0x7c, 0xc6, 0xfe, |
| 754 | 0xc0, 0xc0, 0xc6, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc6, 0x00, |
| 755 | 0x00, 0x7c, 0xc6, 0xfe, 0xc0, 0xc0, 0xc6, 0x7c, 0x00, 0x00, 0x00, 0x00, |
| 756 | 0x00, 0x60, 0x30, 0x18, 0x00, 0x7c, 0xc6, 0xfe, 0xc0, 0xc0, 0xc6, 0x7c, |
| 757 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x66, 0x00, 0x00, 0x38, 0x18, 0x18, |
| 758 | 0x18, 0x18, 0x18, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x3c, 0x66, |
| 759 | 0x00, 0x38, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3c, 0x00, 0x00, 0x00, 0x00, |
| 760 | 0x00, 0x60, 0x30, 0x18, 0x00, 0x38, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3c, |
| 761 | 0x00, 0x00, 0x00, 0x00, 0x00, 0xc6, 0x00, 0x10, 0x38, 0x6c, 0xc6, 0xc6, |
| 762 | 0xfe, 0xc6, 0xc6, 0xc6, 0x00, 0x00, 0x00, 0x00, 0x38, 0x6c, 0x38, 0x00, |
| 763 | 0x38, 0x6c, 0xc6, 0xc6, 0xfe, 0xc6, 0xc6, 0xc6, 0x00, 0x00, 0x00, 0x00, |
| 764 | 0x18, 0x30, 0x60, 0x00, 0xfe, 0x66, 0x60, 0x7c, 0x60, 0x60, 0x66, 0xfe, |
| 765 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6e, 0x3b, 0x1b, |
| 766 | 0x7e, 0xd8, 0xdc, 0x77, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x6c, |
| 767 | 0xcc, 0xcc, 0xfe, 0xcc, 0xcc, 0xcc, 0xcc, 0xce, 0x00, 0x00, 0x00, 0x00, |
| 768 | 0x00, 0x10, 0x38, 0x6c, 0x00, 0x7c, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x7c, |
| 769 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc6, 0x00, 0x00, 0x7c, 0xc6, 0xc6, |
| 770 | 0xc6, 0xc6, 0xc6, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x30, 0x18, |
| 771 | 0x00, 0x7c, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x7c, 0x00, 0x00, 0x00, 0x00, |
| 772 | 0x00, 0x30, 0x78, 0xcc, 0x00, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0x76, |
| 773 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x30, 0x18, 0x00, 0xcc, 0xcc, 0xcc, |
| 774 | 0xcc, 0xcc, 0xcc, 0x76, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc6, 0x00, |
| 775 | 0x00, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x7e, 0x06, 0x0c, 0x78, 0x00, |
| 776 | 0x00, 0xc6, 0x00, 0x7c, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x7c, |
| 777 | 0x00, 0x00, 0x00, 0x00, 0x00, 0xc6, 0x00, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, |
| 778 | 0xc6, 0xc6, 0xc6, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x7e, |
| 779 | 0xc3, 0xc0, 0xc0, 0xc0, 0xc3, 0x7e, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, |
| 780 | 0x00, 0x38, 0x6c, 0x64, 0x60, 0xf0, 0x60, 0x60, 0x60, 0x60, 0xe6, 0xfc, |
| 781 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc3, 0x66, 0x3c, 0x18, 0xff, 0x18, |
| 782 | 0xff, 0x18, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x66, 0x66, |
| 783 | 0x7c, 0x62, 0x66, 0x6f, 0x66, 0x66, 0x66, 0xf3, 0x00, 0x00, 0x00, 0x00, |
| 784 | 0x00, 0x0e, 0x1b, 0x18, 0x18, 0x18, 0x7e, 0x18, 0x18, 0x18, 0x18, 0x18, |
| 785 | 0xd8, 0x70, 0x00, 0x00, 0x00, 0x18, 0x30, 0x60, 0x00, 0x78, 0x0c, 0x7c, |
| 786 | 0xcc, 0xcc, 0xcc, 0x76, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x18, 0x30, |
| 787 | 0x00, 0x38, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3c, 0x00, 0x00, 0x00, 0x00, |
| 788 | 0x00, 0x18, 0x30, 0x60, 0x00, 0x7c, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x7c, |
| 789 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x30, 0x60, 0x00, 0xcc, 0xcc, 0xcc, |
| 790 | 0xcc, 0xcc, 0xcc, 0x76, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0xdc, |
| 791 | 0x00, 0xdc, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x00, 0x00, 0x00, 0x00, |
| 792 | 0x76, 0xdc, 0x00, 0xc6, 0xe6, 0xf6, 0xfe, 0xde, 0xce, 0xc6, 0xc6, 0xc6, |
| 793 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x6c, 0x6c, 0x3e, 0x00, 0x7e, 0x00, |
| 794 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x6c, 0x6c, |
| 795 | 0x38, 0x00, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 796 | 0x00, 0x00, 0x30, 0x30, 0x00, 0x30, 0x30, 0x60, 0xc0, 0xc6, 0xc6, 0x7c, |
| 797 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xc0, |
| 798 | 0xc0, 0xc0, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 799 | 0x00, 0x00, 0xfe, 0x06, 0x06, 0x06, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 800 | 0x00, 0xc0, 0xc0, 0xc2, 0xc6, 0xcc, 0x18, 0x30, 0x60, 0xce, 0x9b, 0x06, |
| 801 | 0x0c, 0x1f, 0x00, 0x00, 0x00, 0xc0, 0xc0, 0xc2, 0xc6, 0xcc, 0x18, 0x30, |
| 802 | 0x66, 0xce, 0x96, 0x3e, 0x06, 0x06, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, |
| 803 | 0x00, 0x18, 0x18, 0x18, 0x3c, 0x3c, 0x3c, 0x18, 0x00, 0x00, 0x00, 0x00, |
| 804 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x36, 0x6c, 0xd8, 0x6c, 0x36, 0x00, 0x00, |
| 805 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd8, 0x6c, 0x36, |
| 806 | 0x6c, 0xd8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x44, 0x11, 0x44, |
| 807 | 0x11, 0x44, 0x11, 0x44, 0x11, 0x44, 0x11, 0x44, 0x11, 0x44, 0x11, 0x44, |
| 808 | 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, |
| 809 | 0x55, 0xaa, 0x55, 0xaa, 0xdd, 0x77, 0xdd, 0x77, 0xdd, 0x77, 0xdd, 0x77, |
| 810 | 0xdd, 0x77, 0xdd, 0x77, 0xdd, 0x77, 0xdd, 0x77, 0x18, 0x18, 0x18, 0x18, |
| 811 | 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, |
| 812 | 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0xf8, 0x18, 0x18, 0x18, 0x18, |
| 813 | 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0xf8, 0x18, 0xf8, |
| 814 | 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x36, 0x36, 0x36, 0x36, |
| 815 | 0x36, 0x36, 0x36, 0xf6, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, |
| 816 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x36, 0x36, 0x36, 0x36, |
| 817 | 0x36, 0x36, 0x36, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x18, 0xf8, |
| 818 | 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x36, 0x36, 0x36, 0x36, |
| 819 | 0x36, 0xf6, 0x06, 0xf6, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, |
| 820 | 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, |
| 821 | 0x36, 0x36, 0x36, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x06, 0xf6, |
| 822 | 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, |
| 823 | 0x36, 0xf6, 0x06, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 824 | 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0xfe, 0x00, 0x00, 0x00, 0x00, |
| 825 | 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x18, 0x18, 0x18, 0xf8, 0x18, 0xf8, |
| 826 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 827 | 0x00, 0x00, 0x00, 0xf8, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, |
| 828 | 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x1f, 0x00, 0x00, 0x00, 0x00, |
| 829 | 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0xff, |
| 830 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 831 | 0x00, 0x00, 0x00, 0xff, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, |
| 832 | 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x1f, 0x18, 0x18, 0x18, 0x18, |
| 833 | 0x18, 0x18, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, |
| 834 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x18, 0x18, |
| 835 | 0x18, 0x18, 0x18, 0xff, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, |
| 836 | 0x18, 0x18, 0x18, 0x18, 0x18, 0x1f, 0x18, 0x1f, 0x18, 0x18, 0x18, 0x18, |
| 837 | 0x18, 0x18, 0x18, 0x18, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x37, |
| 838 | 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, |
| 839 | 0x36, 0x37, 0x30, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 840 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x30, 0x37, 0x36, 0x36, 0x36, 0x36, |
| 841 | 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0xf7, 0x00, 0xff, |
| 842 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 843 | 0x00, 0xff, 0x00, 0xf7, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, |
| 844 | 0x36, 0x36, 0x36, 0x36, 0x36, 0x37, 0x30, 0x37, 0x36, 0x36, 0x36, 0x36, |
| 845 | 0x36, 0x36, 0x36, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0xff, |
| 846 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x36, 0x36, 0x36, 0x36, |
| 847 | 0x36, 0xf7, 0x00, 0xf7, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, |
| 848 | 0x18, 0x18, 0x18, 0x18, 0x18, 0xff, 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, |
| 849 | 0x00, 0x00, 0x00, 0x00, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0xff, |
| 850 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 851 | 0x00, 0xff, 0x00, 0xff, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, |
| 852 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x36, 0x36, 0x36, 0x36, |
| 853 | 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x3f, |
| 854 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x18, 0x18, |
| 855 | 0x18, 0x1f, 0x18, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 856 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0x18, 0x1f, 0x18, 0x18, 0x18, 0x18, |
| 857 | 0x18, 0x18, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, |
| 858 | 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, |
| 859 | 0x36, 0x36, 0x36, 0xff, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, |
| 860 | 0x18, 0x18, 0x18, 0x18, 0x18, 0xff, 0x18, 0xff, 0x18, 0x18, 0x18, 0x18, |
| 861 | 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0xf8, |
| 862 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 863 | 0x00, 0x00, 0x00, 0x1f, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, |
| 864 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, |
| 865 | 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, |
| 866 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0xf0, 0xf0, 0xf0, |
| 867 | 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, |
| 868 | 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, |
| 869 | 0x0f, 0x0f, 0x0f, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, |
| 870 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 871 | 0x00, 0x76, 0xdc, 0xd8, 0xd8, 0xd8, 0xdc, 0x76, 0x00, 0x00, 0x00, 0x00, |
| 872 | 0x00, 0x00, 0x78, 0xcc, 0xcc, 0xcc, 0xd8, 0xcc, 0xc6, 0xc6, 0xc6, 0xcc, |
| 873 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xc6, 0xc6, 0xc0, 0xc0, 0xc0, |
| 874 | 0xc0, 0xc0, 0xc0, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 875 | 0xfe, 0x6c, 0x6c, 0x6c, 0x6c, 0x6c, 0x6c, 0x6c, 0x00, 0x00, 0x00, 0x00, |
| 876 | 0x00, 0x00, 0x00, 0xfe, 0xc6, 0x60, 0x30, 0x18, 0x30, 0x60, 0xc6, 0xfe, |
| 877 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, 0xd8, 0xd8, |
| 878 | 0xd8, 0xd8, 0xd8, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 879 | 0x66, 0x66, 0x66, 0x66, 0x66, 0x7c, 0x60, 0x60, 0xc0, 0x00, 0x00, 0x00, |
| 880 | 0x00, 0x00, 0x00, 0x00, 0x76, 0xdc, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, |
| 881 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, 0x18, 0x3c, 0x66, 0x66, |
| 882 | 0x66, 0x3c, 0x18, 0x7e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, |
| 883 | 0x6c, 0xc6, 0xc6, 0xfe, 0xc6, 0xc6, 0x6c, 0x38, 0x00, 0x00, 0x00, 0x00, |
| 884 | 0x00, 0x00, 0x38, 0x6c, 0xc6, 0xc6, 0xc6, 0x6c, 0x6c, 0x6c, 0x6c, 0xee, |
| 885 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x30, 0x18, 0x0c, 0x3e, 0x66, |
| 886 | 0x66, 0x66, 0x66, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 887 | 0x00, 0x7e, 0xdb, 0xdb, 0xdb, 0x7e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 888 | 0x00, 0x00, 0x00, 0x03, 0x06, 0x7e, 0xdb, 0xdb, 0xf3, 0x7e, 0x60, 0xc0, |
| 889 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x30, 0x60, 0x60, 0x7c, 0x60, |
| 890 | 0x60, 0x60, 0x30, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, |
| 891 | 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x00, 0x00, 0x00, 0x00, |
| 892 | 0x00, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0xfe, 0x00, 0x00, 0xfe, 0x00, |
| 893 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x7e, 0x18, |
| 894 | 0x18, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, |
| 895 | 0x18, 0x0c, 0x06, 0x0c, 0x18, 0x30, 0x00, 0x7e, 0x00, 0x00, 0x00, 0x00, |
| 896 | 0x00, 0x00, 0x00, 0x0c, 0x18, 0x30, 0x60, 0x30, 0x18, 0x0c, 0x00, 0x7e, |
| 897 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x1b, 0x1b, 0x1b, 0x18, 0x18, |
| 898 | 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, |
| 899 | 0x18, 0x18, 0x18, 0x18, 0xd8, 0xd8, 0xd8, 0x70, 0x00, 0x00, 0x00, 0x00, |
| 900 | 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x00, 0x7e, 0x00, 0x18, 0x18, 0x00, |
| 901 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0xdc, 0x00, |
| 902 | 0x76, 0xdc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x6c, 0x6c, |
| 903 | 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 904 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, |
| 905 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 906 | 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x0c, 0x0c, |
| 907 | 0x0c, 0x0c, 0x0c, 0xec, 0x6c, 0x6c, 0x3c, 0x1c, 0x00, 0x00, 0x00, 0x00, |
| 908 | 0x00, 0xd8, 0x6c, 0x6c, 0x6c, 0x6c, 0x6c, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 909 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0xd8, 0x30, 0x60, 0xc8, 0xf8, 0x00, |
| 910 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 911 | 0x7c, 0x7c, 0x7c, 0x7c, 0x7c, 0x7c, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 912 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 913 | 0x00, 0x00, 0x00, 0x00, |
| 914 | }; |
David Gibson | 719c91c | 2007-02-13 15:54:22 +1100 | [diff] [blame] | 915 | |
| 916 | void __init udbg_init_btext(void) |
| 917 | { |
| 918 | /* If btext is enabled, we might have a BAT setup for early display, |
| 919 | * thus we do enable some very basic udbg output |
| 920 | */ |
| 921 | udbg_putc = btext_drawchar; |
| 922 | } |