chip.c revision 1117
290N/A * Copyright (c) 2006, 2009, Oracle and/or its affiliates. All rights reserved. 761N/A * Permission is hereby granted, free of charge, to any person obtaining a 761N/A * copy of this software and associated documentation files (the "Software"), 290N/A * to deal in the Software without restriction, including without limitation 290N/A * the rights to use, copy, modify, merge, publish, distribute, sublicense, 290N/A * and/or sell copies of the Software, and to permit persons to whom the 290N/A * Software is furnished to do so, subject to the following conditions: 290N/A * The above copyright notice and this permission notice (including the next 290N/A * paragraph) shall be included in all copies or substantial portions of the 290N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 290N/A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 290N/A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 290N/A * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 290N/A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 290N/A * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 290N/A * DEALINGS IN THE SOFTWARE. for (i = 0; i <
256; i++) {
x1 = (
unsigned int)((
width * i) /
512);
y1 = (
unsigned int)((
height * i) /
512);
k = (i<<
24 | i<<
16 | i<<
8 | i);
}
/* draw_cascaded_box() */ for (i = 0; i <
nlines; i++) {
k =
0x00af0000 | (i <<
8) | i;
for (i = 0; i <
nlines; i++) {
k =
0x00af0000 | (i <<
8) | i;
* map the registers & frame buffers memory * only support 32 bits depth for now * enable 2D, initialize command queue * Unmap the registers & frame buffers memory