~ubuntu-branches/ubuntu/karmic/openipmi/karmic

« back to all changes in this revision

Viewing changes to lanserv/atca.emu

  • Committer: Bazaar Package Importer
  • Author(s): Noèl Köthe
  • Date: 2005-07-04 21:29:17 UTC
  • Revision ID: james.westby@ubuntu.com-20050704212917-igddk5jawjmhrlay
Tags: upstream-2.0.1
Import upstream version 2.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Turn on ATCA mode
 
2
atca_enable
 
3
 
 
4
# Add the BMC at 0x20
 
5
# Entity id 0xf0 1
 
6
mc_add 20 0 1 23 9 8 1f 1291 f02
 
7
mc_setbmc 20
 
8
mc_setchan 20 0 1 1 0
 
9
mc_setchan 20 1 4 1 2
 
10
main_sdr_add 20 00 00 51 12 0f 20 00 00 1f 00 00 00 f0 1 0 c4 'T 'e 's 't
 
11
sel_enable 20 100 0b
 
12
mc_add_fru_data 20 0 400 \
 
13
                01 00 01 03 00 00 00 fb \
 
14
# Chassis info
 
15
                01 02 01 c4 'A 'T 'C 'A \
 
16
                c4 'T 'e 's 't c1 00 fa \
 
17
# Board info
 
18
                01 05 00 00 00 00 c4 'T \
 
19
                'e 's 't c4 'T 'e 's 't \
 
20
                c4 'T 'e 's 't c4 'T 'e \
 
21
                's 't c4 'T 'e 's 't c1 \
 
22
                00 00 00 00 00 00 00 45
 
23
mc_enable 20
 
24
 
 
25
## Add a shelf FRU device at 0x10
 
26
## Entity id 0xf2 60
 
27
main_sdr_add 20 00 00 51 12 0f 10 00 00 08 00 00 00 f2 60 0 c4 'F 'R 'U '1
 
28
atca_set_site 8 2 1
 
29
mc_add 10 0 1 23 9 8 08 1291 f03
 
30
# Board FRU information
 
31
mc_add_fru_data 10 0 400 \
 
32
                01 00 01 03 00 00 00 fb \
 
33
# Chassis info
 
34
                01 02 01 c4 'A 'T 'C 'A \
 
35
                c4 'T 'e 's 't c1 00 fa \
 
36
# Board info
 
37
                01 05 00 00 00 00 c4 'T \
 
38
                'e 's 't c4 'T 'e 's 't \
 
39
                c4 'T 'e 's 't c4 'T 'e \
 
40
                's 't c4 'T 'e 's 't c1 \
 
41
                00 00 00 00 00 00 00 45
 
42
# Shelf FRU information
 
43
mc_add_fru_data 10 1 400 \
 
44
                01 00 01 03 00 08 00 f3 \
 
45
# Chassis info
 
46
                01 02 01 c4 'A 'T 'C 'A \
 
47
                c4 'T 'e 's 't c1 00 fa \
 
48
# Board info
 
49
                01 05 00 00 00 00 c4 'T \
 
50
                'e 's 't c4 'T 'e 's 't \
 
51
                c4 'T 'e 's 't c4 'T 'e \
 
52
                's 't c4 'T 'e 's 't c1 \
 
53
                00 00 00 00 00 00 00 45 \
 
54
# The multi-records
 
55
# record 1, the address table
 
56
                c0 82 2b 1f 74 5a 31 00 \
 
57
                10 00 c6 'S 'h 'e 'l 'f \
 
58
                '1 00 00 00 00 00 00 00 \
 
59
                00 00 00 00 00 00 00 03 \
 
60
                08 01 02 09 02 02 41 01 \
 
61
                00 00 00 00 00 00 00 00
 
62
# The hot-swap sensor
 
63
# sensor #0
 
64
sensor_add 10 0 0 f0 6f
 
65
sensor_set_event_support 10 0 0 1 1 0 \
 
66
        000000011111111 000000000000000 000000011111111 000000000000000
 
67
sensor_set_bit_clr_rest 10 0 0 1 1
 
68
device_sdr_add 10 0 \
 
69
               00 00 51 02 22 \
 
70
               10 00 00 f2 60 ff c0 f0 6f ff 00 ff 00 ff 00 00 \
 
71
               00 00 00 00 00 00 00 00 00 00 c7 'H 'o 't 's 'w \
 
72
               'a 'p
 
73
mc_enable 10
 
74
 
 
75
 
 
76
# Add a shelf FRU device at 0x12
 
77
# Entity id 0xf2 60
 
78
mc_add 12 0 1 23 9 8 08 1291 f03
 
79
main_sdr_add 20 00 00 51 12 0f 12 00 00 08 00 00 00 f2 60 0 c4 'F 'R 'U '2
 
80
atca_set_site 9 2 2
 
81
mc_add_fru_data 12 0 400 \
 
82
                01 00 01 03 00 00 00 fb \
 
83
# Chassis info
 
84
                01 02 01 c4 'A 'T 'C 'A \
 
85
                c4 'T 'e 's 't c1 00 fa \
 
86
# Board info
 
87
                01 05 00 00 00 00 c4 'T \
 
88
                'e 's 't c4 'T 'e 's 't \
 
89
                c4 'T 'e 's 't c4 'T 'e \
 
90
                's 't c4 'T 'e 's 't c1 \
 
91
                00 00 00 00 00 00 00 45
 
92
 
 
93
mc_add_fru_data 12 1 400 \
 
94
                01 00 01 03 00 08 00 f3 \
 
95
# Chassis info
 
96
                01 02 01 c4 'A 'T 'C 'A \
 
97
                c4 'T 'e 's 't c1 00 fa \
 
98
# Board info
 
99
                01 05 00 00 00 00 c4 'T \
 
100
                'e 's 't c4 'T 'e 's 't \
 
101
                c4 'T 'e 's 't c4 'T 'e \
 
102
                's 't c4 'T 'e 's 't c1 \
 
103
                00 00 00 00 00 00 00 45 \
 
104
# The multi-records
 
105
# record 1, the address table
 
106
                c0 82 2b 1f 74 5a 31 00 \
 
107
                10 00 c6 'S 'h 'e 'l 'f \
 
108
                '1 00 00 00 00 00 00 00 \
 
109
                00 00 00 00 00 00 00 03 \
 
110
                08 01 02 09 02 02 41 01 \
 
111
                00 00 00 00 00 00 00 00
 
112
# The hot-swap sensor
 
113
# sensor #0
 
114
sensor_add 12 0 0 f0 6f
 
115
sensor_set_event_support 12 0 0 1 1 0 \
 
116
        000000011111111 000000000000000 000000011111111 000000000000000
 
117
sensor_set_bit_clr_rest 12 0 0 1 1
 
118
device_sdr_add 12 0 \
 
119
               00 00 51 02 22 \
 
120
               12 00 00 f2 60 ff c0 f0 6f ff 00 ff 00 ff 00 00 \
 
121
               00 00 00 00 00 00 00 00 00 00 c7 'H 'o 't 's 'w \
 
122
               'a 'p
 
123
mc_enable 12
 
124
 
 
125
 
 
126
# Add a board in site 1 (0x82)
 
127
# Entity id 0xa0 60
 
128
mc_add 82 0 1 19 4 3 29 1291 f04
 
129
#main_sdr_add 20 00 00 51 12 12 \
 
130
#            82 00 00 29 00 00 00 a0 60 0 c6 'B 'o 'a 'r 'd '1
 
131
atca_set_site 41 0 1
 
132
mc_add_fru_data 82 0 400 \
 
133
                01 00 01 03 00 00 00 fb \
 
134
# Chassis info
 
135
                01 02 01 c4 'A 'T 'C 'A \
 
136
                c4 'T 'e 's 't c1 00 fa \
 
137
# Board info
 
138
                01 05 00 00 00 00 c4 'T \
 
139
                'e 's 't c4 'T 'e 's 't \
 
140
                c4 'T 'e 's 't c4 'T 'e \
 
141
                's 't c4 'T 'e 's 't c1 \
 
142
                00 00 00 00 00 00 00 45
 
143
# The hot-swap sensor
 
144
# sensor #0
 
145
sensor_add 82 0 0 f0 6f
 
146
sensor_set_event_support 82 0 0 1 1 0 \
 
147
        000000011111111 000000000000000 000000011111111 000000000000000
 
148
sensor_set_bit_clr_rest 82 0 0 1 1
 
149
device_sdr_add 82 0 \
 
150
               00 00 51 12 12 \
 
151
               82 00 00 29 00 00 00 a0 60 0 c6 'B 'o 'a 'r 'd '1
 
152
device_sdr_add 82 0 \
 
153
               00 00 51 02 22 \
 
154
               82 00 00 a0 60 ff c0 f0 6f ff 00 ff 00 ff 00 00 \
 
155
               00 00 00 00 00 00 00 00 00 00 c7 'H 'o 't 's 'w \
 
156
               'a 'p
 
157
mc_enable 82
 
158
 
 
159
#
 
160
# An SDR for an MC that is not present.
 
161
# IPMB 84
 
162
#
 
163
device_sdr_add 82 0 \
 
164
               00 00 51 12 11 \
 
165
               84 00 00 29 00 00 00 a0 60 0 c6 'B 'o 'a 'r 'd \
 
166
               '2
 
167