projects
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
5127538b7852bdd41a7952d59da4d6811d1557db
[openwrt.git]
/
target
/
linux
/
etrax-2.6
/
image
/
e100boot
/
src
/
sbl
/
create_regs.pl
1
#!/usr/bin/perl
2
3
print
"struct reg_des {
4
char *name;
5
unsigned int addr;
6
} reg_des[] = {
\n
"
;
7
while
(<>) {
8
if
(
/define+ (\w+) .*IO_TYPECAST+.*DWORD.*\s+(\w+)/
) {
9
print
"
\"
$1
\"
,
$2
,
\n
"
;
10
}
11
}
12
print
" NULL, 0
13
};
14
"
;
This page took
0.049202 seconds
and
3
git commands to generate.