2004-11-26 19:23:49 +03:00
|
|
|
/*
|
2008-03-09 02:12:46 +03:00
|
|
|
* Copyright 2004-2008, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
2004-11-26 19:23:49 +03:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _KERNEL_SAFEMODE_H
|
|
|
|
#define _KERNEL_SAFEMODE_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <driver_settings.h>
|
|
|
|
|
|
|
|
|
|
|
|
// these are BeOS compatible additions to the safemode
|
|
|
|
// constants in the driver_settings.h header
|
|
|
|
|
|
|
|
#define B_SAFEMODE_DISABLE_USER_ADD_ONS "disableuseraddons"
|
|
|
|
#define B_SAFEMODE_DISABLE_IDE_DMA "disableidedma"
|
2007-01-13 22:55:14 +03:00
|
|
|
#define B_SAFEMODE_DISABLE_ACPI "disable_acpi"
|
2008-05-07 02:04:25 +04:00
|
|
|
#define B_SAFEMODE_DISABLE_APM "disable_apm"
|
2005-10-27 02:57:13 +04:00
|
|
|
#define B_SAFEMODE_DISABLE_SMP "disable_smp"
|
|
|
|
#define B_SAFEMODE_DISABLE_HYPER_THREADING "disable_hyperthreading"
|
2007-06-04 00:20:19 +04:00
|
|
|
#define B_SAFEMODE_FAIL_SAFE_VIDEO_MODE "fail_safe_video_mode"
|
2004-11-26 19:23:49 +03:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
status_t get_safemode_option(const char *parameter, char *buffer, size_t *_bufferSize);
|
2008-03-09 02:12:46 +03:00
|
|
|
bool get_safemode_boolean(const char *parameter, bool defaultValue);
|
2004-11-26 19:23:49 +03:00
|
|
|
status_t _user_get_safemode_option(const char *parameter, char *buffer, size_t *_bufferSize);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _KERNEL_SAFEMODE_H */
|