2 * (C) Copyright 2002-2007
3 * Detlev Zundel, dzu@denx.de.
5 * SPDX-License-Identifier: GPL-2.0+
10 #ifdef CONFIG_LOGBUFFER
12 #define LOGBUFF_MAGIC 0xc0de4ced /* Forced by code, eh! */
13 #define LOGBUFF_LEN (16384) /* Must be 16k right now */
14 #define LOGBUFF_MASK (LOGBUFF_LEN-1)
15 #define LOGBUFF_OVERHEAD (4096) /* Logbuffer overhead for extra info */
16 #define LOGBUFF_RESERVE (LOGBUFF_LEN+LOGBUFF_OVERHEAD)
18 /* The mapping used here has to be the same as in setup_ext_logbuff ()
19 in linux/kernel/printk */
41 int drv_logbuff_init (void);
42 void logbuff_init_ptrs (void);
43 void logbuff_log(char *msg);
44 void logbuff_reset (void);
45 unsigned long logbuffer_base (void);
47 #endif /* CONFIG_LOGBUFFER */
49 #endif /* _LOGBUFF_H */