* Small bit of comment cleanup
* Rename crt_info display_info git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42463 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -35,7 +35,7 @@ extern "C" void _sPrintf(const char *format, ...);
|
||||
|
||||
|
||||
struct accelerant_info *gInfo;
|
||||
crt_info *gDisplay[MAX_DISPLAY];
|
||||
display_info *gDisplay[MAX_DISPLAY];
|
||||
|
||||
|
||||
class AreaCloner {
|
||||
@@ -104,10 +104,10 @@ init_common(int device, bool isClone)
|
||||
memset(gInfo, 0, sizeof(accelerant_info));
|
||||
|
||||
for (uint32 id = 0; id < MAX_DISPLAY; id++) {
|
||||
gDisplay[id] = (crt_info *)malloc(sizeof(crt_info));
|
||||
gDisplay[id] = (display_info *)malloc(sizeof(display_info));
|
||||
if (gDisplay[id] == NULL)
|
||||
return B_NO_MEMORY;
|
||||
memset(gDisplay[id], 0, sizeof(crt_info));
|
||||
memset(gDisplay[id], 0, sizeof(display_info));
|
||||
|
||||
gDisplay[id]->regs = (register_info *)malloc(sizeof(register_info));
|
||||
if (gDisplay[id]->regs == NULL)
|
||||
|
||||
@@ -93,10 +93,10 @@ typedef struct {
|
||||
uint32 vfreq_min;
|
||||
uint32 hfreq_max;
|
||||
uint32 hfreq_min;
|
||||
} crt_info;
|
||||
} display_info;
|
||||
|
||||
|
||||
// crt_info connection_type
|
||||
// display_info connection_type
|
||||
#define CONNECTION_DAC 0x0001
|
||||
#define CONNECTION_TMDS 0x0002
|
||||
#define CONNECTION_LVDS 0x0003
|
||||
@@ -110,7 +110,7 @@ typedef struct {
|
||||
|
||||
|
||||
extern accelerant_info *gInfo;
|
||||
extern crt_info *gDisplay[MAX_DISPLAY];
|
||||
extern display_info *gDisplay[MAX_DISPLAY];
|
||||
|
||||
|
||||
// register access
|
||||
|
||||
@@ -189,9 +189,9 @@ detect_crt_ranges(uint32 crtid)
|
||||
{
|
||||
edid1_info *edid = &gInfo->shared_info->edid_info;
|
||||
|
||||
// TODO : VESA edid is just for primary monitor
|
||||
// TODO : VESA edid is just for primary monitor?
|
||||
|
||||
// EDID spec states 4 descriptor blocks
|
||||
// Scan each VESA EDID description for monitor ranges
|
||||
for (uint32 index = 0; index < EDID1_NUM_DETAILED_MONITOR_DESC; index++) {
|
||||
|
||||
edid1_detailed_monitor *monitor
|
||||
|
||||
Reference in New Issue
Block a user