1407N/A * Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved. 1117N/A * Permission is hereby granted, free of charge, to any person obtaining a 1117N/A * copy of this software and associated documentation files (the "Software"), 1117N/A * to deal in the Software without restriction, including without limitation 1117N/A * the rights to use, copy, modify, merge, publish, distribute, sublicense, 1117N/A * and/or sell copies of the Software, and to permit persons to whom the 1117N/A * Software is furnished to do so, subject to the following conditions: 1117N/A * The above copyright notice and this permission notice (including the next 1117N/A * paragraph) shall be included in all copies or substantial portions of the 1117N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1117N/A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1117N/A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1117N/A * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1117N/A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 1117N/A * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 1117N/A * DEALINGS IN THE SOFTWARE. 1407N/A * This test will open the device and read and write to all memory 1407N/A "ast_test_memory running\n");
1407N/A "ast_test_memory completed\n");
1407N/A * Allow a SIGHUP, SIGINT, SIGALRM, or SIGTERM to interrupt our 1407N/A * memory_test. These signals should already be masked from a 1407N/A * call to ast_block_signals. 1407N/A /* Save the current signals. */ 1407N/A /* Setup up new signal action. */ 1407N/A /* First time goes here. */ 1407N/A /* Unmask SIGHUP, SIGINT, SIGALRM, SIGTERM. */ 1407N/A /* Mask SIGHUP, SIGINT, SIGALRM, SIGTERM. */ 1407N/A /* We come here from the siglongjmp in ast_signal_routine. */ 1407N/A /* Mask SIGHUP, SIGINT, SIGALRM, SIGTERM. */ 1407N/A /* Cause us to get the signal, when we unmask the signals. */ 1407N/A /* Set up raster for this plane group */ 1407N/A /* Cover each 64x64 chunk of screen space */ 1407N/A /* Do each chunk twice - once normal, once complement */ 1407N/A /* Move over one 64x64 chunk */ 1407N/A /* Move down one 64x64 chunk */ 1117N/A /* Get memory to store data */ 1407N/A /* Figure out the value to write */ 1407N/A /* Check which access mode to use for write */ 1407N/A case 8:
/* long long (8-byte) access mode */ 1407N/A case 4:
/* word (4-byte) access mode */ 1407N/A case 2:
/* short (2-byte) access mode */ 1407N/A default:
/* default to byte access */ 1117N/A /* Read the Data From the Screen */ 1407N/A case 8:
/* long long (8-byte) access mode */ 1407N/A case 4:
/* word (4-byte) access mode */ 1407N/A case 2:
/* short (2-byte) access mode */ 1407N/A default:
/* default to byte access */ 1407N/A case 8:
/* long long (8-byte) access mode */ 1407N/A case 4:
/* word (4-byte) access mode */ 1407N/A case 2:
/* short (2-byte) access mode */ 1407N/A default:
/* default to byte access */