[haiku-commits] r42463 - haiku/trunk/src/add-ons/accelerants/radeon_hd

  • From: kallisti5@xxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 22 Jul 2011 07:14:40 +0200 (CEST)

Author: kallisti5
Date: 2011-07-22 07:14:39 +0200 (Fri, 22 Jul 2011)
New Revision: 42463
Changeset: https://dev.haiku-os.org/changeset/42463

Modified:
   haiku/trunk/src/add-ons/accelerants/radeon_hd/accelerant.cpp
   haiku/trunk/src/add-ons/accelerants/radeon_hd/accelerant.h
   haiku/trunk/src/add-ons/accelerants/radeon_hd/display.cpp
Log:
* Small bit of comment cleanup
* Rename crt_info display_info


Modified: haiku/trunk/src/add-ons/accelerants/radeon_hd/accelerant.cpp
===================================================================
--- haiku/trunk/src/add-ons/accelerants/radeon_hd/accelerant.cpp        
2011-07-22 04:59:07 UTC (rev 42462)
+++ haiku/trunk/src/add-ons/accelerants/radeon_hd/accelerant.cpp        
2011-07-22 05:14:39 UTC (rev 42463)
@@ -35,7 +35,7 @@
 
 
 struct accelerant_info *gInfo;
-crt_info *gDisplay[MAX_DISPLAY];
+display_info *gDisplay[MAX_DISPLAY];
 
 
 class AreaCloner {
@@ -104,10 +104,10 @@
        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)

Modified: haiku/trunk/src/add-ons/accelerants/radeon_hd/accelerant.h
===================================================================
--- haiku/trunk/src/add-ons/accelerants/radeon_hd/accelerant.h  2011-07-22 
04:59:07 UTC (rev 42462)
+++ haiku/trunk/src/add-ons/accelerants/radeon_hd/accelerant.h  2011-07-22 
05:14:39 UTC (rev 42463)
@@ -93,10 +93,10 @@
        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 @@
 
 
 extern accelerant_info *gInfo;
-extern crt_info *gDisplay[MAX_DISPLAY];
+extern display_info *gDisplay[MAX_DISPLAY];
 
 
 // register access

Modified: haiku/trunk/src/add-ons/accelerants/radeon_hd/display.cpp
===================================================================
--- haiku/trunk/src/add-ons/accelerants/radeon_hd/display.cpp   2011-07-22 
04:59:07 UTC (rev 42462)
+++ haiku/trunk/src/add-ons/accelerants/radeon_hd/display.cpp   2011-07-22 
05:14:39 UTC (rev 42463)
@@ -189,9 +189,9 @@
 {
        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


Other related posts:

  • » [haiku-commits] r42463 - haiku/trunk/src/add-ons/accelerants/radeon_hd - kallisti5