cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

btext.h (1006B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2/*
      3 * Definitions for using the procedures in btext.c.
      4 *
      5 * Benjamin Herrenschmidt <benh@kernel.crashing.org>
      6 */
      7#ifndef __PPC_BTEXT_H
      8#define __PPC_BTEXT_H
      9#ifdef __KERNEL__
     10
     11extern int btext_find_display(int allow_nonstdout);
     12extern void btext_update_display(unsigned long phys, int width, int height,
     13				 int depth, int pitch);
     14extern void btext_setup_display(int width, int height, int depth, int pitch,
     15				unsigned long address);
     16#ifdef CONFIG_PPC32
     17extern void btext_prepare_BAT(void);
     18#else
     19static inline void btext_prepare_BAT(void) { }
     20#endif
     21extern void btext_map(void);
     22extern void btext_unmap(void);
     23
     24extern void btext_drawchar(char c);
     25extern void btext_drawstring(const char *str);
     26void __init btext_drawhex(unsigned long v);
     27void __init btext_drawtext(const char *c, unsigned int len);
     28
     29void __init btext_clearscreen(void);
     30void __init btext_flushscreen(void);
     31void __init btext_flushline(void);
     32
     33#endif /* __KERNEL__ */
     34#endif /* __PPC_BTEXT_H */