Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LAqog-0003Be-Kb for qemu-devel@nongnu.org; Thu, 11 Dec 2008 14:03:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LAqoe-00039x-Vz for qemu-devel@nongnu.org; Thu, 11 Dec 2008 14:03:18 -0500 Received: from [199.232.76.173] (port=60850 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LAqoe-00039c-Rm for qemu-devel@nongnu.org; Thu, 11 Dec 2008 14:03:16 -0500 Received: from mail.gmx.net ([213.165.64.20]:44013) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LAqod-0003pr-Dq for qemu-devel@nongnu.org; Thu, 11 Dec 2008 14:03:16 -0500 Message-ID: From: "Sebastian Herbszt" References: <20081211145724.GM5555@redhat.com> In-Reply-To: <20081211145724.GM5555@redhat.com> Date: Thu, 11 Dec 2008 20:02:28 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [Bochs-developers] [PATCH] Add DPMS support to cirrus vga bios. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gleb Natapov , qemu-devel@nongnu.org, bochs-developers@lists.sourceforge.net Gleb Natapov wrote: > I am not sure who maintains vgabios :( Volker does at http://www.nongnu.org/vgabios/ - Sebastian > Signed-off-by: Gleb Natapov > > diff --git a/vgabios/clext.c b/vgabios/clext.c > index ea37ec5..c7a2ad0 100644 > --- a/vgabios/clext.c > +++ b/vgabios/clext.c > @@ -510,7 +510,7 @@ cirrus_vesa: > #ifdef CIRRUS_DEBUG > call cirrus_debug_dump > #endif > - cmp al, #0x0F > + cmp al, #0x10 > ja cirrus_vesa_not_handled > push bx > xor bx, bx > @@ -1196,6 +1196,37 @@ cirrus_vesa_07h_2: > mov ax, #0x004f > ret > > +cirrus_vesa_10h: > + cmp bl, #0x00 > + jne cirrus_vesa_10h_01 > + mov bx, #0x0f30 > + mov ax, #0x004f > + ret > +cirrus_vesa_10h_01: > + cmp bl, #0x01 > + jne cirrus_vesa_10h_02 > + push dx > + push ds > + mov dx, #0x40 > + mov ds, dx > + mov [0xb9], bh > + pop ds > + pop dx > + mov ax, #0x004f > + ret > +cirrus_vesa_10h_02: > + cmp bl, #0x02 > + jne cirrus_vesa_unimplemented > + push dx > + push ds > + mov dx, #0x40 > + mov ds, dx > + mov bh, [0xb9] > + pop ds > + pop dx > + mov ax, #0x004f > + ret > + > cirrus_vesa_unimplemented: > mov ax, #0x014F ;; not implemented > ret > @@ -1612,7 +1643,8 @@ cirrus_vesa_handlers: > dw cirrus_vesa_unimplemented > dw cirrus_vesa_unimplemented > dw cirrus_vesa_unimplemented > - > + ;; 10h > + dw cirrus_vesa_10h > > > ASM_END > -- > Gleb.