Page MenuHomeFreeBSD

D46455.id142663.diff
No OneTemporary

D46455.id142663.diff

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

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)

Event Timeline