Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F170780352
D46455.id142663.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
662 B
Referenced Files
None
Subscribers
None
D46455.id142663.diff
View Options
diff --git a/sys/tools/sdiodevs2h.awk b/sys/tools/sdiodevs2h.awk
--- a/sys/tools/sdiodevs2h.awk
+++ b/sys/tools/sdiodevs2h.awk
@@ -149,6 +149,18 @@
printf("\n") > hfile
}
+function palias(hfile)
+{
+ nproducts++
+
+ products[nproducts, 1] = $2; # vendor name
+ products[nproducts, 2] = $3; # product id
+ products[nproducts, 3] = $4; # id
+ if (hfile)
+ printf("#define\tSDIO_DEVICE_ID_%s\tSDIO_DEVICE_ID_%s\n", \
+ $2, $3) > hfile
+}
+
function dump_dfile(dfile)
{
printf("\n") > dfile
@@ -243,6 +255,10 @@
product(hfile)
continue
}
+ if ($1 == "palias") {
+ palias(hfile)
+ continue
+ }
if ($0 == "")
blanklines++
if (hfile)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Sep 7, 2:27 PM (10 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38447753
Default Alt Text
D46455.id142663.diff (662 B)
Attached To
Mode
D46455: tools/sdiodevs2h.awk: introduce palias
Attached
Detach File
Event Timeline
Log In to Comment