History log of /haiku/src/system/boot/platform/atari_m68k/video.cpp
Revision Date Author Comments
# bb6e4f5d 06-Aug-2019 Adrien Destugues <pulkomandy@pulkomandy.tk>

Boot menu: clarify variable usage

The video mode hook gets passed a menu and an item, but is actually
interested in the submenu pointed by the item and the items inside that.

Don't reuse the passed parameters and instead declare new local
variables.

Change-Id: Id17adde552fac2c248afa78380ff299fb21bc968
Reviewed-on: https://review.haiku-os.org/c/1693
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 04cbc258 02-Aug-2018 Fredrik Holmqvist <fredrik.holmqvist@gmail.com>

Use fast clearing of visible screen for splash

memset uses rep stosb on x86 during boot, with memory
not set to write-combining, which makes it slow.

Instead we do aligned writes of 2 x four bytes at once.
Only clear the minimum of size and width * height * 4
UEFI framebuffer size can be huge, upto 512MB here,
and rep stosb seems to be around 25-30MB/s

This is written as generic as possible to work on
old compilers and different platforms, without
expecting boot memset to be optimized.

This makes it almost unnoticable compared to not
clearing.


# 15db6949 01-Aug-2018 Fredrik Holmqvist <fredrik.holmqvist@gmail.com>

Don't clear video mem on UEFI, efi video mode refactor

Writes to videomem is slow without memory remapping
Can't do the mapping without leaving UEFI, so skipping
the clear. Afaict it should always be cleared by UEFI

This saves ~10 seconds of booting on my machine
(1920*1080*4 bytes)

EFI video mode (should have been it's own commit)
* Only do strcmp if there are enough params
* break when found


# 8e977a87 04-Jan-2012 François Revol <revol@free.fr>

M68K: Only enumerate ST modes as fallback.


# f62ad342 18-Aug-2011 François Revol <revol@free.fr>

Add support for enumerating video modes using the Milan API and the ST/TT XBIOS calls. Not really tested, ARAnyM doesn't emulate the Milan stuff, and the ST resolutions aren't exactly chunky anyway (will need patching the framebuffer kernel args to include the mode/4CC instead of just bit depth).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42640 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 34dc9962 20-Nov-2010 François Revol <revol@free.fr>

Update copyrights.
Btw Axel, keyboard.cpp (forked from the bios_ia32 one) is still under "OpenBeOS licence" with 2 other copies, I suppose you are ok to change to MIT ?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39548 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 180ffdea 20-Nov-2010 François Revol <revol@free.fr>

Cleanup. Try to exit ARAnyM from platform_exit().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39547 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 866bb10f 20-Nov-2010 François Revol <revol@free.fr>

Add some more Falcon video modes. Use VsetRGB() to set 8bit palette, though it's not really useful yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39544 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2d844443 19-Nov-2010 François Revol <revol@free.fr>

Native Falcon video modes support, including truecolor (16bpp chunky) which we can use for the boot splash. Some debugging code left to cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39533 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 42df5ff1 19-Nov-2010 François Revol <revol@free.fr>

Some support for video initialization using natfeat fVDI, but sadly it seems to return NULL for the framebuffer so it's not usable.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39506 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e07a1266 02-Aug-2008 François Revol <revol@free.fr>

Start of boot video mode support. Not finished.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26749 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0ae19574 23-Jul-2008 François Revol <revol@free.fr>

- Cleanup
- rewrote early_query() to use the TT0 mapping to remove the page_hole stuff.
- fixed natfeat, using a page set up from the bootloader for now as it wants physical address. At least it's enough to see from the debugger:
load kernel...
kernel entry at 8003711a
Welcome to kernel debugger output!
Haiku revision: 26582
PANIC: unknown cpu_type 68040

Welcome to Kernel Debugging Land...
Running on CPU 0
kdebug>


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26599 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 94644dfb 10-Jan-2008 François Revol <revol@free.fr>

No images yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23364 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 81c66ced 10-Jan-2008 François Revol <revol@free.fr>

Video mode menu and support stubs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23363 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8e977a874fb5556611510dc8cb21f4c52f25be9c 04-Jan-2012 François Revol <revol@free.fr>

M68K: Only enumerate ST modes as fallback.


# f62ad34221ac5836c90077df84f8b9420a30be64 18-Aug-2011 François Revol <revol@free.fr>

Add support for enumerating video modes using the Milan API and the ST/TT XBIOS calls. Not really tested, ARAnyM doesn't emulate the Milan stuff, and the ST resolutions aren't exactly chunky anyway (will need patching the framebuffer kernel args to include the mode/4CC instead of just bit depth).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42640 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 34dc99625d99a68273ac46eeb33fab18dfba19b7 20-Nov-2010 François Revol <revol@free.fr>

Update copyrights.
Btw Axel, keyboard.cpp (forked from the bios_ia32 one) is still under "OpenBeOS licence" with 2 other copies, I suppose you are ok to change to MIT ?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39548 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 180ffdeaa4b04f39706a1d92a4d14fe78fd31da7 20-Nov-2010 François Revol <revol@free.fr>

Cleanup. Try to exit ARAnyM from platform_exit().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39547 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 866bb10f428d8b5d62971bc2c8e1ce6ebce389e8 20-Nov-2010 François Revol <revol@free.fr>

Add some more Falcon video modes. Use VsetRGB() to set 8bit palette, though it's not really useful yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39544 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2d844443517bd228375d362aed2e15f0490935b8 19-Nov-2010 François Revol <revol@free.fr>

Native Falcon video modes support, including truecolor (16bpp chunky) which we can use for the boot splash. Some debugging code left to cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39533 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 42df5ff10297b07436d5a087d0850bbcea4d875d 19-Nov-2010 François Revol <revol@free.fr>

Some support for video initialization using natfeat fVDI, but sadly it seems to return NULL for the framebuffer so it's not usable.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39506 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e07a1266f0b6d1079927591ebd1e603dc2c17c00 02-Aug-2008 François Revol <revol@free.fr>

Start of boot video mode support. Not finished.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26749 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0ae1957465684431b9b568cdab1302fce2b4406f 23-Jul-2008 François Revol <revol@free.fr>

- Cleanup
- rewrote early_query() to use the TT0 mapping to remove the page_hole stuff.
- fixed natfeat, using a page set up from the bootloader for now as it wants physical address. At least it's enough to see from the debugger:
load kernel...
kernel entry at 8003711a
Welcome to kernel debugger output!
Haiku revision: 26582
PANIC: unknown cpu_type 68040

Welcome to Kernel Debugging Land...
Running on CPU 0
kdebug>


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26599 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 94644dfbbcfdd976c3ee9a03010666424786d474 10-Jan-2008 François Revol <revol@free.fr>

No images yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23364 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 81c66ced7dfc99cf8723140ea7931c7cce910b89 10-Jan-2008 François Revol <revol@free.fr>

Video mode menu and support stubs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23363 a95241bf-73f2-0310-859d-f6bbb57e9c96