head 1.1; access; symbols netbsd-11-0-RC4:1.1 netbsd-11-0-RC3:1.1 netbsd-11-0-RC2:1.1 netbsd-11-0-RC1:1.1 perseant-exfatfs-base-20250801:1.1 netbsd-11:1.1.0.204 netbsd-11-base:1.1 netbsd-10-1-RELEASE:1.1 perseant-exfatfs-base-20240630:1.1 perseant-exfatfs:1.1.0.202 perseant-exfatfs-base:1.1 netbsd-8-3-RELEASE:1.1 netbsd-9-4-RELEASE:1.1 netbsd-10-0-RELEASE:1.1 netbsd-10-0-RC6:1.1 netbsd-10-0-RC5:1.1 netbsd-10-0-RC4:1.1 netbsd-10-0-RC3:1.1 netbsd-10-0-RC2:1.1 thorpej-ifq:1.1.0.200 thorpej-ifq-base:1.1 thorpej-altq-separation:1.1.0.198 thorpej-altq-separation-base:1.1 netbsd-10-0-RC1:1.1 netbsd-10:1.1.0.196 netbsd-10-base:1.1 bouyer-sunxi-drm:1.1.0.194 bouyer-sunxi-drm-base:1.1 netbsd-9-3-RELEASE:1.1 thorpej-i2c-spi-conf2:1.1.0.192 thorpej-i2c-spi-conf2-base:1.1 thorpej-futex2:1.1.0.190 thorpej-futex2-base:1.1 thorpej-cfargs2:1.1.0.188 thorpej-cfargs2-base:1.1 cjep_sun2x-base1:1.1 cjep_sun2x:1.1.0.186 cjep_sun2x-base:1.1 cjep_staticlib_x-base1:1.1 netbsd-9-2-RELEASE:1.1 cjep_staticlib_x:1.1.0.184 cjep_staticlib_x-base:1.1 thorpej-i2c-spi-conf:1.1.0.182 thorpej-i2c-spi-conf-base:1.1 thorpej-cfargs:1.1.0.180 thorpej-cfargs-base:1.1 thorpej-futex:1.1.0.178 thorpej-futex-base:1.1 netbsd-9-1-RELEASE:1.1 bouyer-xenpvh-base2:1.1 phil-wifi-20200421:1.1 bouyer-xenpvh-base1:1.1 phil-wifi-20200411:1.1 bouyer-xenpvh:1.1.0.176 bouyer-xenpvh-base:1.1 is-mlppp:1.1.0.174 is-mlppp-base:1.1 phil-wifi-20200406:1.1 netbsd-8-2-RELEASE:1.1 ad-namecache-base3:1.1 netbsd-9-0-RELEASE:1.1 netbsd-9-0-RC2:1.1 ad-namecache-base2:1.1 ad-namecache-base1:1.1 ad-namecache:1.1.0.172 ad-namecache-base:1.1 netbsd-9-0-RC1:1.1 phil-wifi-20191119:1.1 netbsd-9:1.1.0.170 netbsd-9-base:1.1 phil-wifi-20190609:1.1 netbsd-8-1-RELEASE:1.1 netbsd-8-1-RC1:1.1 isaki-audio2:1.1.0.168 isaki-audio2-base:1.1 pgoyette-compat-merge-20190127:1.1 pgoyette-compat-20190127:1.1 pgoyette-compat-20190118:1.1 pgoyette-compat-1226:1.1 pgoyette-compat-1126:1.1 pgoyette-compat-1020:1.1 pgoyette-compat-0930:1.1 pgoyette-compat-0906:1.1 jdolecek-ncqfixes:1.1.0.166 jdolecek-ncqfixes-base:1.1 netbsd-7-2-RELEASE:1.1 pgoyette-compat-0728:1.1 netbsd-8-0-RELEASE:1.1 phil-wifi:1.1.0.164 phil-wifi-base:1.1 pgoyette-compat-0625:1.1 netbsd-8-0-RC2:1.1 pgoyette-compat-0521:1.1 pgoyette-compat-0502:1.1 pgoyette-compat-0422:1.1 netbsd-8-0-RC1:1.1 pgoyette-compat-0415:1.1 pgoyette-compat-0407:1.1 pgoyette-compat-0330:1.1 pgoyette-compat-0322:1.1 pgoyette-compat-0315:1.1 netbsd-7-1-2-RELEASE:1.1 pgoyette-compat:1.1.0.162 pgoyette-compat-base:1.1 netbsd-7-1-1-RELEASE:1.1 tls-maxphys-base-20171202:1.1 matt-nb8-mediatek:1.1.0.160 matt-nb8-mediatek-base:1.1 nick-nhusb-base-20170825:1.1 perseant-stdc-iso10646:1.1.0.158 perseant-stdc-iso10646-base:1.1 netbsd-8:1.1.0.156 netbsd-8-base:1.1 prg-localcount2-base3:1.1 prg-localcount2-base2:1.1 prg-localcount2-base1:1.1 prg-localcount2:1.1.0.154 prg-localcount2-base:1.1 pgoyette-localcount-20170426:1.1 bouyer-socketcan-base1:1.1 jdolecek-ncq:1.1.0.152 jdolecek-ncq-base:1.1 pgoyette-localcount-20170320:1.1 netbsd-7-1:1.1.0.150 netbsd-7-1-RELEASE:1.1 netbsd-7-1-RC2:1.1 nick-nhusb-base-20170204:1.1 netbsd-7-nhusb-base-20170116:1.1 bouyer-socketcan:1.1.0.148 bouyer-socketcan-base:1.1 pgoyette-localcount-20170107:1.1 netbsd-7-1-RC1:1.1 nick-nhusb-base-20161204:1.1 pgoyette-localcount-20161104:1.1 netbsd-7-0-2-RELEASE:1.1 nick-nhusb-base-20161004:1.1 localcount-20160914:1.1 netbsd-7-nhusb:1.1.0.146 netbsd-7-nhusb-base:1.1 pgoyette-localcount-20160806:1.1 pgoyette-localcount-20160726:1.1 pgoyette-localcount:1.1.0.144 pgoyette-localcount-base:1.1 nick-nhusb-base-20160907:1.1 nick-nhusb-base-20160529:1.1 netbsd-7-0-1-RELEASE:1.1 nick-nhusb-base-20160422:1.1 nick-nhusb-base-20160319:1.1 nick-nhusb-base-20151226:1.1 netbsd-7-0:1.1.0.142 netbsd-7-0-RELEASE:1.1 nick-nhusb-base-20150921:1.1 netbsd-7-0-RC3:1.1 netbsd-7-0-RC2:1.1 netbsd-7-0-RC1:1.1 nick-nhusb-base-20150606:1.1 nick-nhusb-base-20150406:1.1 nick-nhusb:1.1.0.140 nick-nhusb-base:1.1 netbsd-5-2-3-RELEASE:1.1 netbsd-5-1-5-RELEASE:1.1 netbsd-6-0-6-RELEASE:1.1 netbsd-6-1-5-RELEASE:1.1 netbsd-7:1.1.0.138 netbsd-7-base:1.1 yamt-pagecache-base9:1.1 yamt-pagecache-tag8:1.1 netbsd-6-1-4-RELEASE:1.1 netbsd-6-0-5-RELEASE:1.1 tls-earlyentropy:1.1.0.136 tls-earlyentropy-base:1.1 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1 riastradh-drm2-base3:1.1 netbsd-6-1-3-RELEASE:1.1 netbsd-6-0-4-RELEASE:1.1 netbsd-5-2-2-RELEASE:1.1 netbsd-5-1-4-RELEASE:1.1 netbsd-6-1-2-RELEASE:1.1 netbsd-6-0-3-RELEASE:1.1 netbsd-5-2-1-RELEASE:1.1 netbsd-5-1-3-RELEASE:1.1 rmind-smpnet-nbase:1.1 netbsd-6-1-1-RELEASE:1.1 riastradh-drm2-base2:1.1 riastradh-drm2-base1:1.1 riastradh-drm2:1.1.0.134 riastradh-drm2-base:1.1 rmind-smpnet:1.1.0.126 rmind-smpnet-base:1.1 netbsd-6-1:1.1.0.132 netbsd-6-0-2-RELEASE:1.1 netbsd-6-1-RELEASE:1.1 khorben-n900:1.1.0.130 netbsd-6-1-RC4:1.1 netbsd-6-1-RC3:1.1 agc-symver:1.1.0.128 agc-symver-base:1.1 netbsd-6-1-RC2:1.1 netbsd-6-1-RC1:1.1 yamt-pagecache-base8:1.1 netbsd-5-2:1.1.0.124 netbsd-6-0-1-RELEASE:1.1 yamt-pagecache-base7:1.1 netbsd-5-2-RELEASE:1.1 netbsd-5-2-RC1:1.1 matt-nb6-plus-nbase:1.1 yamt-pagecache-base6:1.1 netbsd-6-0:1.1.0.122 netbsd-6-0-RELEASE:1.1 netbsd-6-0-RC2:1.1 tls-maxphys:1.1.0.120 tls-maxphys-base:1.1 matt-nb6-plus:1.1.0.118 matt-nb6-plus-base:1.1 netbsd-6-0-RC1:1.1 jmcneill-usbmp-base10:1.1 yamt-pagecache-base5:1.1 jmcneill-usbmp-base9:1.1 yamt-pagecache-base4:1.1 jmcneill-usbmp-base8:1.1 jmcneill-usbmp-base7:1.1 jmcneill-usbmp-base6:1.1 jmcneill-usbmp-base5:1.1 jmcneill-usbmp-base4:1.1 jmcneill-usbmp-base3:1.1 jmcneill-usbmp-pre-base2:1.1 jmcneill-usbmp-base2:1.1 netbsd-6:1.1.0.116 netbsd-6-base:1.1 netbsd-5-1-2-RELEASE:1.1 netbsd-5-1-1-RELEASE:1.1 jmcneill-usbmp:1.1.0.114 jmcneill-usbmp-base:1.1 jmcneill-audiomp3:1.1.0.112 jmcneill-audiomp3-base:1.1 yamt-pagecache-base3:1.1 yamt-pagecache-base2:1.1 yamt-pagecache:1.1.0.110 yamt-pagecache-base:1.1 rmind-uvmplock-nbase:1.1 cherry-xenmp:1.1.0.108 cherry-xenmp-base:1.1 bouyer-quota2-nbase:1.1 bouyer-quota2:1.1.0.106 bouyer-quota2-base:1.1 jruoho-x86intr:1.1.0.104 jruoho-x86intr-base:1.1 matt-mips64-premerge-20101231:1.1 matt-nb5-mips64-premerge-20101231:1.1 matt-nb5-pq3:1.1.0.102 matt-nb5-pq3-base:1.1 netbsd-5-1:1.1.0.100 netbsd-5-1-RELEASE:1.1 uebayasi-xip-base4:1.1 uebayasi-xip-base3:1.1 yamt-nfs-mp-base11:1.1 netbsd-5-1-RC4:1.1 matt-nb5-mips64-k15:1.1 uebayasi-xip-base2:1.1 yamt-nfs-mp-base10:1.1 netbsd-5-1-RC3:1.1 netbsd-5-1-RC2:1.1 uebayasi-xip-base1:1.1 netbsd-5-1-RC1:1.1 rmind-uvmplock:1.1.0.98 rmind-uvmplock-base:1.1 yamt-nfs-mp-base9:1.1 uebayasi-xip:1.1.0.96 uebayasi-xip-base:1.1 netbsd-5-0-2-RELEASE:1.1 matt-nb5-mips64-premerge-20091211:1.1 matt-premerge-20091211:1.1 yamt-nfs-mp-base8:1.1 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.1 matt-nb4-mips64-k7-u2a-k9b:1.1 matt-nb5-mips64-u1-k1-k5:1.1 yamt-nfs-mp-base7:1.1 matt-nb5-mips64:1.1.0.94 netbsd-5-0-1-RELEASE:1.1 jymxensuspend-base:1.1 yamt-nfs-mp-base6:1.1 yamt-nfs-mp-base5:1.1 yamt-nfs-mp-base4:1.1 jym-xensuspend-nbase:1.1 yamt-nfs-mp-base3:1.1 nick-hppapmap-base4:1.1 nick-hppapmap-base3:1.1 netbsd-5-0:1.1.0.92 netbsd-5-0-RELEASE:1.1 netbsd-5-0-RC4:1.1 netbsd-5-0-RC3:1.1 nick-hppapmap-base2:1.1 netbsd-5-0-RC2:1.1 jym-xensuspend:1.1.0.90 jym-xensuspend-base:1.1 netbsd-5-0-RC1:1.1 haad-dm-base2:1.1 haad-nbase2:1.1 ad-audiomp2:1.1.0.88 ad-audiomp2-base:1.1 netbsd-5:1.1.0.86 netbsd-5-base:1.1 nick-hppapmap:1.1.0.84 nick-hppapmap-base:1.1 matt-mips64-base2:1.1 matt-mips64:1.1.0.82 haad-dm-base1:1.1 wrstuden-revivesa-base-4:1.1 netbsd-4-0-1-RELEASE:1.1 wrstuden-revivesa-base-3:1.1 wrstuden-revivesa-base-2:1.1 wrstuden-fixsa-newbase:1.1 nick-csl-alignment-base5:1.1 haad-dm:1.1.0.80 haad-dm-base:1.1 wrstuden-revivesa-base-1:1.1 simonb-wapbl-nbase:1.1 yamt-pf42-base4:1.1 simonb-wapbl:1.1.0.78 simonb-wapbl-base:1.1 yamt-pf42-base3:1.1 hpcarm-cleanup-nbase:1.1 yamt-pf42-baseX:1.1 yamt-pf42-base2:1.1 yamt-nfs-mp-base2:1.1 wrstuden-revivesa:1.1.0.76 wrstuden-revivesa-base:1.1 yamt-nfs-mp:1.1.0.74 yamt-nfs-mp-base:1.1 yamt-pf42:1.1.0.72 yamt-pf42-base:1.1 ad-socklock-base1:1.1 yamt-lazymbuf-base15:1.1 yamt-lazymbuf-base14:1.1 keiichi-mipv6-nbase:1.1 mjf-devfs2:1.1.0.70 mjf-devfs2-base:1.1 nick-net80211-sync:1.1.0.68 nick-net80211-sync-base:1.1 keiichi-mipv6:1.1.0.66 keiichi-mipv6-base:1.1 bouyer-xeni386-merge1:1.1 matt-armv6-prevmlocking:1.1 wrstuden-fixsa-base-1:1.1 vmlocking2-base3:1.1 netbsd-4-0:1.1.0.64 netbsd-4-0-RELEASE:1.1 bouyer-xeni386-nbase:1.1 yamt-kmem-base3:1.1 cube-autoconf:1.1.0.62 cube-autoconf-base:1.1 yamt-kmem-base2:1.1 bouyer-xeni386:1.1.0.60 bouyer-xeni386-base:1.1 yamt-kmem:1.1.0.58 yamt-kmem-base:1.1 vmlocking2-base2:1.1 reinoud-bufcleanup-nbase:1.1 vmlocking2:1.1.0.56 vmlocking2-base1:1.1 netbsd-4-0-RC5:1.1 matt-nb4-arm:1.1.0.54 matt-nb4-arm-base:1.1 matt-armv6-nbase:1.1 jmcneill-base:1.1 netbsd-4-0-RC4:1.1 mjf-devfs:1.1.0.52 mjf-devfs-base:1.1 bouyer-xenamd64-base2:1.1 vmlocking-nbase:1.1 yamt-x86pmap-base4:1.1 bouyer-xenamd64:1.1.0.50 bouyer-xenamd64-base:1.1 netbsd-4-0-RC3:1.1 yamt-x86pmap-base3:1.1 yamt-x86pmap-base2:1.1 netbsd-4-0-RC2:1.1 yamt-x86pmap:1.1.0.48 yamt-x86pmap-base:1.1 netbsd-4-0-RC1:1.1 matt-armv6:1.1.0.46 matt-armv6-base:1.1 matt-mips64-base:1.1 jmcneill-pm:1.1.0.44 jmcneill-pm-base:1.1 hpcarm-cleanup:1.1.0.42 hpcarm-cleanup-base:1.1 nick-csl-alignment:1.1.0.40 nick-csl-alignment-base:1.1 yamt-idlelwp-base8:1.1 wrstuden-fixsa:1.1.0.38 wrstuden-fixsa-base:1.1 thorpej-atomic:1.1.0.36 thorpej-atomic-base:1.1 reinoud-bufcleanup:1.1.0.34 reinoud-bufcleanup-base:1.1 mjf-ufs-trans:1.1.0.32 mjf-ufs-trans-base:1.1 vmlocking:1.1.0.30 vmlocking-base:1.1 ad-audiomp:1.1.0.28 ad-audiomp-base:1.1 yamt-idlelwp:1.1.0.26 post-newlock2-merge:1.1 newlock2-nbase:1.1 yamt-splraiseipl-base5:1.1 yamt-splraiseipl-base4:1.1 yamt-splraiseipl-base3:1.1 abandoned-netbsd-4-base:1.1 abandoned-netbsd-4:1.1.0.16 yamt-splraiseipl-base2:1.1 yamt-splraiseipl:1.1.0.22 yamt-splraiseipl-base:1.1 yamt-pdpolicy-base9:1.1 rpaulo-netinet-merge-pcb-base:1.1 rpaulo-netinet-merge-pcb:1.1.0.20 newlock2:1.1.0.18 newlock2-base:1.1 yamt-pdpolicy-base8:1.1 yamt-pdpolicy-base7:1.1 netbsd-4:1.1.0.24 netbsd-4-base:1.1 yamt-pdpolicy-base6:1.1 yamt-lazymbuf:1.1.0.14 chap-midi-nbase:1.1 gdamore-uart:1.1.0.12 gdamore-uart-base:1.1 simonb-timcounters-final:1.1.6.2 peter-altq:1.1.0.10 yamt-pdpolicy-base5:1.1 chap-midi:1.1.0.8 chap-midi-base:1.1 simonb-timecounters-base:1.1 simonb-timecounters:1.1.0.6 elad-kernelauth-base:1.1 elad-kernelauth:1.1.0.4 yamt-pdpolicy:1.1.0.2 yamt-pdpolicy-base4:1.1; locks; strict; comment @# @; 1.1 date 2006.04.07.18.55.22; author riz; state Exp; branches 1.1.2.1 1.1.4.1 1.1.6.1 1.1.10.1 1.1.14.1 1.1.20.1; next ; 1.1.2.1 date 2006.04.07.18.55.22; author yamt; state dead; branches; next 1.1.2.2; 1.1.2.2 date 2006.04.11.11.55.17; author yamt; state Exp; branches; next ; 1.1.4.1 date 2006.04.07.18.55.22; author elad; state dead; branches; next 1.1.4.2; 1.1.4.2 date 2006.04.19.03.25.33; author elad; state Exp; branches; next ; 1.1.6.1 date 2006.04.07.18.55.22; author simonb; state dead; branches; next 1.1.6.2; 1.1.6.2 date 2006.04.22.11.39.13; author simonb; state Exp; branches; next ; 1.1.10.1 date 2006.04.07.18.55.22; author tron; state dead; branches; next 1.1.10.2; 1.1.10.2 date 2006.05.24.15.50.27; author tron; state Exp; branches; next ; 1.1.14.1 date 2006.04.07.18.55.22; author yamt; state dead; branches; next 1.1.14.2; 1.1.14.2 date 2006.06.21.15.05.02; author yamt; state Exp; branches; next ; 1.1.20.1 date 2006.04.07.18.55.22; author rpaulo; state dead; branches; next 1.1.20.2; 1.1.20.2 date 2006.09.09.02.52.15; author rpaulo; state Exp; branches; next ; desc @@ 1.1 log @Dallas Semiconductor 1-Wire bus support, from OpenBSD. Currently includes gpioow(4), attaching a bit-banging driver via a GPIO pin. Also, owtemp(4) which supports some of the 1-Wire temperature sensors, including the DS18b20 and DS1920 - temperatures are returned via the envsys(4) framework. Original drivers by Alexander Yurchenko (grange@@openbsd), with envsys(4) support and a fix to the 1-wire search algorithm (for discovering devices on the bus) by me. As discussed on tech-kern earlier this week. @ text @# $NetBSD$ # $OpenBSD: devlist2h.awk,v 1.3 2006/03/10 14:36:32 grange Exp $ # # Copyright (c) 2006 Alexander Yurchenko # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # BEGIN { hfile = "onewiredevs.h" dfile = "onewiredevs_data.h" } NR == 1 { VERSION = $0 gsub("\\$", "", VERSION) printf("/*\t\$NetBSD\$\t*/\n\n" \ "/*\n * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n" \ " *\n * Generated from:\n *\t%s\n */\n\n", VERSION) > hfile printf("/*\t\$NetBSD\$\t*/\n\n" \ "/*\n * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n" \ " *\n * Generated from:\n *\t%s\n */\n\n", VERSION) > dfile printf("static const struct onewire_family " \ "onewire_famtab[] = {\n") > dfile } $1 == "family" { printf("#define ONEWIRE_FAMILY_%s\t%s\n", toupper($2), $3) > hfile printf("\t{ ONEWIRE_FAMILY_%s, \"", toupper($2)) > dfile f = 4 while (f <= NF) { if (f > 4) printf(" ") > dfile printf("%s", $f) > dfile f++ } printf("\" },\n") > dfile next } END { printf("\t{ 0, NULL }\n};\n") > dfile } @ 1.1.6.1 log @file devlist2h.awk was added on branch simonb-timecounters on 2006-04-22 11:39:13 +0000 @ text @d1 56 @ 1.1.6.2 log @Sync with head. @ text @a0 56 # $NetBSD: devlist2h.awk,v 1.1.6.1 2006/04/22 11:39:13 simonb Exp $ # $OpenBSD: devlist2h.awk,v 1.3 2006/03/10 14:36:32 grange Exp $ # # Copyright (c) 2006 Alexander Yurchenko # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # BEGIN { hfile = "onewiredevs.h" dfile = "onewiredevs_data.h" } NR == 1 { VERSION = $0 gsub("\\$", "", VERSION) printf("/*\t\$NetBSD\$\t*/\n\n" \ "/*\n * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n" \ " *\n * Generated from:\n *\t%s\n */\n\n", VERSION) > hfile printf("/*\t\$NetBSD\$\t*/\n\n" \ "/*\n * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n" \ " *\n * Generated from:\n *\t%s\n */\n\n", VERSION) > dfile printf("static const struct onewire_family " \ "onewire_famtab[] = {\n") > dfile } $1 == "family" { printf("#define ONEWIRE_FAMILY_%s\t%s\n", toupper($2), $3) > hfile printf("\t{ ONEWIRE_FAMILY_%s, \"", toupper($2)) > dfile f = 4 while (f <= NF) { if (f > 4) printf(" ") > dfile printf("%s", $f) > dfile f++ } printf("\" },\n") > dfile next } END { printf("\t{ 0, NULL }\n};\n") > dfile } @ 1.1.10.1 log @file devlist2h.awk was added on branch peter-altq on 2006-05-24 15:50:27 +0000 @ text @d1 56 @ 1.1.10.2 log @Merge 2006-05-24 NetBSD-current into the "peter-altq" branch. @ text @a0 56 # $NetBSD: devlist2h.awk,v 1.1.10.1 2006/05/24 15:50:27 tron Exp $ # $OpenBSD: devlist2h.awk,v 1.3 2006/03/10 14:36:32 grange Exp $ # # Copyright (c) 2006 Alexander Yurchenko # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # BEGIN { hfile = "onewiredevs.h" dfile = "onewiredevs_data.h" } NR == 1 { VERSION = $0 gsub("\\$", "", VERSION) printf("/*\t\$NetBSD\$\t*/\n\n" \ "/*\n * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n" \ " *\n * Generated from:\n *\t%s\n */\n\n", VERSION) > hfile printf("/*\t\$NetBSD\$\t*/\n\n" \ "/*\n * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n" \ " *\n * Generated from:\n *\t%s\n */\n\n", VERSION) > dfile printf("static const struct onewire_family " \ "onewire_famtab[] = {\n") > dfile } $1 == "family" { printf("#define ONEWIRE_FAMILY_%s\t%s\n", toupper($2), $3) > hfile printf("\t{ ONEWIRE_FAMILY_%s, \"", toupper($2)) > dfile f = 4 while (f <= NF) { if (f > 4) printf(" ") > dfile printf("%s", $f) > dfile f++ } printf("\" },\n") > dfile next } END { printf("\t{ 0, NULL }\n};\n") > dfile } @ 1.1.2.1 log @file devlist2h.awk was added on branch yamt-pdpolicy on 2006-04-11 11:55:17 +0000 @ text @d1 56 @ 1.1.2.2 log @sync with head @ text @a0 56 # $NetBSD: devlist2h.awk,v 1.1.2.1 2006/04/11 11:55:17 yamt Exp $ # $OpenBSD: devlist2h.awk,v 1.3 2006/03/10 14:36:32 grange Exp $ # # Copyright (c) 2006 Alexander Yurchenko # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # BEGIN { hfile = "onewiredevs.h" dfile = "onewiredevs_data.h" } NR == 1 { VERSION = $0 gsub("\\$", "", VERSION) printf("/*\t\$NetBSD\$\t*/\n\n" \ "/*\n * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n" \ " *\n * Generated from:\n *\t%s\n */\n\n", VERSION) > hfile printf("/*\t\$NetBSD\$\t*/\n\n" \ "/*\n * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n" \ " *\n * Generated from:\n *\t%s\n */\n\n", VERSION) > dfile printf("static const struct onewire_family " \ "onewire_famtab[] = {\n") > dfile } $1 == "family" { printf("#define ONEWIRE_FAMILY_%s\t%s\n", toupper($2), $3) > hfile printf("\t{ ONEWIRE_FAMILY_%s, \"", toupper($2)) > dfile f = 4 while (f <= NF) { if (f > 4) printf(" ") > dfile printf("%s", $f) > dfile f++ } printf("\" },\n") > dfile next } END { printf("\t{ 0, NULL }\n};\n") > dfile } @ 1.1.20.1 log @file devlist2h.awk was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:52:15 +0000 @ text @d1 56 @ 1.1.20.2 log @sync with head @ text @a0 56 # $NetBSD: devlist2h.awk,v 1.1.20.1 2006/09/09 02:52:15 rpaulo Exp $ # $OpenBSD: devlist2h.awk,v 1.3 2006/03/10 14:36:32 grange Exp $ # # Copyright (c) 2006 Alexander Yurchenko # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # BEGIN { hfile = "onewiredevs.h" dfile = "onewiredevs_data.h" } NR == 1 { VERSION = $0 gsub("\\$", "", VERSION) printf("/*\t\$NetBSD\$\t*/\n\n" \ "/*\n * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n" \ " *\n * Generated from:\n *\t%s\n */\n\n", VERSION) > hfile printf("/*\t\$NetBSD\$\t*/\n\n" \ "/*\n * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n" \ " *\n * Generated from:\n *\t%s\n */\n\n", VERSION) > dfile printf("static const struct onewire_family " \ "onewire_famtab[] = {\n") > dfile } $1 == "family" { printf("#define ONEWIRE_FAMILY_%s\t%s\n", toupper($2), $3) > hfile printf("\t{ ONEWIRE_FAMILY_%s, \"", toupper($2)) > dfile f = 4 while (f <= NF) { if (f > 4) printf(" ") > dfile printf("%s", $f) > dfile f++ } printf("\" },\n") > dfile next } END { printf("\t{ 0, NULL }\n};\n") > dfile } @ 1.1.4.1 log @file devlist2h.awk was added on branch elad-kernelauth on 2006-04-19 03:25:33 +0000 @ text @d1 56 @ 1.1.4.2 log @sync with head. @ text @a0 56 # $NetBSD: devlist2h.awk,v 1.1.4.1 2006/04/19 03:25:33 elad Exp $ # $OpenBSD: devlist2h.awk,v 1.3 2006/03/10 14:36:32 grange Exp $ # # Copyright (c) 2006 Alexander Yurchenko # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # BEGIN { hfile = "onewiredevs.h" dfile = "onewiredevs_data.h" } NR == 1 { VERSION = $0 gsub("\\$", "", VERSION) printf("/*\t\$NetBSD\$\t*/\n\n" \ "/*\n * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n" \ " *\n * Generated from:\n *\t%s\n */\n\n", VERSION) > hfile printf("/*\t\$NetBSD\$\t*/\n\n" \ "/*\n * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n" \ " *\n * Generated from:\n *\t%s\n */\n\n", VERSION) > dfile printf("static const struct onewire_family " \ "onewire_famtab[] = {\n") > dfile } $1 == "family" { printf("#define ONEWIRE_FAMILY_%s\t%s\n", toupper($2), $3) > hfile printf("\t{ ONEWIRE_FAMILY_%s, \"", toupper($2)) > dfile f = 4 while (f <= NF) { if (f > 4) printf(" ") > dfile printf("%s", $f) > dfile f++ } printf("\" },\n") > dfile next } END { printf("\t{ 0, NULL }\n};\n") > dfile } @ 1.1.14.1 log @file devlist2h.awk was added on branch yamt-lazymbuf on 2006-06-21 15:05:02 +0000 @ text @d1 56 @ 1.1.14.2 log @sync with head. @ text @a0 56 # $NetBSD: devlist2h.awk,v 1.1.14.1 2006/06/21 15:05:02 yamt Exp $ # $OpenBSD: devlist2h.awk,v 1.3 2006/03/10 14:36:32 grange Exp $ # # Copyright (c) 2006 Alexander Yurchenko # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # BEGIN { hfile = "onewiredevs.h" dfile = "onewiredevs_data.h" } NR == 1 { VERSION = $0 gsub("\\$", "", VERSION) printf("/*\t\$NetBSD\$\t*/\n\n" \ "/*\n * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n" \ " *\n * Generated from:\n *\t%s\n */\n\n", VERSION) > hfile printf("/*\t\$NetBSD\$\t*/\n\n" \ "/*\n * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n" \ " *\n * Generated from:\n *\t%s\n */\n\n", VERSION) > dfile printf("static const struct onewire_family " \ "onewire_famtab[] = {\n") > dfile } $1 == "family" { printf("#define ONEWIRE_FAMILY_%s\t%s\n", toupper($2), $3) > hfile printf("\t{ ONEWIRE_FAMILY_%s, \"", toupper($2)) > dfile f = 4 while (f <= NF) { if (f > 4) printf(" ") > dfile printf("%s", $f) > dfile f++ } printf("\" },\n") > dfile next } END { printf("\t{ 0, NULL }\n};\n") > dfile } @