| 
				
			 | 
			
			
				
				@@ -8,6 +8,9 @@ 
			 | 
		
		
	
		
			
			| 
				8
			 | 
			
				8
			 | 
			
			
				
				 #include "etherboot.h" 
			 | 
		
		
	
		
			
			| 
				9
			 | 
			
				9
			 | 
			
			
				
				 #include "dev.h" 
			 | 
		
		
	
		
			
			| 
				10
			 | 
			
				10
			 | 
			
			
				
				 #include "console.h" 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				11
			 | 
			
			
				
				+ 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				12
			 | 
			
			
				
				+#include "config/general.h" 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				13
			 | 
			
			
				
				+ 
			 | 
		
		
	
		
			
			| 
				11
			 | 
			
				14
			 | 
			
			
				
				 #ifdef BUILD_SERIAL 
			 | 
		
		
	
		
			
			| 
				12
			 | 
			
				15
			 | 
			
			
				
				 #include ".buildserial.h" 
			 | 
		
		
	
		
			
			| 
				13
			 | 
			
				16
			 | 
			
			
				
				 #define xstr(s) str(s) 
			 | 
		
		
	
	
		
			
			| 
				
			 | 
			
			
				
				@@ -107,44 +110,35 @@ void print_config ( void ) { 
			 | 
		
		
	
		
			
			| 
				107
			 | 
			
				110
			 | 
			
			
				
				 /* 
			 | 
		
		
	
		
			
			| 
				108
			 | 
			
				111
			 | 
			
			
				
				  * Drag in all requested console types 
			 | 
		
		
	
		
			
			| 
				109
			 | 
			
				112
			 | 
			
			
				
				  * 
			 | 
		
		
	
		
			
			| 
				110
			 | 
			
				
			 | 
			
			
				
				- * At least one of the CONSOLE_xxx has to be set.  CONSOLE_DUAL sets 
			 | 
		
		
	
		
			
			| 
				111
			 | 
			
				
			 | 
			
			
				
				- * both CONSOLE_FIRMWARE and CONSOLE_SERIAL for legacy compatibility. 
			 | 
		
		
	
		
			
			| 
				112
			 | 
			
				
			 | 
			
			
				
				- * If no CONSOLE_xxx is set, CONSOLE_FIRMWARE is assumed. 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				113
			 | 
			
			
				
				+ * CONSOLE_DUAL sets both CONSOLE_FIRMWARE and CONSOLE_SERIAL for 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				114
			 | 
			
			
				
				+ * legacy compatibility. 
			 | 
		
		
	
		
			
			| 
				113
			 | 
			
				115
			 | 
			
			
				
				  * 
			 | 
		
		
	
		
			
			| 
				114
			 | 
			
				116
			 | 
			
			
				
				  */ 
			 | 
		
		
	
		
			
			| 
				115
			 | 
			
				117
			 | 
			
			
				
				  
			 | 
		
		
	
		
			
			| 
				116
			 | 
			
				
			 | 
			
			
				
				-#ifdef CONSOLE_CRT 
			 | 
		
		
	
		
			
			| 
				117
			 | 
			
				
			 | 
			
			
				
				-#define CONSOLE_FIRMWARE 
			 | 
		
		
	
		
			
			| 
				118
			 | 
			
				
			 | 
			
			
				
				-#endif 
			 | 
		
		
	
		
			
			| 
				119
			 | 
			
				
			 | 
			
			
				
				- 
			 | 
		
		
	
		
			
			| 
				120
			 | 
			
				
			 | 
			
			
				
				-#ifdef	CONSOLE_DUAL 
			 | 
		
		
	
		
			
			| 
				121
			 | 
			
				
			 | 
			
			
				
				-#undef CONSOLE_FIRMWARE 
			 | 
		
		
	
		
			
			| 
				122
			 | 
			
				
			 | 
			
			
				
				-#define CONSOLE_FIRMWARE 
			 | 
		
		
	
		
			
			| 
				123
			 | 
			
				
			 | 
			
			
				
				-#undef CONSOLE_SERIAL 
			 | 
		
		
	
		
			
			| 
				124
			 | 
			
				
			 | 
			
			
				
				-#define CONSOLE_SERIAL 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				118
			 | 
			
			
				
				+#if	CONSOLE_DUAL 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				119
			 | 
			
			
				
				+#undef	CONSOLE_FIRMWARE 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				120
			 | 
			
			
				
				+#define	CONSOLE_FIRMWARE	1 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				121
			 | 
			
			
				
				+#undef	CONSOLE_SERIAL 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				122
			 | 
			
			
				
				+#define	CONSOLE_SERIAL		1 
			 | 
		
		
	
		
			
			| 
				125
			 | 
			
				123
			 | 
			
			
				
				 #endif 
			 | 
		
		
	
		
			
			| 
				126
			 | 
			
				124
			 | 
			
			
				
				  
			 | 
		
		
	
		
			
			| 
				127
			 | 
			
				
			 | 
			
			
				
				-#if	!defined(CONSOLE_FIRMWARE) && !defined(CONSOLE_SERIAL) 
			 | 
		
		
	
		
			
			| 
				128
			 | 
			
				
			 | 
			
			
				
				-#define CONSOLE_FIRMWARE 
			 | 
		
		
	
		
			
			| 
				129
			 | 
			
				
			 | 
			
			
				
				-#endif 
			 | 
		
		
	
		
			
			| 
				130
			 | 
			
				
			 | 
			
			
				
				- 
			 | 
		
		
	
		
			
			| 
				131
			 | 
			
				
			 | 
			
			
				
				-#ifdef CONSOLE_FIRMWARE 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				125
			 | 
			
			
				
				+#if CONSOLE_FIRMWARE 
			 | 
		
		
	
		
			
			| 
				132
			 | 
			
				126
			 | 
			
			
				
				 REQUIRE_OBJECT ( bios_console ); 
			 | 
		
		
	
		
			
			| 
				133
			 | 
			
				127
			 | 
			
			
				
				 #endif 
			 | 
		
		
	
		
			
			| 
				134
			 | 
			
				128
			 | 
			
			
				
				  
			 | 
		
		
	
		
			
			| 
				135
			 | 
			
				
			 | 
			
			
				
				-#ifdef CONSOLE_SERIAL 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				129
			 | 
			
			
				
				+#if CONSOLE_SERIAL 
			 | 
		
		
	
		
			
			| 
				136
			 | 
			
				130
			 | 
			
			
				
				 REQUIRE_OBJECT ( serial ); 
			 | 
		
		
	
		
			
			| 
				137
			 | 
			
				131
			 | 
			
			
				
				 #endif 
			 | 
		
		
	
		
			
			| 
				138
			 | 
			
				132
			 | 
			
			
				
				  
			 | 
		
		
	
		
			
			| 
				139
			 | 
			
				
			 | 
			
			
				
				-#ifdef CONSOLE_DIRECT_VGA 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				133
			 | 
			
			
				
				+#if CONSOLE_DIRECT_VGA 
			 | 
		
		
	
		
			
			| 
				140
			 | 
			
				134
			 | 
			
			
				
				 REQUIRE_OBJECT ( video_subr ); 
			 | 
		
		
	
		
			
			| 
				141
			 | 
			
				135
			 | 
			
			
				
				 #endif 
			 | 
		
		
	
		
			
			| 
				142
			 | 
			
				136
			 | 
			
			
				
				  
			 | 
		
		
	
		
			
			| 
				143
			 | 
			
				
			 | 
			
			
				
				-#ifdef CONSOLE_BTEXT 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				137
			 | 
			
			
				
				+#if CONSOLE_BTEXT 
			 | 
		
		
	
		
			
			| 
				144
			 | 
			
				138
			 | 
			
			
				
				 REQUIRE_OBJECT ( btext ); 
			 | 
		
		
	
		
			
			| 
				145
			 | 
			
				139
			 | 
			
			
				
				 #endif 
			 | 
		
		
	
		
			
			| 
				146
			 | 
			
				140
			 | 
			
			
				
				  
			 | 
		
		
	
		
			
			| 
				147
			 | 
			
				
			 | 
			
			
				
				-#ifdef CONSOLE_PC_KBD 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				141
			 | 
			
			
				
				+#if CONSOLE_PC_KBD 
			 | 
		
		
	
		
			
			| 
				148
			 | 
			
				142
			 | 
			
			
				
				 REQUIRE_OBJECT ( pc_kbd ); 
			 | 
		
		
	
		
			
			| 
				149
			 | 
			
				143
			 | 
			
			
				
				 #endif 
			 | 
		
		
	
		
			
			| 
				150
			 | 
			
				144
			 | 
			
			
				
				  
			 | 
		
		
	
	
		
			
			| 
				
			 | 
			
			
				
				@@ -153,22 +147,6 @@ REQUIRE_OBJECT ( pc_kbd ); 
			 | 
		
		
	
		
			
			| 
				153
			 | 
			
				147
			 | 
			
			
				
				  * 
			 | 
		
		
	
		
			
			| 
				154
			 | 
			
				148
			 | 
			
			
				
				  */ 
			 | 
		
		
	
		
			
			| 
				155
			 | 
			
				149
			 | 
			
			
				
				  
			 | 
		
		
	
		
			
			| 
				156
			 | 
			
				
			 | 
			
			
				
				-#ifndef NORELOCATE 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				150
			 | 
			
			
				
				+#if RELOCATE 
			 | 
		
		
	
		
			
			| 
				157
			 | 
			
				151
			 | 
			
			
				
				 REQUIRE_OBJECT ( relocate ); 
			 | 
		
		
	
		
			
			| 
				158
			 | 
			
				152
			 | 
			
			
				
				 #endif 
			 | 
		
		
	
		
			
			| 
				159
			 | 
			
				
			 | 
			
			
				
				- 
			 | 
		
		
	
		
			
			| 
				160
			 | 
			
				
			 | 
			
			
				
				-/* 
			 | 
		
		
	
		
			
			| 
				161
			 | 
			
				
			 | 
			
			
				
				- * Allow ISA probe address list to be overridden 
			 | 
		
		
	
		
			
			| 
				162
			 | 
			
				
			 | 
			
			
				
				- * 
			 | 
		
		
	
		
			
			| 
				163
			 | 
			
				
			 | 
			
			
				
				- */ 
			 | 
		
		
	
		
			
			| 
				164
			 | 
			
				
			 | 
			
			
				
				-#include "isa.h" 
			 | 
		
		
	
		
			
			| 
				165
			 | 
			
				
			 | 
			
			
				
				-#ifndef ISA_PROBE_ADDRS 
			 | 
		
		
	
		
			
			| 
				166
			 | 
			
				
			 | 
			
			
				
				-#define ISA_PROBE_ADDRS 
			 | 
		
		
	
		
			
			| 
				167
			 | 
			
				
			 | 
			
			
				
				-#endif 
			 | 
		
		
	
		
			
			| 
				168
			 | 
			
				
			 | 
			
			
				
				- 
			 | 
		
		
	
		
			
			| 
				169
			 | 
			
				
			 | 
			
			
				
				-isa_probe_addr_t isa_extra_probe_addrs[] = { 
			 | 
		
		
	
		
			
			| 
				170
			 | 
			
				
			 | 
			
			
				
				-	ISA_PROBE_ADDRS 
			 | 
		
		
	
		
			
			| 
				171
			 | 
			
				
			 | 
			
			
				
				-}; 
			 | 
		
		
	
		
			
			| 
				172
			 | 
			
				
			 | 
			
			
				
				- 
			 | 
		
		
	
		
			
			| 
				173
			 | 
			
				
			 | 
			
			
				
				-unsigned int isa_extra_probe_addr_count 
			 | 
		
		
	
		
			
			| 
				174
			 | 
			
				
			 | 
			
			
				
				-      = sizeof ( isa_extra_probe_addrs ) / sizeof ( isa_extra_probe_addrs[0] ); 
			 |