projects
/
coreboot.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add detection/dump support for ServerEngines SE-SM 4210-P01.
[coreboot.git]
/
util
/
romcc
/
tests
/
simple_test67.c
1
static void main(void)
2
{
3
unsigned int dch, dcl;
4
/* HERE I AM async_lat */
5
unsigned async_lat;
6
int dimms;
7
dimms = 1;
8
async_lat = 0;
9
dch = 0x1234;
10
dcl = __builtin_inl(0x5678);
11
if (!(dcl & (1 << 8))) {
12
if (dimms == 4) {
13
async_lat = 9;
14
}
15
else {
16
async_lat = 8;
17
}
18
}
19
else {
20
async_lat = 6;
21
}
22
dch |= async_lat;
23
__builtin_outl(dch, 0x9abc);
24
}