pl111.cc (9395:bf428987f54e) | pl111.cc (9415:f5d159450dfb) |
---|---|
1/* 2 * Copyright (c) 2010-2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 62 unchanged lines hidden (view full) --- 71 dmaDoneEventAll(maxOutstandingDma, this), 72 dmaDoneEventFree(maxOutstandingDma), 73 intEvent(this) 74{ 75 pioSize = 0xFFFF; 76 77 pic = simout.create(csprintf("%s.framebuffer.bmp", sys->name()), true); 78 | 1/* 2 * Copyright (c) 2010-2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 62 unchanged lines hidden (view full) --- 71 dmaDoneEventAll(maxOutstandingDma, this), 72 dmaDoneEventFree(maxOutstandingDma), 73 intEvent(this) 74{ 75 pioSize = 0xFFFF; 76 77 pic = simout.create(csprintf("%s.framebuffer.bmp", sys->name()), true); 78 |
79 const int buffer_size = LcdMaxWidth * LcdMaxHeight * sizeof(uint32_t); | |
80 dmaBuffer = new uint8_t[buffer_size]; 81 82 memset(lcdPalette, 0, sizeof(lcdPalette)); 83 memset(cursorImage, 0, sizeof(cursorImage)); 84 memset(dmaBuffer, 0, buffer_size); 85 86 for (int i = 0; i < maxOutstandingDma; ++i) 87 dmaDoneEventFree[i] = &dmaDoneEventAll[i]; --- 488 unchanged lines hidden (view full) --- 576 577 uint8_t clcdCrsrMis_serial = clcdCrsrMis; 578 SERIALIZE_SCALAR(clcdCrsrMis_serial); 579 580 SERIALIZE_SCALAR(height); 581 SERIALIZE_SCALAR(width); 582 SERIALIZE_SCALAR(bytesPerPixel); 583 | 79 dmaBuffer = new uint8_t[buffer_size]; 80 81 memset(lcdPalette, 0, sizeof(lcdPalette)); 82 memset(cursorImage, 0, sizeof(cursorImage)); 83 memset(dmaBuffer, 0, buffer_size); 84 85 for (int i = 0; i < maxOutstandingDma; ++i) 86 dmaDoneEventFree[i] = &dmaDoneEventAll[i]; --- 488 unchanged lines hidden (view full) --- 575 576 uint8_t clcdCrsrMis_serial = clcdCrsrMis; 577 SERIALIZE_SCALAR(clcdCrsrMis_serial); 578 579 SERIALIZE_SCALAR(height); 580 SERIALIZE_SCALAR(width); 581 SERIALIZE_SCALAR(bytesPerPixel); 582 |
584 SERIALIZE_ARRAY(dmaBuffer, height * width); | 583 SERIALIZE_ARRAY(dmaBuffer, buffer_size); |
585 SERIALIZE_SCALAR(startTime); 586 SERIALIZE_SCALAR(startAddr); 587 SERIALIZE_SCALAR(maxAddr); 588 SERIALIZE_SCALAR(curAddr); 589 SERIALIZE_SCALAR(waterMark); 590 SERIALIZE_SCALAR(dmaPendingNum); 591 592 Tick int_event_time = 0; --- 85 unchanged lines hidden (view full) --- 678 uint8_t clcdCrsrMis_serial; 679 UNSERIALIZE_SCALAR(clcdCrsrMis_serial); 680 clcdCrsrMis = clcdCrsrMis_serial; 681 682 UNSERIALIZE_SCALAR(height); 683 UNSERIALIZE_SCALAR(width); 684 UNSERIALIZE_SCALAR(bytesPerPixel); 685 | 584 SERIALIZE_SCALAR(startTime); 585 SERIALIZE_SCALAR(startAddr); 586 SERIALIZE_SCALAR(maxAddr); 587 SERIALIZE_SCALAR(curAddr); 588 SERIALIZE_SCALAR(waterMark); 589 SERIALIZE_SCALAR(dmaPendingNum); 590 591 Tick int_event_time = 0; --- 85 unchanged lines hidden (view full) --- 677 uint8_t clcdCrsrMis_serial; 678 UNSERIALIZE_SCALAR(clcdCrsrMis_serial); 679 clcdCrsrMis = clcdCrsrMis_serial; 680 681 UNSERIALIZE_SCALAR(height); 682 UNSERIALIZE_SCALAR(width); 683 UNSERIALIZE_SCALAR(bytesPerPixel); 684 |
686 UNSERIALIZE_ARRAY(dmaBuffer, height * width); | 685 UNSERIALIZE_ARRAY(dmaBuffer, buffer_size); |
687 UNSERIALIZE_SCALAR(startTime); 688 UNSERIALIZE_SCALAR(startAddr); 689 UNSERIALIZE_SCALAR(maxAddr); 690 UNSERIALIZE_SCALAR(curAddr); 691 UNSERIALIZE_SCALAR(waterMark); 692 UNSERIALIZE_SCALAR(dmaPendingNum); 693 694 Tick int_event_time = 0; --- 61 unchanged lines hidden --- | 686 UNSERIALIZE_SCALAR(startTime); 687 UNSERIALIZE_SCALAR(startAddr); 688 UNSERIALIZE_SCALAR(maxAddr); 689 UNSERIALIZE_SCALAR(curAddr); 690 UNSERIALIZE_SCALAR(waterMark); 691 UNSERIALIZE_SCALAR(dmaPendingNum); 692 693 Tick int_event_time = 0; --- 61 unchanged lines hidden --- |