qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Add DPMS support to cirrus vga bios.
@ 2008-12-11 14:57 Gleb Natapov
  2008-12-11 19:02 ` [Qemu-devel] Re: [Bochs-developers] " Sebastian Herbszt
  0 siblings, 1 reply; 3+ messages in thread
From: Gleb Natapov @ 2008-12-11 14:57 UTC (permalink / raw)
  To: qemu-devel, bochs-developers

I am not sure who maintains vgabios :(

Signed-off-by: Gleb Natapov <gleb@redhat.com>

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.

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Qemu-devel] Re: [Bochs-developers] [PATCH] Add DPMS support to cirrus vga bios.
  2008-12-11 14:57 [Qemu-devel] [PATCH] Add DPMS support to cirrus vga bios Gleb Natapov
@ 2008-12-11 19:02 ` Sebastian Herbszt
  2008-12-11 21:11   ` Anthony Liguori
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Herbszt @ 2008-12-11 19:02 UTC (permalink / raw)
  To: Gleb Natapov, qemu-devel, bochs-developers

Gleb Natapov wrote:

> I am not sure who maintains vgabios :(

Volker does at http://www.nongnu.org/vgabios/

- Sebastian
 
> Signed-off-by: Gleb Natapov <gleb@redhat.com>
> 
> 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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] Re: [Bochs-developers] [PATCH] Add DPMS support to cirrus vga bios.
  2008-12-11 19:02 ` [Qemu-devel] Re: [Bochs-developers] " Sebastian Herbszt
@ 2008-12-11 21:11   ` Anthony Liguori
  0 siblings, 0 replies; 3+ messages in thread
From: Anthony Liguori @ 2008-12-11 21:11 UTC (permalink / raw)
  To: qemu-devel; +Cc: bochs-developers, Gleb Natapov

Sebastian Herbszt wrote:
> Gleb Natapov wrote:
>
>> I am not sure who maintains vgabios :(
>
> Volker does at http://www.nongnu.org/vgabios/

Gleb:  can you give Volker a poke?

I'm testing out the newest bochs bios.  There's been quite a lot of 
changes since our last sync.  I'd like to switch over to that tomorrow 
if all goes well.  I'll see about updating the vgabios too.

Regards,

Anthony Liguori

> - Sebastian
>
>> Signed-off-by: Gleb Natapov <gleb@redhat.com>
>>
>> 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.
>
>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-12-11 21:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-11 14:57 [Qemu-devel] [PATCH] Add DPMS support to cirrus vga bios Gleb Natapov
2008-12-11 19:02 ` [Qemu-devel] Re: [Bochs-developers] " Sebastian Herbszt
2008-12-11 21:11   ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).