2 * Setup pointers to hardware-dependent routines.
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
8 * Copyright (C) 1996, 97, 98, 2000, 03, 04, 06 Ralf Baechle (ralf@linux-mips.org)
9 * Copyright (C) 2006 Thomas Bogendoerfer (tsbogend@alpha.franken.de)
11 #include <linux/eisa.h>
12 #include <linux/init.h>
13 #include <linux/console.h>
15 #include <linux/screen_info.h>
18 #include <asm/arc/types.h>
19 #include <asm/sgialib.h>
23 #include <asm/reboot.h>
26 unsigned int sni_brd_type
;
28 extern void sni_machine_restart(char *command
);
29 extern void sni_machine_halt(void);
30 extern void sni_machine_power_off(void);
32 static void __init
sni_display_setup(void)
34 #if defined(CONFIG_VT) && defined(CONFIG_VGA_CONSOLE) && defined(CONFIG_ARC)
35 struct screen_info
*si
= &screen_info
;
38 di
= ArcGetDisplayStatus(1);
41 si
->orig_x
= di
->CursorXPosition
;
42 si
->orig_y
= di
->CursorYPosition
;
43 si
->orig_video_cols
= di
->CursorMaxXPosition
;
44 si
->orig_video_lines
= di
->CursorMaxYPosition
;
45 si
->orig_video_isVGA
= VIDEO_TYPE_VGAC
;
46 si
->orig_video_points
= 16;
52 void __init
plat_mem_setup(void)
54 set_io_port_base(SNI_PORT_BASE
);
55 // ioport_resource.end = sni_io_resource.end;
58 * Setup (E)ISA I/O memory access stuff
60 isa_slot_offset
= 0xb0000000;
65 switch (sni_brd_type
) {
68 case SNI_BRD_TOWER_OASIC
:
69 case SNI_BRD_MINITOWER
:
73 case SNI_BRD_PCI_TOWER
:
74 case SNI_BRD_PCI_TOWER_CPLUS
:
82 case SNI_BRD_PCI_MTOWER
:
83 case SNI_BRD_PCI_DESKTOP
:
84 case SNI_BRD_PCI_MTOWER_CPLUS
:
89 _machine_restart
= sni_machine_restart
;
90 _machine_halt
= sni_machine_halt
;
91 pm_power_off
= sni_machine_power_off
;