diff options
author | Peter Chubb <peterc@gelato.unsw.edu.au> | 2007-08-20 23:57:01 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2007-09-01 05:52:25 -0400 |
commit | 7b3166dbc3df5b72f2ba4ea130f4461e318a3838 (patch) | |
tree | ef93805e4321adf8f3994e749894ab3451e7cab4 | |
parent | 8b713c67bccef7cabb0ee915f47eb33d82636af9 (diff) |
[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 <peterc@gelato.unsw.edu.au>
Signed-off-by: Tony Luck <tony.luck@intel.com>
-rw-r--r-- | arch/ia64/hp/sim/hpsim_console.c | 1 | ||||
-rw-r--r-- | arch/ia64/hp/sim/simeth.c | 12 | ||||
-rw-r--r-- | arch/ia64/hp/sim/simscsi.c | 3 | ||||
-rw-r--r-- | 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 0475a5452404..01663bc42b1a 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) | |||
59 | 59 | ||
60 | static struct tty_driver *simcons_console_device (struct console *c, int *index) | 60 | static struct tty_driver *simcons_console_device (struct console *c, int *index) |
61 | { | 61 | { |
62 | extern struct tty_driver *hp_simserial_driver; | ||
63 | *index = c->index; | 62 | *index = c->index; |
64 | return hp_simserial_driver; | 63 | return hp_simserial_driver; |
65 | } | 64 | } |
diff --git a/arch/ia64/hp/sim/simeth.c b/arch/ia64/hp/sim/simeth.c index f26077a773d5..4017696ada63 100644 --- a/arch/ia64/hp/sim/simeth.c +++ b/arch/ia64/hp/sim/simeth.c | |||
@@ -22,6 +22,9 @@ | |||
22 | #include <linux/bitops.h> | 22 | #include <linux/bitops.h> |
23 | #include <asm/system.h> | 23 | #include <asm/system.h> |
24 | #include <asm/irq.h> | 24 | #include <asm/irq.h> |
25 | #include <asm/hpsim.h> | ||
26 | |||
27 | #include "hpsim_ssc.h" | ||
25 | 28 | ||
26 | #define SIMETH_RECV_MAX 10 | 29 | #define SIMETH_RECV_MAX 10 |
27 | 30 | ||
@@ -35,12 +38,6 @@ | |||
35 | #define SIMETH_FRAME_SIZE ETH_FRAME_LEN | 38 | #define SIMETH_FRAME_SIZE ETH_FRAME_LEN |
36 | 39 | ||
37 | 40 | ||
38 | #define SSC_NETDEV_PROBE 100 | ||
39 | #define SSC_NETDEV_SEND 101 | ||
40 | #define SSC_NETDEV_RECV 102 | ||
41 | #define SSC_NETDEV_ATTACH 103 | ||
42 | #define SSC_NETDEV_DETACH 104 | ||
43 | |||
44 | #define NETWORK_INTR 8 | 41 | #define NETWORK_INTR 8 |
45 | 42 | ||
46 | struct simeth_local { | 43 | struct simeth_local { |
@@ -124,9 +121,6 @@ simeth_probe (void) | |||
124 | return r; | 121 | return r; |
125 | } | 122 | } |
126 | 123 | ||
127 | extern long ia64_ssc (long, long, long, long, int); | ||
128 | extern void ia64_ssc_connect_irq (long intr, long irq); | ||
129 | |||
130 | static inline int | 124 | static inline int |
131 | netdev_probe(char *name, unsigned char *ether) | 125 | netdev_probe(char *name, unsigned char *ether) |
132 | { | 126 | { |
diff --git a/arch/ia64/hp/sim/simscsi.c b/arch/ia64/hp/sim/simscsi.c index e62694f8ef75..4552a1cf5b33 100644 --- a/arch/ia64/hp/sim/simscsi.c +++ b/arch/ia64/hp/sim/simscsi.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
15 | #include <linux/timer.h> | 15 | #include <linux/timer.h> |
16 | #include <asm/irq.h> | 16 | #include <asm/irq.h> |
17 | #include "hpsim_ssc.h" | ||
17 | 18 | ||
18 | #include <scsi/scsi.h> | 19 | #include <scsi/scsi.h> |
19 | #include <scsi/scsi_cmnd.h> | 20 | #include <scsi/scsi_cmnd.h> |
@@ -59,8 +60,6 @@ struct disk_stat { | |||
59 | unsigned count; | 60 | unsigned count; |
60 | }; | 61 | }; |
61 | 62 | ||
62 | extern long ia64_ssc (long arg0, long arg1, long arg2, long arg3, int nr); | ||
63 | |||
64 | static int desc[16] = { | 63 | static int desc[16] = { |
65 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 | 64 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 |
66 | }; | 65 | }; |
diff --git a/include/asm-ia64/hpsim.h b/include/asm-ia64/hpsim.h index d6be3fdc39fa..892ab198a9da 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; } | |||
7 | int simcons_register(void); | 7 | int simcons_register(void); |
8 | #endif | 8 | #endif |
9 | 9 | ||
10 | struct tty_driver; | ||
11 | extern struct tty_driver *hp_simserial_driver; | ||
12 | |||
13 | void ia64_ssc_connect_irq(long intr, long irq); | ||
14 | void ia64_ctl_trace(long on); | ||
15 | |||
10 | #endif | 16 | #endif |