1 #ifndef DISPLAY_ADAPTER_H 2 #define DISPLAY_ADAPTER_H 3 4 5 #include <sys/cdefs.h> 6 7 #include <device_manager.h> 8 #include <KernelExport.h> 9 //#include <Drivers.h> 10 //#include <Errors.h> 11 #include <string.h> 12 13 #include <stdio.h> 14 #include <stdlib.h> 15 16 #include <ACPI.h> 17 18 #define DISPLAYADAPTER_MODULE_NAME "drivers/display_adapter/display_adapter/driver_v1" 19 #define DISPLAY_DEVICE_MODULE_NAME "drivers/display_adapter/display_adapter/display/device_v1" 20 #define DISPLAYADAPTER_DEVICE_MODULE_NAME "drivers/display_adapter/display_adapter/device_v1" 21 22 #define DISPLAYADAPTER_BASENAME "display_adapter/%d" 23 #define DISPLAYADAPTER_PATHID_GENERATOR "display_adapter/path_id" 24 25 26 #define OS_DISPLAY_SWITCH 0 27 #define BIOS_DISPLAY_SWITCH 1 28 #define LOCK_DISPLAY_SWITCH 2 29 #define NOTIFY_DISPLAY_SWITCH 3 30 31 #define OS_BRIGHTNESS_CONTROL (1 << 2) 32 #define BIOS_BRIGHTNESS_CONTROL (0 << 2) 33 34 35 __BEGIN_DECLS 36 37 extern device_manager_info *gDeviceManager; 38 extern acpi_module_info *gAcpi; 39 40 extern struct device_module_info display_device_module; 41 42 __END_DECLS 43 44 45 #endif //DISPLAY_ADAPTER_H 46