diff options
Diffstat (limited to 'sys/dev/pci/devlist2h.awk')
-rw-r--r-- | sys/dev/pci/devlist2h.awk | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/sys/dev/pci/devlist2h.awk b/sys/dev/pci/devlist2h.awk index c814f5e2ff0..7618cc4f60b 100644 --- a/sys/dev/pci/devlist2h.awk +++ b/sys/dev/pci/devlist2h.awk @@ -1,7 +1,7 @@ #! /usr/bin/awk -f -# $NetBSD: devlist2h.awk,v 1.1 1995/06/18 01:07:06 cgd Exp $ +# $NetBSD: devlist2h.awk,v 1.2 1996/01/22 21:08:09 cgd Exp $ # -# Copyright (c) 1995 Christopher G. Demetriou +# Copyright (c) 1995, 1996 Christopher G. Demetriou # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -54,7 +54,7 @@ NR == 1 { printf(" *\t%s\n", VERSION) > hfile printf(" */\n") > hfile - continue + next } $1 == "vendor" { nvendors++ @@ -99,7 +99,7 @@ $1 == "vendor" { printf(" */") > hfile printf("\n") > hfile - continue + next } $1 == "product" { nproducts++ @@ -112,12 +112,6 @@ $1 == "product" { i=4; f = 5; - # remember if the device is unsupported - if ($f == "UNSUPP") { - products[nproducts, 1, unsupported] = 1; - f++ - } - # comments ocomment = oparen = 0 if (f <= NF) { @@ -150,7 +144,7 @@ $1 == "product" { printf(" */") > hfile printf("\n") > hfile - continue + next } { if ($0 == "") @@ -171,10 +165,7 @@ END { products[i, 1], products[i, 1], products[i, 2]) \ > dfile printf("\t ") > dfile - if (products[i, 1, unsupp]) - printf("PCI_KNOWNDEV_UNSUPP") > dfile - else - printf("0") > dfile + printf("0") > dfile printf(",\n") > dfile vendi = vendorindex[products[i, 1]]; @@ -207,7 +198,7 @@ END { printf("\t{\n") > dfile printf("\t PCI_VENDOR_%s, 0,\n", vendors[i, 1]) \ > dfile - printf("\t PCI_KNOWNDEV_UNSUPP | PCI_KNOWNDEV_NOPROD,\n") \ + printf("\t PCI_KNOWNDEV_NOPROD,\n") \ > dfile printf("\t \"") > dfile j = 3; |