aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/dig/setup.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/ia64/dig/setup.c
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'arch/ia64/dig/setup.c')
-rw-r--r--arch/ia64/dig/setup.c86
1 files changed, 86 insertions, 0 deletions
diff --git a/arch/ia64/dig/setup.c b/arch/ia64/dig/setup.c
new file mode 100644
index 000000000000..d58003f1ad02
--- /dev/null
+++ b/arch/ia64/dig/setup.c
@@ -0,0 +1,86 @@
1/*
2 * Platform dependent support for DIG64 platforms.
3 *
4 * Copyright (C) 1999 Intel Corp.
5 * Copyright (C) 1999, 2001 Hewlett-Packard Co
6 * Copyright (C) 1999, 2001, 2003 David Mosberger-Tang <davidm@hpl.hp.com>
7 * Copyright (C) 1999 VA Linux Systems
8 * Copyright (C) 1999 Walt Drummond <drummond@valinux.com>
9 * Copyright (C) 1999 Vijay Chander <vijay@engr.sgi.com>
10 */
11#include <linux/config.h>
12
13#include <linux/init.h>
14#include <linux/delay.h>
15#include <linux/kernel.h>
16#include <linux/kdev_t.h>
17#include <linux/string.h>
18#include <linux/tty.h>
19#include <linux/console.h>
20#include <linux/timex.h>
21#include <linux/sched.h>
22#include <linux/root_dev.h>
23
24#include <asm/io.h>
25#include <asm/machvec.h>
26#include <asm/system.h>
27
28/*
29 * This is here so we can use the CMOS detection in ide-probe.c to
30 * determine what drives are present. In theory, we don't need this
31 * as the auto-detection could be done via ide-probe.c:do_probe() but
32 * in practice that would be much slower, which is painful when
33 * running in the simulator. Note that passing zeroes in DRIVE_INFO
34 * is sufficient (the IDE driver will autodetect the drive geometry).
35 */
36char drive_info[4*16];
37
38void __init
39dig_setup (char **cmdline_p)
40{
41 unsigned int orig_x, orig_y, num_cols, num_rows, font_height;
42
43 /*
44 * Default to /dev/sda2. This assumes that the EFI partition
45 * is physical disk 1 partition 1 and the Linux root disk is
46 * physical disk 1 partition 2.
47 */
48 ROOT_DEV = Root_SDA2; /* default to second partition on first drive */
49
50#ifdef CONFIG_SMP
51 init_smp_config();
52#endif
53
54 memset(&screen_info, 0, sizeof(screen_info));
55
56 if (!ia64_boot_param->console_info.num_rows
57 || !ia64_boot_param->console_info.num_cols)
58 {
59 printk(KERN_WARNING "dig_setup: warning: invalid screen-info, guessing 80x25\n");
60 orig_x = 0;
61 orig_y = 0;
62 num_cols = 80;
63 num_rows = 25;
64 font_height = 16;
65 } else {
66 orig_x = ia64_boot_param->console_info.orig_x;
67 orig_y = ia64_boot_param->console_info.orig_y;
68 num_cols = ia64_boot_param->console_info.num_cols;
69 num_rows = ia64_boot_param->console_info.num_rows;
70 font_height = 400 / num_rows;
71 }
72
73 screen_info.orig_x = orig_x;
74 screen_info.orig_y = orig_y;
75 screen_info.orig_video_cols = num_cols;
76 screen_info.orig_video_lines = num_rows;
77 screen_info.orig_video_points = font_height;
78 screen_info.orig_video_mode = 3; /* XXX fake */
79 screen_info.orig_video_isVGA = 1; /* XXX fake */
80 screen_info.orig_video_ega_bx = 3; /* XXX fake */
81}
82
83void __init
84dig_irq_init (void)
85{
86}