[haiku-development] RFC: Public header change os/device/graphic_driver.h (was RFC: Thermal sensors in /dev/)

  • From: Alexander von Gluck <kallisti5@xxxxxxxxxxx>
  • To: <haiku-development@xxxxxxxxxxxxx>
  • Date: Sun, 27 Nov 2011 17:51:26 -0600

diff --git a/headers/os/device/graphic_driver.h b/headers/os/device/graphic_driver.h

index 098d1e0..76b417d 100644
--- a/headers/os/device/graphic_driver.h
+++ b/headers/os/device/graphic_driver.h
@@ -10,7 +10,9 @@ extern "C" {
 #endif

 enum {
-       B_GET_ACCELERANT_SIGNATURE = B_GRAPHIC_DRIVER_BASE
+       B_GET_ACCELERANT_SIGNATURE = B_GRAPHIC_DRIVER_BASE,
+       B_GET_THERMAL_STATUS,
+       B_GET_FAN_STATUS
 };

 #ifdef __cplusplus


Thoughts? These two simple IO controls could open some pretty cool sensor monitoring for all video
card drivers that support it.

B_GRAPHIC_DRIVER_BASE is 0x8300, given the number layout this seems like a good natural progression.

 -- Alex

Other related posts: