[SeaBIOS] [PATCH v3 2/3] Boot up with a splash picture configurable

2011-07-04 Thread Wayne Xia
fix the jpeg decoder problem emerged when it was used in 24 BPP mode. Signed-off-by: Wayne Xia --- src/bootsplash.c |3 ++- src/jpeg.c | 31 ++- src/jpeg.h |4 ++-- 3 files changed, 26 insertions(+), 12 deletions(-) diff --git a/src/bootsplash.c

[SeaBIOS] [PATCH v3 3/3] Boot up with a splash picture configurable

2011-07-04 Thread Wayne Xia
make the showing time configurable. Signed-off-by: Wayne Xia --- src/boot.c | 25 - 1 files changed, 24 insertions(+), 1 deletions(-) diff --git a/src/boot.c b/src/boot.c index f3c165c..a76da4f 100644 --- a/src/boot.c +++ b/src/boot.c @@ -381,8 +381,31 @@ boot_add_cbfs

[SeaBIOS] [PATCH v3 1/3] Boot up with a splash picture configurable

2011-07-04 Thread Wayne Xia
added an option to let seabios show BMP file as a logo. Signed-off-by: Wayne Xia --- Makefile |4 +- src/bmp.c| 135 ++ src/bmp.h| 28 +++ src/bootsplash.c | 109 +-

[SeaBIOS] [PATCH v3 0/3] Boot up with a splash picture configurable

2011-07-04 Thread Wayne Xia
thanks for the comments. for the lzma decompressor, to enable compressing the qemu/kvm needs 8 files from lzma SDK, I am afraid this is a bit hard to be accepted by qemu for such logo showing feature. Following is some comments about the code. 2011-7-3 6:57, Kevin O'Connor: On Mon, Jun

Re: [SeaBIOS] [PATCH 1/4] pci: add two-pass pci initialization code

2011-07-04 Thread Gerd Hoffmann
Hi, +static struct pci_bus { +/* pci region stats */ +u32 io_count[16 - PCI_IO_INDEX_SHIFT]; +u32 mem_count[32 - PCI_MEM_INDEX_SHIFT]; +u32 prefmem_count[32 - PCI_MEM_INDEX_SHIFT]; +u32 io_sum, io_max; +u32 mem_sum, mem_max; +u32 prefmem_sum, prefmem_max; +/* se

[SeaBIOS] [PATCH v2 0/4] pci: two-pass initialization

2011-07-04 Thread Gerd Hoffmann
Hi, Here is v2 of the two-pass pci initialization code. Changed code according to Kevin's review: * Fixed the bus check. * Using a pci region type array now, which indeed made the code simpler and shorter. * The memory hole stuff is gone, there is a single address space area now.

[SeaBIOS] [PATCH v2 2/4] pci: activate two-pass pci initialization code

2011-07-04 Thread Gerd Hoffmann
This patch actually enables the two-pass pci initialization and deactivates the old pci initialization bits. Signed-off-by: Gerd Hoffmann --- src/pciinit.c | 35 +-- 1 files changed, 33 insertions(+), 2 deletions(-) diff --git a/src/pciinit.c b/src/pciinit.c in

[SeaBIOS] [PATCH v2 4/4] pci: init boot devices only on address space shortage

2011-07-04 Thread Gerd Hoffmann
Try to handle address space shortage by skipping any device which isn't essential for boot. Signed-off-by: Gerd Hoffmann --- src/pci.c |3 +++ src/pciinit.c | 51 +-- src/util.h|2 ++ 3 files changed, 54 insertions(+), 2 deletions

[SeaBIOS] [PATCH v2 3/4] pci: remove old pci initilaization code

2011-07-04 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- Makefile |2 +- src/pci_region.c | 77 - src/pciinit.c| 197 -- src/util.h | 29 4 files changed, 1 insertions(+), 304 deletions(-) delete mode 100644 src/

[SeaBIOS] [PATCH v2 1/4] pci: add two-pass pci initialization code

2011-07-04 Thread Gerd Hoffmann
This patch adds a second device scan to the pci initialization, which counts the memory bars of the various sizes and types. Then it calculates the sizes and the packing of the prefetchable and non-prefetchable pci memory windows and prints the results. The patch doesn't actually map the devices

Re: [SeaBIOS] [PATCH v2 1/4] pci: add two-pass pci initialization code

2011-07-04 Thread Kevin O'Connor
On Mon, Jul 04, 2011 at 12:59:09PM +0200, Gerd Hoffmann wrote: > This patch adds a second device scan to the pci initialization, which > counts the memory bars of the various sizes and types. Then it > calculates the sizes and the packing of the prefetchable and > non-prefetchable pci memory windo

Re: [SeaBIOS] [PATCH v3 3/3] Boot up with a splash picture configurable

2011-07-04 Thread Kevin O'Connor
On Mon, Jul 04, 2011 at 03:51:57PM +0800, Wayne Xia wrote: > make the showing time configurable. > > Signed-off-by: Wayne Xia Thanks. I'm okay with the first two patches, and will commit them if there are no further comments. > --- a/src/boot.c > +++ b/src/boot.c > @@ -381,8 +381,31 @@ boot_ad

[SeaBIOS] [PATCH v4 2/4] Boot up with a splash picture configurable

2011-07-04 Thread Wayne Xia
fix the jpeg decoder problem emerged when it was used in 24 BPP mode. Signed-off-by: Wayne Xia --- src/bootsplash.c |3 ++- src/jpeg.c | 31 ++- src/jpeg.h |4 ++-- 3 files changed, 26 insertions(+), 12 deletions(-) diff --git a/src/bootsplash.c

[SeaBIOS] [PATCH v4 3/4] Boot up with a splash picture configurable

2011-07-04 Thread Wayne Xia
make the showing time configurable. Signed-off-by: Wayne Xia --- src/boot.c | 25 - 1 files changed, 24 insertions(+), 1 deletions(-) diff --git a/src/boot.c b/src/boot.c index f3c165c..a76da4f 100644 --- a/src/boot.c +++ b/src/boot.c @@ -381,8 +381,31 @@ boot_add_cbfs

[SeaBIOS] [PATCH v4 4/4] Boot up with a splash picture configurable

2011-07-04 Thread Wayne Xia
added an option to do LZMA decompress on the splash data, in order to do this, adjusted some code in other files. Signed-off-by: Wayne Xia --- src/bootsplash.c | 35 --- src/coreboot.c | 47 ++- src/lzmadecode.c |

[SeaBIOS] [PATCH v4 1/4] Boot up with a splash picture configurable

2011-07-04 Thread Wayne Xia
added an option to let seabios show BMP file as a logo. Signed-off-by: Wayne Xia --- Makefile |4 +- src/bmp.c| 136 + src/bmp.h| 28 +++ src/bootsplash.c | 137 +++

[SeaBIOS] [PATCH v4 0/4] Boot up with a splash picture configurable

2011-07-04 Thread xiaxia347work
changed a bit to support the compressed data by LZMA algorithm. The attachment is the patch for qemu, just to be used to help test the patches for seabios. usage: patch the qemu, then run it like this: qemu-system-x86_64 -boot splash-time=,splash= -L FILE NAME could be a compressed bmp/jp

Re: [SeaBIOS] [PATCH v4 4/4] Boot up with a splash picture configurable

2011-07-04 Thread Kevin O'Connor
On Tue, Jul 05, 2011 at 01:19:43AM +0800, Wayne Xia wrote: > added an option to do LZMA decompress on the splash data, in order to do this, > adjusted some code in other files. > > Signed-off-by: Wayne Xia This not needed. On coreboot, just having a file named "bootsplash.bmp.lzma" is all that

Re: [SeaBIOS] [PATCH v3 0/3] Boot up with a splash picture configurable

2011-07-04 Thread Kevin O'Connor
On Mon, Jul 04, 2011 at 04:11:11PM +0800, Wayne Xia wrote: > 2011-7-3 6:57, Kevin O'Connor: > >On Mon, Jun 27, 2011 at 03:10:38PM +0800, Wayne Xia wrote: > >>+void raw_data_format_adjust_24bpp(u8 *src, u8 *dest, int width, int height, > >>+int bytes_per_line_src, int bytes_per_line_dest

[SeaBIOS] [PATCH v5 3/3] Boot up with a splash picture configurable

2011-07-04 Thread Wayne Xia
make the showing time configurable. Signed-off-by: Wayne Xia --- src/boot.c | 25 - 1 files changed, 24 insertions(+), 1 deletions(-) diff --git a/src/boot.c b/src/boot.c index f3c165c..a76da4f 100644 --- a/src/boot.c +++ b/src/boot.c @@ -381,8 +381,31 @@ boot_add_cbfs

[SeaBIOS] [PATCH v5 0/3] Boot up with a splash picture configurable

2011-07-04 Thread Wayne Xia
thanks for you patience, following is my comments. 2011-7-5 3:32, Kevin O'Connor : On Mon, Jul 04, 2011 at 04:11:11PM +0800, Wayne Xia wrote: 2011-7-3 6:57, Kevin O'Connor: On Mon, Jun 27, 2011 at 03:10:38PM +0800, Wayne Xia wrote: +void raw_data_format_adjust_24bpp(u8 *src, u8 *dest, int

[SeaBIOS] [PATCH v5 2/3] Boot up with a splash picture configurable

2011-07-04 Thread Wayne Xia
fix the jpeg decoder problem emerged when it was used in 24 BPP mode. Signed-off-by: Wayne Xia --- src/bootsplash.c |3 ++- src/jpeg.c | 31 ++- src/jpeg.h |4 ++-- 3 files changed, 26 insertions(+), 12 deletions(-) diff --git a/src/bootsplash.c

[SeaBIOS] [PATCH v5 1/3] Boot up with a splash picture configurable

2011-07-04 Thread Wayne Xia
added an option to let seabios show BMP file as a logo. Signed-off-by: Wayne Xia --- Makefile |4 +- src/bmp.c| 116 ++ src/bmp.h| 25 src/bootsplash.c | 109 ++---

Re: [SeaBIOS] [PATCH v3 3/3] Boot up with a splash picture configurable

2011-07-04 Thread Wayne Xia
于 2011-7-5 0:22, Kevin O'Connor 写道: On Mon, Jul 04, 2011 at 03:51:57PM +0800, Wayne Xia wrote: make the showing time configurable. Signed-off-by: Wayne Xia Thanks. I'm okay with the first two patches, and will commit them if there are no further comments. --- a/src/boot.c +++ b/src/boot.c