Chameleon

Chameleon Commit Details

Date:2017-03-24 17:43:30 (3 years 2 months ago)
Author:ErmaC
Commit:2853
Parents: 2852
Message:More macro definition (config.h)
Changes:
M/branches/ErmaC/Enoch/i386/libsaio/smbios.c
M/branches/ErmaC/Enoch/i386/boot2/options.c
M/branches/ErmaC/Enoch/i386/libsaio/smbios_decode.c
M/branches/ErmaC/Enoch/i386/libsaio/xml.c
M/branches/ErmaC/Enoch/i386/libsaio/hpet.c
M/branches/ErmaC/Enoch/package/po/it.po
M/branches/ErmaC/Enoch/i386/libsaio/exfat.c
M/branches/ErmaC/Enoch/i386/libsaio/bootstruct.c
M/branches/ErmaC/Enoch/i386/libsaio/dram_controllers.c
M/branches/ErmaC/Enoch/i386/boot2/modules.c
M/branches/ErmaC/Enoch/i386/boot2/config.h
M/branches/ErmaC/Enoch/i386/libsaio/pci_root.c
M/branches/ErmaC/Enoch/i386/libsaio/biosfn.c
M/branches/ErmaC/Enoch/i386/libsaio/acpi_patcher.c
M/branches/ErmaC/Enoch/i386/libsaio/state_generator.c
M/branches/ErmaC/Enoch/i386/libsaio/spd.c
M/branches/ErmaC/Enoch/i386/boot2/gui.c
M/branches/ErmaC/Enoch/i386/libsaio/usb.c
M/branches/ErmaC/Enoch/i386/libsaio/fake_efi.c
M/branches/ErmaC/Enoch/i386/libsaio/device_inject.c
M/branches/ErmaC/Enoch/i386/libsaio/pci_setup.c

File differences

branches/ErmaC/Enoch/i386/libsaio/xml.c
2222
2323
2424
25
2526
2627
2728
2829
2930
30
31
32
33
3431
3532
3633
* @APPLE_LICENSE_HEADER_END@
*/
#include "config.h"
#include "bootstruct.h"
#include "libsaio.h"
#include "sl.h"
#include "xml.h"
#ifndef DEBUG_XML
#define DEBUG_XML 0
#endif
#if DEBUG_XML
#define DBG(x...)printf(x)
#else
branches/ErmaC/Enoch/i386/libsaio/exfat.c
3535
3636
3737
38
3839
3940
4041
......
4243
4344
4445
45
46
47
4846
4947
5048
* from similar ntfs.c funcs as fallback (if not NTFS, maybe it's EXFAT).
*/
#include "config.h"
#include "libsaio.h"
#include "sl.h"
#pragma mark Preprocessor Definitions
#pragma mark -
#ifndef DEBUG_EXFAT
#define DEBUG_EXFAT 0
#endif
#if DEBUG_EXFAT
#define DBG(x...)printf(x)
branches/ErmaC/Enoch/i386/libsaio/bootstruct.c
2626
2727
2828
29
2930
3031
3132
3233
33
34
35
36
3734
3835
3936
* All rights reserved.
*/
#include "config.h"
#include "libsaio.h"
#include "boot.h"
#include "bootstruct.h"
#ifndef DEBUG_BOOTSTRUCT
#define DEBUG_BOOTSTRUCT 0
#endif
#if DEBUG_BOOTSTRUCT
#define DBG(x...)printf(x)
#else
branches/ErmaC/Enoch/i386/libsaio/acpi_patcher.c
33
44
55
6
67
78
89
......
1516
1617
1718
18
19
20
21
2219
2320
2421
* 2010 mojodojo, 2012 slice
*/
#include "config.h"
#include "libsaio.h"
#include "boot.h"
#include "bootstruct.h"
#include "aml_generator.h"
#include "state_generator.h"
#ifndef DEBUG_ACPI
#define DEBUG_ACPI 0
#endif
#if DEBUG_ACPI==2
#define DBG(x...) {printf(x); sleep(1);}
#elif DEBUG_ACPI==1
branches/ErmaC/Enoch/i386/libsaio/spd.c
66
77
88
9
910
1011
1112
......
1516
1617
1718
18
19
20
21
2219
2320
2421
* System profiler fix and other fixes by Mozodojo.
*/
#include "config.h"
#include "libsaio.h"
#include "pci.h"
#include "platform.h"
#include "bootstruct.h"
#include "memvendors.h"
#ifndef DEBUG_SPD
#define DEBUG_SPD 0
#endif
#if DEBUG_SPD
#define DBG(x...)printf(x)
#else
branches/ErmaC/Enoch/i386/libsaio/pci_root.c
22
33
44
5
56
67
78
89
9
10
11
12
1310
1411
1512
* Copyright 2009 netkas
*/
#include "config.h"
#include "libsaio.h"
#include "boot.h"
#include "bootstruct.h"
#ifndef DEBUG_PCIROOT
#define DEBUG_PCIROOT 1
#endif
#if DEBUG_PCIROOT
#define DBG(x...) printf(x)
#else
branches/ErmaC/Enoch/i386/libsaio/usb.c
77
88
99
10
1011
1112
1213
1314
1415
15
16
17
18
1916
2017
2118
*
*/
#include "config.h"
#include "libsaio.h"
#include "boot.h"
#include "bootstruct.h"
#include "pci.h"
#ifndef DEBUG_USB
#define DEBUG_USB 0
#endif
#if DEBUG_USB
#define DBG(x...)printf(x)
#else
branches/ErmaC/Enoch/i386/libsaio/device_inject.c
55
66
77
8
89
910
1011
......
1314
1415
1516
16
17
18
19
2017
2118
2219
*Cleaned and merged by iNDi
*/
#include "config.h"
#include "libsaio.h"
#include "boot.h"
#include "bootstruct.h"
#include "device_inject.h"
#include "convert.h"
#ifndef DEBUG_INJECT
#define DEBUG_INJECT 0
#endif
#if DEBUG_INJECT
#define DBG(x...)printf(x)
#else
branches/ErmaC/Enoch/i386/libsaio/dram_controllers.c
1313
1414
1515
16
1617
1718
1819
1920
2021
2122
22
23
24
25
2623
2724
2825
* http://www.canardpc.com - http://www.memtest.org
*/
#include "config.h"
#include "libsaio.h"
#include "bootstruct.h"
#include "pci.h"
#include "platform.h"
#include "dram_controllers.h"
#ifndef DEBUG_DRAM
#define DEBUG_DRAM 0
#endif
#if DEBUG_DRAM
#define DBG(x...) printf(x)
#else
branches/ErmaC/Enoch/i386/libsaio/pci_setup.c
1
12
23
34
......
45
56
67
7
8
9
10
118
129
1310
#include "config.h"
#include "libsaio.h"
#include "boot.h"
#include "bootstruct.h"
#include "pci.h"
#include "modules.h"
#ifndef DEBUG_PCI_SETUP
#define DEBUG_PCI_SETUP 0
#endif
#if DEBUG_PCI_SETUP
#define DBG(x...)printf(x)
#else
branches/ErmaC/Enoch/i386/libsaio/smbios.c
55
66
77
8
8
99
1010
1111
1212
1313
1414
15
16
17
18
1915
2016
2117
*
*/
#include "config.h"
#include "boot.h"
#include "bootstruct.h"
#include "smbios_getters.h"
// Bungo
#include "convert.h"
#ifndef DEBUG_SMBIOS
#define DEBUG_SMBIOS 0
#endif
#if DEBUG_SMBIOS
#define DBG(x...)printf(x)
#else
branches/ErmaC/Enoch/i386/libsaio/smbios_decode.c
55
66
77
8
89
910
1011
1112
1213
1314
14
15
16
17
1815
19
16
2017
21
18
2219
2320
2421
*
*/
#include "config.h"
#include "libsaio.h"
#include "smbios.h"
// Bungo:
#include "boot.h"
#include "bootstruct.h"
#ifndef DEBUG_SMBIOS
#define DEBUG_SMBIOS 0
#endif
#if DEBUG_SMBIOS
#define DBG(x...)printf(x)
#define DBG(x...)printf(x)
#else
#define DBG(x...)msglog(x)
#define DBG(x...)msglog(x)
#endif
extern char *getSMBStringForField(SMBStructHeader *structHeader, uint8_t field);
branches/ErmaC/Enoch/i386/libsaio/hpet.c
66
77
88
9
910
1011
1112
1213
13
14
15
16
1714
1815
1916
* High Precision Event Timer (HPET)
*/
#include "config.h"
#include "libsaio.h"
#include "pci.h"
#include "hpet.h"
#ifndef DEBUG_HPET
#define DEBUG_HPET 0
#endif
#if DEBUG_HPET
#define DBG(x...) printf(x)
#else
branches/ErmaC/Enoch/i386/libsaio/biosfn.c
4040
4141
4242
43
4344
4445
4546
4647
47
48
49
50
5148
5249
5350
- Added ebiosEjectMedia
*/
#include "config.h"
#include "bootstruct.h"
#include "libsaio.h"
#ifndef MEMRANGE
#define MEMRANGE 1
#endif
#if MEMRANGE
#define DBG(x...)printf(x)
#else
branches/ErmaC/Enoch/i386/libsaio/state_generator.c
99
1010
1111
12
1213
1314
1415
......
2122
2223
2324
24
25
26
27
2825
2926
3027
31
28
3229
33
30
3431
3532
3633
*
*/
#include "config.h"
#include "libsaio.h"
#include "boot.h"
#include "bootstruct.h"
#include "aml_generator.h"
#include "state_generator.h"
#ifndef DEBUG_STATE
#define DEBUG_STATE 0
#endif
#if DEBUG_STATE==2
#define DBG(x...) {printf(x); sleep(1);}
#elif DEBUG_STATE==1
#define DBG(x...) printf(x)
#define DBG(x...) printf(x)
#else
#define DBG(x...) msglog(x)
#define DBG(x...) msglog(x)
#endif
uint8_t acpi_cpu_count= 0;
branches/ErmaC/Enoch/i386/libsaio/fake_efi.c
22
33
44
5
6
57
68
79
......
1921
2022
2123
22
23
24
25
26
27
28
29
3024
3125
3226
/*
* Copyright 2007 David F. Elliott. All rights reserved.
*/
#include "config.h"
#include "saio_types.h"
#include "libsaio.h"
#include "boot.h"
#include "sl.h"
#include "vers.h"
#ifndef DEBUG_EFI
#define DEBUG_EFI 0
#endif
#ifndef RANDOMSEED
#define RANDOMSEED 0
#endif
#if DEBUG_EFI
#define DBG(x...)printf(x)
#else
branches/ErmaC/Enoch/i386/boot2/config.h
1313
1414
1515
16
17
18
19
20
21
22
23
24
1625
1726
1827
......
2332
2433
2534
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
2663
2764
2865
66
67
68
69
70
71
72
73
74
75
76
77
78
2979
3080
3181
3282
83
84
85
86
3387
#define DEBUG_BOOT2 0
#define DEBUG_INTERRUPTS 0
////////////////////////////////// hpet.c
#define DEBUG_HPET 0
////////////////////////////////// modules.c
#define CONFIG_MODULE_DEBUG 0
////////////////////////////////// acpi_patcher.c 0 - 1 - 2
#define DEBUG_ACPI 0
////////////////////////////////// ati.c
#define DEBUG_ATI 0
#define DEBUG_GMA 0
#define REPLACE_DEVICE_ID 0
////////////////////////////////// usb.c
#define DEBUG_USB 0
////////////////////////////////// gui.c
#define DEBUG_GUI 0
////////////////////////////////// pci_root.c
#define DEBUG_PCIROOT 1
////////////////////////////////// pci_setup.c
#define DEBUG_PCI_SETUP 0
////////////////////////////////// smbios.c
////////////////////////////////// smbios_decode.c
#define DEBUG_SMBIOS 0
////////////////////////////////// spd.c
#define DEBUG_SPD 0
////////////////////////////////// state_generator.c
#define DEBUG_STATE 0
////////////////////////////////// biosfn.c
#define MEMRANGE 1
////////////////////////////////// bootstruct.c
#define DEBUG_BOOTSTRUCT 0
////////////////////////////////// cpu.c
#define DEBUG_CPU 0
////////////////////////////////// device_inject.c
#define DEBUG_INJECT 0
////////////////////////////////// dram_controllers.c
#define DEBUG_DRAM 0
////////////////////////////////// exfat.c
#define DEBUG_EXFAT 0
////////////////////////////////// fake_efi.c
#define DEBUG_EFI 0
#define RANDOMSEED 0
////////////////////////////////// hda.c
#define DEBUG_HDA 0
#define DEBUG_CODEC 0
////////////////////////////////// xml.c
#define DEBUG_XML 0
#endif /* config_h */
branches/ErmaC/Enoch/i386/boot2/modules.c
22
33
44
5
6
57
68
79
......
1214
1315
1416
15
16
17
1817
19
2018
2119
2220
* Copyright 2010-2015 Evan Lojewski. All rights reserved.
*
*/
#include "config.h"
#include "boot.h"
#include "bootstruct.h"
#include "modules.h"
#include <string.h>
#ifdef CONFIG_MODULES
#ifndef CONFIG_MODULE_DEBUG
#define CONFIG_MODULE_DEBUG 0
#endif
#if CONFIG_MODULE_DEBUG
#define DBG(x...)printf(x)
#define DBGPAUSE()getchar()
branches/ErmaC/Enoch/i386/boot2/gui.c
88
99
1010
11
1112
1213
1314
1415
1516
16
17
18
19
2017
2118
2219
*
*/
#include "config.h"
#include "gui.h"
#include "term.h"
#include "appleboot.h"
#include "vers.h"
#ifndef DEBUG_GUI
#define DEBUG_GUI 0
#endif
#if DEBUG_GUI
#define DBG(x...)printf(x)
#else
branches/ErmaC/Enoch/i386/boot2/options.c
3333
3434
3535
36
36
3737
38
38
3939
4040
4141
#include "modules.h"
#if DEBUG
#define DBG(x...)printf(x)
#define DBG(x...)printf(x)
#else
#define DBG(x...)msglog(x)
#define DBG(x...)msglog(x)
#endif
chargMacOSVersion[OSVERSTRLEN];
branches/ErmaC/Enoch/package/po/it.po
36003600
36013601
36023602
3603
3603
36043604
36053605
36063606
#~ msgstr "Intel Azul AAPL,ig-platform-id"
#~ msgid "Set one AAPL,ig-platform-id to use for your Intel HD5000."
#~ msgstr "Scegli un AAPL,ig-platform-id da usare per la tua Intel HD5000."
#~ msgstr "Scegli un AAPL,ig-platform-id da usare per la tua Intel HD 5000."
#~ msgid "Set 0000260c for Intel HD5000 (Mobile) AAPL,ig-platform-id."
#~ msgstr "Imposta l'AAPL,ig-platform-id a 0000260c per schede grafiche Intel HD5000 (Mobile)."

Archive Download the corresponding diff file

Revision: 2853