diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-02-21 13:17:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-02-21 13:17:29 +0000 |
commit | 4613f2908efe08bd02b4f005880b709907cc6342 (patch) | |
tree | de1be6a53c1fb3848c34b01d3ad92150503083eb /sys/dev/pci | |
parent | 3dbc5c543ab0fd4d97db082db102e1ac8c70269f (diff) |
put structs after copyright notice; ok dlg
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/devlist2h.awk | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/sys/dev/pci/devlist2h.awk b/sys/dev/pci/devlist2h.awk index c15a3e125a5..3ce03b07214 100644 --- a/sys/dev/pci/devlist2h.awk +++ b/sys/dev/pci/devlist2h.awk @@ -1,5 +1,5 @@ #! /usr/bin/awk -f -# $OpenBSD: devlist2h.awk,v 1.7 2007/02/21 13:08:22 dlg Exp $ +# $OpenBSD: devlist2h.awk,v 1.8 2007/02/21 13:17:28 deraadt Exp $ # $NetBSD: devlist2h.awk,v 1.2 1996/01/22 21:08:09 cgd Exp $ # # Copyright (c) 1995, 1996 Christopher G. Demetriou @@ -47,18 +47,6 @@ NR == 1 { printf(" *\t%s\n", VERSION) > dfile printf(" */\n\n") > dfile - printf("/* Descriptions of known vendors and devices. */\n") > dfile - printf("struct pci_known_vendor {\n") > dfile - printf("\tpci_vendor_id_t vendor;\n") > dfile - printf("\tconst char *vendorname;\n") > dfile - printf("};\n\n") > dfile - - printf("struct pci_known_product {\n") > dfile - printf("\tpci_vendor_id_t vendor;\n") > dfile - printf("\tpci_product_id_t product;\n") > dfile - printf("\tconst char *productname;\n") > dfile - printf("};\n\n") > dfile - printf("/*\n") > hfile printf(" * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n") \ > hfile @@ -179,6 +167,19 @@ END { if (nvendor_dup > 0) exit(1); + printf("/* Descriptions of known vendors and devices. */\n") > dfile + printf("struct pci_known_vendor {\n") > dfile + printf("\tpci_vendor_id_t vendor;\n") > dfile + printf("\tconst char *vendorname;\n") > dfile + printf("};\n\n") > dfile + + printf("struct pci_known_product {\n") > dfile + printf("\tpci_vendor_id_t vendor;\n") > dfile + printf("\tpci_product_id_t product;\n") > dfile + printf("\tconst char *productname;\n") > dfile + printf("};\n\n") > dfile + + printf("static const struct pci_known_product pci_known_products[] = {\n") \ > dfile for (i = 1; i <= nproducts; i++) { |