mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
powerpc/powernv: provide a console flush operation for opal hvc driver
Provide the flush hv_op for the opal hvc driver. This will flush the firmware console buffers without spinning with interrupts disabled. Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
997dd26cb3
commit
95b861a76c
3 changed files with 57 additions and 33 deletions
|
@ -308,6 +308,7 @@ extern void opal_configure_cores(void);
|
|||
extern int opal_get_chars(uint32_t vtermno, char *buf, int count);
|
||||
extern int opal_put_chars(uint32_t vtermno, const char *buf, int total_len);
|
||||
extern int opal_put_chars_atomic(uint32_t vtermno, const char *buf, int total_len);
|
||||
extern int opal_flush_chars(uint32_t vtermno, bool wait);
|
||||
extern int opal_flush_console(uint32_t vtermno);
|
||||
|
||||
extern void hvc_opal_init_early(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue