diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2007-09-04 03:43:57 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2007-09-04 03:43:57 -0400 |
commit | ea3c4b126ad63bd782c7bb5266bb4fd88e203169 (patch) | |
tree | 1b1dedd3ee501c165910389aea9082fb96a9e8f4 /arch/ia64/hp/sim | |
parent | a5229e6b3fb77ef92ff585e17ba4aa8a3e945727 (diff) | |
parent | 7b3166dbc3df5b72f2ba4ea130f4461e318a3838 (diff) |
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6
Diffstat (limited to 'arch/ia64/hp/sim')
-rw-r--r-- | arch/ia64/hp/sim/hpsim_console.c | 16 | ||||
-rw-r--r-- | arch/ia64/hp/sim/hpsim_setup.c | 9 | ||||
-rw-r--r-- | arch/ia64/hp/sim/simeth.c | 12 | ||||
-rw-r--r-- | arch/ia64/hp/sim/simscsi.c | 3 |
4 files changed, 20 insertions, 20 deletions
diff --git a/arch/ia64/hp/sim/hpsim_console.c b/arch/ia64/hp/sim/hpsim_console.c index 6e149c8ab83..01663bc42b1 100644 --- a/arch/ia64/hp/sim/hpsim_console.c +++ b/arch/ia64/hp/sim/hpsim_console.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <asm/machvec.h> | 21 | #include <asm/machvec.h> |
22 | #include <asm/pgtable.h> | 22 | #include <asm/pgtable.h> |
23 | #include <asm/sal.h> | 23 | #include <asm/sal.h> |
24 | #include <asm/hpsim.h> | ||
24 | 25 | ||
25 | #include "hpsim_ssc.h" | 26 | #include "hpsim_ssc.h" |
26 | 27 | ||
@@ -28,7 +29,7 @@ static int simcons_init (struct console *, char *); | |||
28 | static void simcons_write (struct console *, const char *, unsigned); | 29 | static void simcons_write (struct console *, const char *, unsigned); |
29 | static struct tty_driver *simcons_console_device (struct console *, int *); | 30 | static struct tty_driver *simcons_console_device (struct console *, int *); |
30 | 31 | ||
31 | struct console hpsim_cons = { | 32 | static struct console hpsim_cons = { |
32 | .name = "simcons", | 33 | .name = "simcons", |
33 | .write = simcons_write, | 34 | .write = simcons_write, |
34 | .device = simcons_console_device, | 35 | .device = simcons_console_device, |
@@ -58,7 +59,18 @@ simcons_write (struct console *cons, const char *buf, unsigned count) | |||
58 | 59 | ||
59 | 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) |
60 | { | 61 | { |
61 | extern struct tty_driver *hp_simserial_driver; | ||
62 | *index = c->index; | 62 | *index = c->index; |
63 | return hp_simserial_driver; | 63 | return hp_simserial_driver; |
64 | } | 64 | } |
65 | |||
66 | int simcons_register(void) | ||
67 | { | ||
68 | if (!ia64_platform_is("hpsim")) | ||
69 | return 1; | ||
70 | |||
71 | if (hpsim_cons.flags & CON_ENABLED) | ||
72 | return 1; | ||
73 | |||
74 | register_console(&hpsim_cons); | ||
75 | return 0; | ||
76 | } | ||
diff --git a/arch/ia64/hp/sim/hpsim_setup.c b/arch/ia64/hp/sim/hpsim_setup.c index f2297192a58..f629e903ebc 100644 --- a/arch/ia64/hp/sim/hpsim_setup.c +++ b/arch/ia64/hp/sim/hpsim_setup.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <asm/machvec.h> | 21 | #include <asm/machvec.h> |
22 | #include <asm/pgtable.h> | 22 | #include <asm/pgtable.h> |
23 | #include <asm/sal.h> | 23 | #include <asm/sal.h> |
24 | #include <asm/hpsim.h> | ||
24 | 25 | ||
25 | #include "hpsim_ssc.h" | 26 | #include "hpsim_ssc.h" |
26 | 27 | ||
@@ -41,11 +42,5 @@ hpsim_setup (char **cmdline_p) | |||
41 | { | 42 | { |
42 | ROOT_DEV = Root_SDA1; /* default to first SCSI drive */ | 43 | ROOT_DEV = Root_SDA1; /* default to first SCSI drive */ |
43 | 44 | ||
44 | #ifdef CONFIG_HP_SIMSERIAL_CONSOLE | 45 | simcons_register(); |
45 | { | ||
46 | extern struct console hpsim_cons; | ||
47 | if (ia64_platform_is("hpsim")) | ||
48 | register_console(&hpsim_cons); | ||
49 | } | ||
50 | #endif | ||
51 | } | 46 | } |
diff --git a/arch/ia64/hp/sim/simeth.c b/arch/ia64/hp/sim/simeth.c index f26077a773d..4017696ada6 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 e62694f8ef7..4552a1cf5b3 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 | }; |