Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7b3166dbc3df5b72f2ba4ea130f4461e318a3838
Commit:     7b3166dbc3df5b72f2ba4ea130f4461e318a3838
Parent:     8b713c67bccef7cabb0ee915f47eb33d82636af9
Author:     Peter Chubb <[EMAIL PROTECTED]>
AuthorDate: Tue Aug 21 13:57:01 2007 +1000
Committer:  Tony Luck <[EMAIL PROTECTED]>
CommitDate: Sat Sep 1 02:52:25 2007 -0700

    [IA64] Cleanup HPSIM code (was: Re: Enable early console for Ski simulator)
    
    After my last patch we have a new header file for HP simulator use.
    Here's code to use it for stuff that used to have `extern' statements
    inline in the code.  Functionality should not change with this patch.
    
    Signed-off-by: Peter Chubb <[EMAIL PROTECTED]>
    Signed-off-by: Tony Luck <[EMAIL PROTECTED]>
---
 arch/ia64/hp/sim/hpsim_console.c |    1 -
 arch/ia64/hp/sim/simeth.c        |   12 +++---------
 arch/ia64/hp/sim/simscsi.c       |    3 +--
 include/asm-ia64/hpsim.h         |    6 ++++++
 4 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/arch/ia64/hp/sim/hpsim_console.c b/arch/ia64/hp/sim/hpsim_console.c
index 0475a54..01663bc 100644
--- a/arch/ia64/hp/sim/hpsim_console.c
+++ b/arch/ia64/hp/sim/hpsim_console.c
@@ -59,7 +59,6 @@ simcons_write (struct console *cons, const char *buf, 
unsigned count)
 
 static struct tty_driver *simcons_console_device (struct console *c, int 
*index)
 {
-       extern struct tty_driver *hp_simserial_driver;
        *index = c->index;
        return hp_simserial_driver;
 }
diff --git a/arch/ia64/hp/sim/simeth.c b/arch/ia64/hp/sim/simeth.c
index f26077a..4017696 100644
--- a/arch/ia64/hp/sim/simeth.c
+++ b/arch/ia64/hp/sim/simeth.c
@@ -22,6 +22,9 @@
 #include <linux/bitops.h>
 #include <asm/system.h>
 #include <asm/irq.h>
+#include <asm/hpsim.h>
+
+#include "hpsim_ssc.h"
 
 #define SIMETH_RECV_MAX        10
 
@@ -35,12 +38,6 @@
 #define SIMETH_FRAME_SIZE      ETH_FRAME_LEN
 
 
-#define SSC_NETDEV_PROBE               100
-#define SSC_NETDEV_SEND                        101
-#define SSC_NETDEV_RECV                        102
-#define SSC_NETDEV_ATTACH              103
-#define SSC_NETDEV_DETACH              104
-
 #define NETWORK_INTR                   8
 
 struct simeth_local {
@@ -124,9 +121,6 @@ simeth_probe (void)
        return r;
 }
 
-extern long ia64_ssc (long, long, long, long, int);
-extern void ia64_ssc_connect_irq (long intr, long irq);
-
 static inline int
 netdev_probe(char *name, unsigned char *ether)
 {
diff --git a/arch/ia64/hp/sim/simscsi.c b/arch/ia64/hp/sim/simscsi.c
index e62694f..4552a1c 100644
--- a/arch/ia64/hp/sim/simscsi.c
+++ b/arch/ia64/hp/sim/simscsi.c
@@ -14,6 +14,7 @@
 #include <linux/kernel.h>
 #include <linux/timer.h>
 #include <asm/irq.h>
+#include "hpsim_ssc.h"
 
 #include <scsi/scsi.h>
 #include <scsi/scsi_cmnd.h>
@@ -59,8 +60,6 @@ struct disk_stat {
        unsigned count;
 };
 
-extern long ia64_ssc (long arg0, long arg1, long arg2, long arg3, int nr);
-
 static int desc[16] = {
        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
 };
diff --git a/include/asm-ia64/hpsim.h b/include/asm-ia64/hpsim.h
index d6be3fd..892ab19 100644
--- a/include/asm-ia64/hpsim.h
+++ b/include/asm-ia64/hpsim.h
@@ -7,4 +7,10 @@ static inline int simcons_register(void) { return 1; }
 int simcons_register(void);
 #endif
 
+struct tty_driver;
+extern struct tty_driver *hp_simserial_driver;
+
+void ia64_ssc_connect_irq(long intr, long irq);
+void ia64_ctl_trace(long on);
+
 #endif
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to