~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to roms/skiboot/include/config.h

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright 2013-2014 IBM Corp.
 
2
 *
 
3
 * Licensed under the Apache License, Version 2.0 (the "License");
 
4
 * you may not use this file except in compliance with the License.
 
5
 * You may obtain a copy of the License at
 
6
 *
 
7
 *      http://www.apache.org/licenses/LICENSE-2.0
 
8
 *
 
9
 * Unless required by applicable law or agreed to in writing, software
 
10
 * distributed under the License is distributed on an "AS IS" BASIS,
 
11
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 
12
 * implied.
 
13
 * See the License for the specific language governing permissions and
 
14
 * limitations under the License.
 
15
 */
 
16
 
 
17
#ifndef __CONFIG_H
 
18
#define __CONFIG_H
 
19
 
 
20
#define HAVE_TYPEOF                     1
 
21
#define HAVE_BUILTIN_TYPES_COMPATIBLE_P 1
 
22
 
 
23
/* Keep -Wundef happy by defining whatever isn't on commandline to 0 */
 
24
#if defined(HAVE_LITTLE_ENDIAN) && HAVE_LITTLE_ENDIAN
 
25
#define HAVE_BIG_ENDIAN 0
 
26
#endif
 
27
#if defined(HAVE_BIG_ENDIAN) && HAVE_BIG_ENDIAN
 
28
#define HAVE_LITTLE_ENDIAN 0
 
29
#endif
 
30
 
 
31
/* We don't have a byteswap.h, and thus no bswap_64 */
 
32
#define HAVE_BYTESWAP_H 0
 
33
#define HAVE_BSWAP_64 0
 
34
 
 
35
/*
 
36
 * Build options.
 
37
 */
 
38
 
 
39
/* Enable lock debugging */
 
40
#define DEBUG_LOCKS             1
 
41
 
 
42
/* Enable malloc debugging */
 
43
#define DEBUG_MALLOC            1
 
44
 
 
45
/* Enable OPAL entry point tracing */
 
46
//#define OPAL_TRACE_ENTRY      1
 
47
 
 
48
/* Enable tracing of event state change */
 
49
//#define OPAL_TRACE_EVT_CHG    1
 
50
 
 
51
/* Enable various levels of OPAL_console debug */
 
52
//#define OPAL_DEBUG_CONSOLE_IO 1
 
53
//#define OPAL_DEBUG_CONSOLE_POLL       1
 
54
 
 
55
/* Enable this to force all writes to the in-memory console to
 
56
 * be mirrored on the mambo console
 
57
 */
 
58
//#define MAMBO_DEBUG_CONSOLE           1
 
59
 
 
60
/* Enable this to hookup SkiBoot log to the DVS console */
 
61
#define DVS_CONSOLE             1
 
62
 
 
63
/* Enable this to force the dummy console to the kernel.
 
64
 * (ie, an OPAL console that injects into skiboot own console)
 
65
 * Where possible, leave this undefined and enable it dynamically using
 
66
 * the chosen->sapphire,enable-dummy-console in the device tree.
 
67
 *
 
68
 * Note: This only gets enabled if there is no FSP console. If there
 
69
 * is one it always takes over for now. This also cause the LPC UART
 
70
 * node to be marked "reserved" so Linux doesn't instanciate a 8250
 
71
 * driver for it.
 
72
 */
 
73
//#define FORCE_DUMMY_CONSOLE 1
 
74
 
 
75
/* Enable this to do fast resets. Currently unreliable... */
 
76
//#define ENABLE_FAST_RESET     1
 
77
 
 
78
/* Enable this to make fast reboot clear memory */
 
79
//#define FAST_REBOOT_CLEARS_MEMORY     1
 
80
 
 
81
/* Enable this to disable setting of the output pending event when
 
82
 * sending things on the console. The FSP is very slow to consume
 
83
 * and older kernels wait after each character during early boot so
 
84
 * things get very slow. Eventually, we may want to create an OPAL
 
85
 * API for the kernel to activate or deactivate that functionality
 
86
 */
 
87
#define DISABLE_CON_PENDING_EVT 1
 
88
 
 
89
/* Configure this to provide some additional kernel command line
 
90
 * arguments to the bootloader
 
91
 */
 
92
//#define KERNEL_COMMAND_LINE   "debug"
 
93
 
 
94
#endif /* __CONFIG_H */
 
95