Detect whether the OXPCIE card is really present while in the ROM stage.
[coreboot.git] / src / include / uart8250.h
index aa510e56f8f4c5f056d6e37c3ff312977fad3670..71b9a5f3109b232abcaa5b9248aea4804b247990 100644 (file)
@@ -135,8 +135,13 @@ void uart8250_mem_init(unsigned base_port, unsigned divisor);
 u32 uart_mem_init(void);
 u32 uartmem_getbaseaddr(void);
 
+#if defined(__PRE_RAM__) && CONFIG_DRIVERS_OXFORD_OXPCIE && \
+       CONFIG_CONSOLE_SERIAL8250MEM
 /* and special init for OXPCIe based cards */
+extern int oxford_oxpcie_present;
+
 void oxford_init(void);
+#endif
 
 #endif /* __ROMCC__ */