diff options
author | des <des@FreeBSD.org> | 1999-04-12 13:34:58 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 1999-04-12 13:34:58 +0000 |
commit | 791f19da95cba106f2842309ff0a3fabb4a7e757 (patch) | |
tree | ba4e86fa388b88617ceaacf9948dfbe06c8b1876 /sys/modules | |
parent | 9ecd5a48c9d0d5294ca2bdf15a6cb4a5aba6fb4b (diff) | |
download | FreeBSD-src-791f19da95cba106f2842309ff0a3fabb4a7e757.zip FreeBSD-src-791f19da95cba106f2842309ff0a3fabb4a7e757.tar.gz |
Centralize and reorganize a few macros.
Diffstat (limited to 'sys/modules')
-rw-r--r-- | sys/modules/syscons/logo/logo_saver.c | 8 | ||||
-rw-r--r-- | sys/modules/syscons/rain/rain_saver.c | 8 | ||||
-rw-r--r-- | sys/modules/syscons/saver.h | 13 | ||||
-rw-r--r-- | sys/modules/syscons/warp/warp_saver.c | 8 |
4 files changed, 19 insertions, 18 deletions
diff --git a/sys/modules/syscons/logo/logo_saver.c b/sys/modules/syscons/logo/logo_saver.c index c55b565..b6a46ac 100644 --- a/sys/modules/syscons/logo/logo_saver.c +++ b/sys/modules/syscons/logo/logo_saver.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: logo_saver.c,v 1.4 1999/01/16 10:20:16 des Exp $ + * $Id: logo_saver.c,v 1.5 1999/02/05 12:40:15 des Exp $ */ #include <sys/param.h> @@ -97,7 +97,11 @@ logo_saver(video_adapter_t *adp, int blank) /* switch to graphics mode */ if (blanked <= 0) { pl = splhigh(); - set_video_mode(adp, scrmode, logo_pal, 0); + set_video_mode(adp, scrmode); + load_palette(adp, logo_pal); +#if 0 /* XXX conflict */ + set_border(adp, 0); +#endif blanked++; vid = (u_char *)adp->va_window; bpsl = adp->va_line_width; diff --git a/sys/modules/syscons/rain/rain_saver.c b/sys/modules/syscons/rain/rain_saver.c index 0b4b2ee..9aa7370 100644 --- a/sys/modules/syscons/rain/rain_saver.c +++ b/sys/modules/syscons/rain/rain_saver.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: rain_saver.c,v 1.1 1998/12/31 13:41:40 des Exp $ + * $Id: rain_saver.c,v 1.2 1999/01/11 03:18:50 yokota Exp $ */ #include <sys/param.h> @@ -68,7 +68,11 @@ rain_saver(video_adapter_t *adp, int blank) /* switch to graphics mode */ if (blanked <= 0) { pl = splhigh(); - set_video_mode(adp, M_VGA_CG320, rain_pal, 0); + set_video_mode(adp, M_VGA_CG320); + load_palette(adp, rain_pal); +#if 0 /* XXX conflict */ + set_border(adp, 0); +#endif blanked++; vid = (u_char *)adp->va_window; splx(pl); diff --git a/sys/modules/syscons/saver.h b/sys/modules/syscons/saver.h index 661b15a..748dfdd 100644 --- a/sys/modules/syscons/saver.h +++ b/sys/modules/syscons/saver.h @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: saver.h,v 1.15 1999/01/11 03:18:42 yokota Exp $ + * $Id: saver.h,v 1.16 1999/01/16 10:20:13 des Exp $ */ #include <machine/apm_bios.h> #include <machine/console.h> @@ -35,16 +35,5 @@ #include <dev/syscons/syscons.h> -#define set_video_mode(adp, mode, pal, border) \ - { \ - (*vidsw[(adp)->va_index]->set_mode)((adp), (mode)); \ - (*vidsw[(adp)->va_index]->load_palette)((adp), (pal)); \ - (*vidsw[(adp)->va_index]->set_border)((adp), (border)); \ - } -#define get_mode_info(adp, mode, buf) \ - (*vidsw[(adp)->va_index]->get_info)((adp), (mode), (buf)) -#define set_origin(adp, o) \ - (*vidsw[(adp)->va_index]->set_win_org)(adp, o) - extern scr_stat *cur_console; extern char scr_map[]; diff --git a/sys/modules/syscons/warp/warp_saver.c b/sys/modules/syscons/warp/warp_saver.c index ef0afa2..3476c36 100644 --- a/sys/modules/syscons/warp/warp_saver.c +++ b/sys/modules/syscons/warp/warp_saver.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: warp_saver.c,v 1.3 1998/12/31 13:38:59 des Exp $ + * $Id: warp_saver.c,v 1.4 1999/01/11 03:18:55 yokota Exp $ */ #include <sys/param.h> @@ -81,7 +81,11 @@ warp_saver(video_adapter_t *adp, int blank) /* switch to graphics mode */ if (blanked <= 0) { pl = splhigh(); - set_video_mode(adp, M_VGA_CG320, warp_pal, 0); + set_video_mode(adp, M_VGA_CG320); + load_palette(adp, warp_pal); +#if 0 /* XXX conflict */ + set_border(adp, 0); +#endif blanked++; vid = (u_char *)adp->va_window; splx(pl); |