/*
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
/*
* fbc_predid_vtbext - Display EDID VTB-EXT data
*/
#include <stdio.h> /* printf() */
#include "fbc_predid.h" /* Display EDID data */
#include "fbc_predid_vtbext.h" /* Display EDID VTB-EXT data */
/*
* Conversions from EDID flag bit value to output text string
*/
/*
* fbc_predid_vtbext_layout()
*
* VTB Data Structure Layout
*/
void
unsigned int start_addr, /* Starting byte address (0x02) */
unsigned int end_addr) /* Ending byte address (0x04) */
{
/*
* VTB Data Structure Layout
*/
printf("\t Detailed Timing Blocks: %u\n",
edid_block[0x02]);
printf("\t Coordinated Video Timing Descriptions: %u\n",
edid_block[0x03]);
printf("\t Standard Timings Descriptions: %u\n",
edid_block[0x04]);
} /* fbc_predid_vtbext_layout() */
/*
* fbc_predid_coord_video_timing()
*
* Coordinated Video Timing (CVT) Descriptions.
*/
static
void
unsigned int start_addr, /* Starting byte address (0x0E) */
unsigned int end_addr) /* Ending byte address (0x13) */
{
printf("\t Active vertical lines (VSize): %u\n",
| edid_block[start_addr + 0]);
{
"4:3",
"16:9",
"16:10",
"Undefined (reserved)"
};
printf("\t Aspect ratio: %s\n",
}
{
"50",
"60",
"75",
"85"
};
printf("\t Preferred refresh rate: %s Hz\n",
& 0x03]);
}
printf("\t Supported refresh rates:\n");
printf("\t\t50 Hz: %s\n",
printf("\t\t60 Hz: %s\n",
printf("\t\t75 Hz: %s\n",
printf("\t\t85 Hz: %s\n",
printf("\t\t60 Hz Reduced Blanking: %s\n",
} /* fbc_predid_coord_video_timing() */
/*
* fbc_predid_vtbext_data()
*
* Video Timing Block (VTB) free format data bytes.
*/
void
unsigned int start_addr, /* Starting byte address */
unsigned int end_addr) /* Ending byte address */
{
/*
* Start of VTB data area
*/
s_addr = 0x05;
/*
* Detailed Timing Blocks (DTB)
*/
printf(" Detailed Timing Blocks (DTB)\n");
if (e_addr >= 0x7F) {
break;
}
printf(" Detailed Timing Block #%u\n", i);
}
/*
* Coordinated Video Timing (CVT) Descriptions
*/
printf(" Coordinated Video Timing (CVT) Descriptions\n");
if (e_addr >= 0x7F) {
break;
}
printf(" CVT Descriptor #%u\n", i);
}
/*
* Standard Timings (ST) Descriptions
*/
printf(" Standard Timings (ST) Descriptions\n");
if (e_addr >= 0x7F) {
}
/*
* Unused Bytes
*/
printf(" Unused Bytes (Reserved)\n");
} /* fbc_predid_vtbext_data() */
/* End of fbc_predid_vtbext.c */