qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: [Qemu-devel] [PATCH] Define a new route for sending data to bios
  2009-02-12  6:48 ` [Qemu-devel] [PATCH] Define a new route for sending data to bios Cory Fields
@ 2009-02-12  6:41   ` Gleb Natapov
  2009-02-12 15:50     ` Blue Swirl
  0 siblings, 1 reply; 6+ messages in thread
From: Gleb Natapov @ 2009-02-12  6:41 UTC (permalink / raw)
  To: qemu-devel

On Thu, Feb 12, 2009 at 01:48:46AM -0500, Cory Fields wrote:
> diff --git a/hw/fw_cfg.h b/hw/fw_cfg.h
> index ef8f378..a119867 100644
> --- a/hw/fw_cfg.h
> +++ b/hw/fw_cfg.h
> @@ -8,6 +8,8 @@
>  #define FW_CFG_NOGRAPHIC        0x04
>  #define FW_CFG_NB_CPUS          0x05
>  #define FW_CFG_MACHINE_ID       0x06
> +#define FW_CFG_BIOSPROMPT       0x07
> +#define FW_CFG_QUIETBIOS        0x08
>  #define FW_CFG_MAX_ENTRY        0x10
>  
Are these config parameters relevant to platforms other then x86?

>  #define FW_CFG_WRITE_CHANNEL    0x4000
> diff --git a/sysemu.h b/sysemu.h
> index bc6d5af..14b9aef 100644
> --- a/sysemu.h
> +++ b/sysemu.h
> @@ -85,6 +85,9 @@ extern int graphic_width;
>  extern int graphic_height;
>  extern int graphic_depth;
>  extern int nographic;
> +extern int quietbios;
> +extern int biosprompt;
> +
>  extern const char *keyboard_layout;
>  extern int win2k_install_hack;
>  extern int rtc_td_hack;
> -- 
> 1.6.0.6
> 
> 

--
			Gleb.

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

* [Qemu-devel] [PATCH] Define a new route for sending data to bios
  2009-02-12  6:48 [Qemu-devel] [PATCH 0/4] Cory Fields
@ 2009-02-12  6:48 ` Cory Fields
  2009-02-12  6:41   ` Gleb Natapov
  0 siblings, 1 reply; 6+ messages in thread
From: Cory Fields @ 2009-02-12  6:48 UTC (permalink / raw)
  To: qemu-devel

---
 hw/fw_cfg.c |    2 ++
 hw/fw_cfg.h |    2 ++
 sysemu.h    |    3 +++
 3 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/hw/fw_cfg.c b/hw/fw_cfg.c
index 4333ed9..fe5d393 100644
--- a/hw/fw_cfg.c
+++ b/hw/fw_cfg.c
@@ -287,6 +287,8 @@ void *fw_cfg_init(uint32_t ctl_port, uint32_t data_port,
     fw_cfg_add_bytes(s, FW_CFG_UUID, qemu_uuid, 16);
     fw_cfg_add_i16(s, FW_CFG_NOGRAPHIC, (uint16_t)nographic);
     fw_cfg_add_i16(s, FW_CFG_NB_CPUS, (uint16_t)smp_cpus);
+    fw_cfg_add_i16(s, FW_CFG_QUIETBIOS, (uint16_t)quietbios);
+    fw_cfg_add_i16(s, FW_CFG_BIOSPROMPT, (uint16_t)biosprompt);
 
     register_savevm("fw_cfg", -1, 1, fw_cfg_save, fw_cfg_load, s);
     qemu_register_reset(fw_cfg_reset, s);
diff --git a/hw/fw_cfg.h b/hw/fw_cfg.h
index ef8f378..a119867 100644
--- a/hw/fw_cfg.h
+++ b/hw/fw_cfg.h
@@ -8,6 +8,8 @@
 #define FW_CFG_NOGRAPHIC        0x04
 #define FW_CFG_NB_CPUS          0x05
 #define FW_CFG_MACHINE_ID       0x06
+#define FW_CFG_BIOSPROMPT       0x07
+#define FW_CFG_QUIETBIOS        0x08
 #define FW_CFG_MAX_ENTRY        0x10
 
 #define FW_CFG_WRITE_CHANNEL    0x4000
diff --git a/sysemu.h b/sysemu.h
index bc6d5af..14b9aef 100644
--- a/sysemu.h
+++ b/sysemu.h
@@ -85,6 +85,9 @@ extern int graphic_width;
 extern int graphic_height;
 extern int graphic_depth;
 extern int nographic;
+extern int quietbios;
+extern int biosprompt;
+
 extern const char *keyboard_layout;
 extern int win2k_install_hack;
 extern int rtc_td_hack;
-- 
1.6.0.6

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

* Re: [Qemu-devel] [PATCH] Define a new route for sending data to bios
  2009-02-12  6:41   ` Gleb Natapov
@ 2009-02-12 15:50     ` Blue Swirl
  0 siblings, 0 replies; 6+ messages in thread
From: Blue Swirl @ 2009-02-12 15:50 UTC (permalink / raw)
  To: qemu-devel

On 2/12/09, Gleb Natapov <gleb@redhat.com> wrote:
> On Thu, Feb 12, 2009 at 01:48:46AM -0500, Cory Fields wrote:
>  > diff --git a/hw/fw_cfg.h b/hw/fw_cfg.h
>  > index ef8f378..a119867 100644
>  > --- a/hw/fw_cfg.h
>  > +++ b/hw/fw_cfg.h
>  > @@ -8,6 +8,8 @@
>  >  #define FW_CFG_NOGRAPHIC        0x04
>  >  #define FW_CFG_NB_CPUS          0x05
>  >  #define FW_CFG_MACHINE_ID       0x06
>  > +#define FW_CFG_BIOSPROMPT       0x07
>  > +#define FW_CFG_QUIETBIOS        0x08
>  >  #define FW_CFG_MAX_ENTRY        0x10
>  >
>
> Are these config parameters relevant to platforms other then x86?

Sparc and PPC use -prom-env 'auto-boot?=false' for !BIOSPROMPT
equivalent: OpenBIOS boots without delay from the device specified
with -boot, with auto-boot? variable set to false you get the Forth
prompt.

It would be possible to add FW_CFG_BIOSPROMPT support to OpenBIOS, but
it's duplicate functionality.

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

* Re: [Qemu-devel] [PATCH] Define a new route for sending data to bios
@ 2009-02-12 17:35 Cory Fields
  2009-02-15  6:49 ` Gleb Natapov
  0 siblings, 1 reply; 6+ messages in thread
From: Cory Fields @ 2009-02-12 17:35 UTC (permalink / raw)
  To: qemu-devel

>  Are these config parameters relevant to platforms other then x86?

Admittedly, I haven't looked beyond x86, so I'm not sure how the other bios 
function. Should they be ifdef'd or defined elsewhere?

Cory Fields

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

* [Qemu-devel] [PATCH] Define a new route for sending data to bios
  2009-02-14 23:57 [Qemu-devel] [PATCH 0/4] Option to suppress bios output and prompt (v2) Cory Fields
@ 2009-02-14 23:57 ` Cory Fields
  0 siblings, 0 replies; 6+ messages in thread
From: Cory Fields @ 2009-02-14 23:57 UTC (permalink / raw)
  To: qemu-devel

---
 hw/fw_cfg.c |    2 ++
 hw/fw_cfg.h |    2 ++
 sysemu.h    |    3 +++
 3 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/hw/fw_cfg.c b/hw/fw_cfg.c
index 4333ed9..fe5d393 100644
--- a/hw/fw_cfg.c
+++ b/hw/fw_cfg.c
@@ -287,6 +287,8 @@ void *fw_cfg_init(uint32_t ctl_port, uint32_t data_port,
     fw_cfg_add_bytes(s, FW_CFG_UUID, qemu_uuid, 16);
     fw_cfg_add_i16(s, FW_CFG_NOGRAPHIC, (uint16_t)nographic);
     fw_cfg_add_i16(s, FW_CFG_NB_CPUS, (uint16_t)smp_cpus);
+    fw_cfg_add_i16(s, FW_CFG_QUIETBIOS, (uint16_t)quietbios);
+    fw_cfg_add_i16(s, FW_CFG_BIOSPROMPT, (uint16_t)biosprompt);
 
     register_savevm("fw_cfg", -1, 1, fw_cfg_save, fw_cfg_load, s);
     qemu_register_reset(fw_cfg_reset, s);
diff --git a/hw/fw_cfg.h b/hw/fw_cfg.h
index ef8f378..a119867 100644
--- a/hw/fw_cfg.h
+++ b/hw/fw_cfg.h
@@ -8,6 +8,8 @@
 #define FW_CFG_NOGRAPHIC        0x04
 #define FW_CFG_NB_CPUS          0x05
 #define FW_CFG_MACHINE_ID       0x06
+#define FW_CFG_BIOSPROMPT       0x07
+#define FW_CFG_QUIETBIOS        0x08
 #define FW_CFG_MAX_ENTRY        0x10
 
 #define FW_CFG_WRITE_CHANNEL    0x4000
diff --git a/sysemu.h b/sysemu.h
index bc6d5af..14b9aef 100644
--- a/sysemu.h
+++ b/sysemu.h
@@ -85,6 +85,9 @@ extern int graphic_width;
 extern int graphic_height;
 extern int graphic_depth;
 extern int nographic;
+extern int quietbios;
+extern int biosprompt;
+
 extern const char *keyboard_layout;
 extern int win2k_install_hack;
 extern int rtc_td_hack;
-- 
1.6.0.6

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

* Re: [Qemu-devel] [PATCH] Define a new route for sending data to bios
  2009-02-12 17:35 [Qemu-devel] [PATCH] Define a new route for sending data to bios Cory Fields
@ 2009-02-15  6:49 ` Gleb Natapov
  0 siblings, 0 replies; 6+ messages in thread
From: Gleb Natapov @ 2009-02-15  6:49 UTC (permalink / raw)
  To: qemu-devel

On Thu, Feb 12, 2009 at 12:35:43PM -0500, Cory Fields wrote:
> >  Are these config parameters relevant to platforms other then x86?
> 
> Admittedly, I haven't looked beyond x86, so I'm not sure how the other bios 
> function. Should they be ifdef'd or defined elsewhere?
> 
They should be defined in pc.c as arch local defines (FW_CFG_ARCH_LOCAL + x).

--
			Gleb.

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

end of thread, other threads:[~2009-02-15  6:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-12 17:35 [Qemu-devel] [PATCH] Define a new route for sending data to bios Cory Fields
2009-02-15  6:49 ` Gleb Natapov
  -- strict thread matches above, loose matches on Subject: below --
2009-02-14 23:57 [Qemu-devel] [PATCH 0/4] Option to suppress bios output and prompt (v2) Cory Fields
2009-02-14 23:57 ` [Qemu-devel] [PATCH] Define a new route for sending data to bios Cory Fields
2009-02-12  6:48 [Qemu-devel] [PATCH 0/4] Cory Fields
2009-02-12  6:48 ` [Qemu-devel] [PATCH] Define a new route for sending data to bios Cory Fields
2009-02-12  6:41   ` Gleb Natapov
2009-02-12 15:50     ` Blue Swirl

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).