git: ba7eee41ff10 - stable/13 - bhyve: Put the prototype for vga_render() in a header

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Thu, 26 Jan 2023 19:47:52 UTC
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=ba7eee41ff10d1fd7814b29affe702f8d42ba225

commit ba7eee41ff10d1fd7814b29affe702f8d42ba225
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-10-23 14:22:39 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-01-26 19:31:11 +0000

    bhyve: Put the prototype for vga_render() in a header
    
    No functional change intended.
    
    MFC after:      1 week
    
    (cherry picked from commit 84633b9d5244c5bd0438d2969e021ec01066b107)
---
 usr.sbin/bhyve/pci_fbuf.c | 3 ---
 usr.sbin/bhyve/vga.h      | 2 ++
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/usr.sbin/bhyve/pci_fbuf.c b/usr.sbin/bhyve/pci_fbuf.c
index 43b53931f14c..d69e8254aa25 100644
--- a/usr.sbin/bhyve/pci_fbuf.c
+++ b/usr.sbin/bhyve/pci_fbuf.c
@@ -346,9 +346,6 @@ pci_fbuf_parse_config(struct pci_fbuf_softc *sc, nvlist_t *nvl)
 	return (0);
 }
 
-
-extern void vga_render(struct bhyvegc *gc, void *arg);
-
 static void
 pci_fbuf_render(struct bhyvegc *gc, void *arg)
 {
diff --git a/usr.sbin/bhyve/vga.h b/usr.sbin/bhyve/vga.h
index 36c6dc15fa9e..f4c631a9305b 100644
--- a/usr.sbin/bhyve/vga.h
+++ b/usr.sbin/bhyve/vga.h
@@ -157,6 +157,8 @@
 #define	DAC_IDX_WR_PORT			0x3c8
 #define	DAC_DATA_PORT			0x3c9
 
+struct bhyvegc;
 void	*vga_init(int io_only);
+void	vga_render(struct bhyvegc *gc, void *arg);
 
 #endif /* _VGA_H_ */