/ src / include / console / simnow.h
simnow.h
 1  /* SPDX-License-Identifier: GPL-2.0-only */
 2  
 3  #ifndef CONSOLE_SIMNOW_H
 4  #define CONSOLE_SIMNOW_H
 5  
 6  #include <stdint.h>
 7  
 8  void simnow_console_init(void);
 9  void simnow_console_tx_byte(unsigned char data);
10  
11  #define __SIMNOW_CONSOLE_ENABLE__	CONFIG(CONSOLE_AMD_SIMNOW)
12  
13  #if __SIMNOW_CONSOLE_ENABLE__
14  static inline void __simnow_console_init(void)
15  {
16  	simnow_console_init();
17  }
18  
19  static inline void __simnow_console_tx_byte(u8 data)
20  {
21  	simnow_console_tx_byte(data);
22  }
23  #else
24  static inline void __simnow_console_init(void)	{}
25  static inline void __simnow_console_tx_byte(u8 data)	{}
26  #endif
27  
28  #endif /* CONSOLE_SIMNOW_H */