WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

[Xen-ia64-devel] [Patch][RFC] Auto setup serial console on PRIMEQUEST

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [Patch][RFC] Auto setup serial console on PRIMEQUEST
From: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
Date: Thu, 05 Apr 2007 10:44:14 +0900
Delivery-date: Wed, 04 Apr 2007 18:45:34 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I make a patch to use serial console without setting bootparameter on PQ.
I change the intel_tiger_console_setup(),
but should I add a function for PRIMEQUEST?

Signed-off-by: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>

---
diff -r 56caf0e37e6a xen/arch/ia64/linux-xen/setup.c
--- a/xen/arch/ia64/linux-xen/setup.c   Mon Mar 26 10:10:31 2007 -0600
+++ b/xen/arch/ia64/linux-xen/setup.c   Thu Apr 05 12:01:40 2007 +0900
@@ -316,7 +316,7 @@ io_port_init (void)
 
 #ifdef XEN
 static int __init
-intel_tiger_console_setup(void)
+machine_console_setup(void)
 {
        extern struct ns16550_defaults ns16550_com1;
        efi_system_table_t *systab;
@@ -352,9 +352,19 @@ intel_tiger_console_setup(void)
 
        if (strncmp(hdr->signature, XSDT_SIG, sizeof(XSDT_SIG) - 1))
                return -ENODEV;
-
        /*
-        * Only looking for Intel Tiger systems
+        * looking for Fujitsu PRIMEQUEST systems
+        */
+       if (!strncmp(hdr->oem_id, "FUJITSPQ", 8) &&
+           (!strncmp(hdr->oem_table_id, "PQ", 2))){
+               ns16550_com1.baud = BAUD_AUTO;
+               ns16550_com1.io_base =  0x3f8;
+               ns16550_com1.irq = 48;
+               return 0;
+       }
+
+       /*
+        * looking for Intel Tiger systems
         * Tiger 2: SR870BH2
         * Tiger 4: SR870BN4
         */
@@ -402,7 +412,7 @@ early_console_setup (char *cmdline)
 #endif
 
 #ifdef XEN
-       if (!intel_tiger_console_setup())
+       if (!machine_console_setup())
                earlycons++;
 #endif
        return (earlycons) ? 0 : -1;

Best Regards,

Akio Takebe


_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel

<Prev in Thread] Current Thread [Next in Thread>