Cirrus SVGA card (in bochs)
Cirrus SVGA card (in bochs)
Has anybody made a driver for the graphics card which bochs emulates? Would it be possible to look at that? I havn't found any good document telling me how to init and handle the setup.
Re: Cirrus SVGA card (in bochs)
look: http://www.osdev.org/phpBB2/viewtopic.php?t=12348Seven11 wrote:Has anybody made a driver for the graphics card which bochs emulates? Would it be possible to look at that? I havn't found any good document telling me how to init and handle the setup.
so bochs and vmware emulates the same video card?
btw are you talking about http://www.osdev.org/phpBB2/viewtopic.p ... c&start=15 the post by core?
btw are you talking about http://www.osdev.org/phpBB2/viewtopic.p ... c&start=15 the post by core?
I don't think so.Seven11 wrote:so bochs and vmware emulates the same video card?
I think he's actually talking about this post on the first page of that thread, also by core.btw are you talking about http://www.osdev.org/phpBB2/viewtopic.p ... c&start=15 the post by core?
developping a cirrus driver for bochs restricts your OS to bochs and hardware using the cirrus graphics card. This is in general not a good think to do, better focus on vesa which supplies better resolutions on all/most graphics cards.
if you are using it for manipulating the text modes it is a different story. Vesa is harder then but the cirrus vga text mode doesn't behave any different then any other vga graphics card.
regards
if you are using it for manipulating the text modes it is a different story. Vesa is harder then but the cirrus vga text mode doesn't behave any different then any other vga graphics card.
regards
Author of COBOS
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
The driver in bochs is a VGA compatible - you can support a larger range of cards (including several NVidia's and ATIs) with such a driver instead of a CL driver, but i have to agree that a VESA driver is technically better, be it more difficult to implement. The VGA has IMO the best difficulty/support ratio you can get in Protected Mode.
various resources are here:
http://www.osdev.org/wiki/VGA_Hardware
http://www.osdev.org/wiki/VGA_Resources
http://www.osdever.net/FreeVGA/
and from my own os:
http://deimos.roeson.homelinux.net/comb ... vga_io.bas
http://deimos.roeson.homelinux.net/comb ... st_gfx.bas
These are written in BASIC, but should contain enough comments to write your own driver. You can have a look at Test_CRTC to see how to set a random resolution of your choice.
various resources are here:
http://www.osdev.org/wiki/VGA_Hardware
http://www.osdev.org/wiki/VGA_Resources
http://www.osdever.net/FreeVGA/
and from my own os:
http://deimos.roeson.homelinux.net/comb ... vga_io.bas
http://deimos.roeson.homelinux.net/comb ... st_gfx.bas
These are written in BASIC, but should contain enough comments to write your own driver. You can have a look at Test_CRTC to see how to set a random resolution of your choice.
well I have a VESA driver (so far 32-bit and 24-bit) already, however I'm planning to build a interface for graphics cards to support more accelerated functions impossible to do (at least without loosing to much cpu power) like Z-buffering, 3D and so on.
A VGA driver is on the way for the init process because of the scrollning features.
A VGA driver is on the way for the init process because of the scrollning features.