File: mach_hp600.c

package info (click to toggle)
kernel-source-2.4.14 2.4.14-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 139,160 kB
  • ctags: 428,423
  • sloc: ansic: 2,435,554; asm: 141,119; makefile: 8,258; sh: 3,099; perl: 2,561; yacc: 1,177; cpp: 755; tcl: 577; lex: 352; awk: 251; lisp: 218; sed: 72
file content (158 lines) | stat: -rw-r--r-- 3,319 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
/*
 * linux/arch/sh/kernel/mach_hp600.c
 *
 * Copyright (C) 2000 Stuart Menefy (stuart.menefy@st.com)
 *
 * May be copied or modified under the terms of the GNU General Public
 * License.  See linux/COPYING for more information.
 *
 * Machine vector for the HP600
 */

#include <linux/init.h>

#include <asm/machvec.h>
#include <asm/rtc.h>
#include <asm/machvec_init.h>

#include <asm/io.h>
#include <asm/hd64461.h>
#include <asm/irq.h>

/*
 * The Machine Vector
 */

struct sh_machine_vector mv_hp620 __initmv = {
	mv_name:		"hp620",

	mv_nr_irqs:		HD64461_IRQBASE+HD64461_IRQ_NUM,

	mv_inb:			hd64461_inb,
	mv_inw:			hd64461_inw,
	mv_inl:			hd64461_inl,
	mv_outb:		hd64461_outb,
	mv_outw:		hd64461_outw,
	mv_outl:		hd64461_outl,

	mv_inb_p:		hd64461_inb_p,
	mv_inw_p:		hd64461_inw,
	mv_inl_p:		hd64461_inl,
	mv_outb_p:		hd64461_outb_p,
	mv_outw_p:		hd64461_outw,
	mv_outl_p:		hd64461_outl,

	mv_insb:		hd64461_insb,
	mv_insw:		hd64461_insw,
	mv_insl:		hd64461_insl,
	mv_outsb:		hd64461_outsb,
	mv_outsw:		hd64461_outsw,
	mv_outsl:		hd64461_outsl,

	mv_readb:		generic_readb,
	mv_readw:		generic_readw,
	mv_readl:		generic_readl,
	mv_writeb:		generic_writeb,
	mv_writew:		generic_writew,
	mv_writel:		generic_writel,

	mv_irq_demux:		hd64461_irq_demux,

	mv_rtc_gettimeofday:	sh_rtc_gettimeofday,
	mv_rtc_settimeofday:	sh_rtc_settimeofday,

	mv_hw_hp600:		1,
	mv_hw_hp620:		1,
	mv_hw_hd64461:		1,
};
ALIAS_MV(hp620)


struct sh_machine_vector mv_hp680 __initmv = {
	mv_name:		"hp680",

	mv_nr_irqs:		HD64461_IRQBASE+HD64461_IRQ_NUM,

	mv_inb:			hd64461_inb,
	mv_inw:			hd64461_inw,
	mv_inl:			hd64461_inl,
	mv_outb:		hd64461_outb,
	mv_outw:		hd64461_outw,
	mv_outl:		hd64461_outl,

	mv_inb_p:		hd64461_inb_p,
	mv_inw_p:		hd64461_inw,
	mv_inl_p:		hd64461_inl,
	mv_outb_p:		hd64461_outb_p,
	mv_outw_p:		hd64461_outw,
	mv_outl_p:		hd64461_outl,

	mv_insb:		hd64461_insb,
	mv_insw:		hd64461_insw,
	mv_insl:		hd64461_insl,
	mv_outsb:		hd64461_outsb,
	mv_outsw:		hd64461_outsw,
	mv_outsl:		hd64461_outsl,

	mv_readb:		generic_readb,
	mv_readw:		generic_readw,
	mv_readl:		generic_readl,
	mv_writeb:		generic_writeb,
	mv_writew:		generic_writew,
	mv_writel:		generic_writel,

	mv_irq_demux:		hd64461_irq_demux,

	mv_rtc_gettimeofday:	sh_rtc_gettimeofday,
	mv_rtc_settimeofday:	sh_rtc_settimeofday,

	mv_hw_hp600:		1,
	mv_hw_hp680:		1,
	mv_hw_hd64461:		1,
};
ALIAS_MV(hp680)


struct sh_machine_vector mv_hp690 __initmv = {
	mv_name:		"hp690",

	mv_nr_irqs:		HD64461_IRQBASE+HD64461_IRQ_NUM,

	mv_inb:			hd64461_inb,
	mv_inw:			hd64461_inw,
	mv_inl:			hd64461_inl,
	mv_outb:		hd64461_outb,
	mv_outw:		hd64461_outw,
	mv_outl:		hd64461_outl,

	mv_inb_p:		hd64461_inb_p,
	mv_inw_p:		hd64461_inw,
	mv_inl_p:		hd64461_inl,
	mv_outb_p:		hd64461_outb_p,
	mv_outw_p:		hd64461_outw,
	mv_outl_p:		hd64461_outl,

	mv_insb:		hd64461_insb,
	mv_insw:		hd64461_insw,
	mv_insl:		hd64461_insl,
	mv_outsb:		hd64461_outsb,
	mv_outsw:		hd64461_outsw,
	mv_outsl:		hd64461_outsl,

	mv_readb:		generic_readb,
	mv_readw:		generic_readw,
	mv_readl:		generic_readl,
	mv_writeb:		generic_writeb,
	mv_writew:		generic_writew,
	mv_writel:		generic_writel,

	mv_irq_demux:		hd64461_irq_demux,

	mv_rtc_gettimeofday:	sh_rtc_gettimeofday,
	mv_rtc_settimeofday:	sh_rtc_settimeofday,

	mv_hw_hp600:		1,
	mv_hw_hp690:		1,
	mv_hw_hd64461:		1,
};
ALIAS_MV(hp690)