1 /* 2 * Copyright 2004-2008, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _KERNEL_SAFEMODE_H 6 #define _KERNEL_SAFEMODE_H 7 8 9 #include <driver_settings.h> 10 11 12 // these are BeOS compatible additions to the safemode 13 // constants in the driver_settings.h header 14 15 #define B_SAFEMODE_DISABLE_USER_ADD_ONS "disableuseraddons" 16 #define B_SAFEMODE_DISABLE_IDE_DMA "disableidedma" 17 #define B_SAFEMODE_DISABLE_ACPI "disable_acpi" 18 #define B_SAFEMODE_DISABLE_APM "disable_apm" 19 #define B_SAFEMODE_DISABLE_SMP "disable_smp" 20 #define B_SAFEMODE_DISABLE_HYPER_THREADING "disable_hyperthreading" 21 #define B_SAFEMODE_FAIL_SAFE_VIDEO_MODE "fail_safe_video_mode" 22 23 24 #ifdef __cplusplus 25 extern "C" { 26 #endif 27 28 status_t get_safemode_option(const char *parameter, char *buffer, size_t *_bufferSize); 29 bool get_safemode_boolean(const char *parameter, bool defaultValue); 30 status_t _user_get_safemode_option(const char *parameter, char *buffer, size_t *_bufferSize); 31 32 #ifdef __cplusplus 33 } 34 #endif 35 36 #endif /* _KERNEL_SAFEMODE_H */ 37