Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/cardbus Add code to insert struct definition in card...
details: https://anonhg.NetBSD.org/src/rev/2209f5ae6f40
branches: trunk
changeset: 503475:2209f5ae6f40
user: haya <haya%NetBSD.org@localhost>
date: Wed Feb 07 10:05:37 2001 +0000
description:
Add code to insert struct definition in cardbusdevs_data.h to make
it correct C code.
diffstat:
sys/dev/cardbus/devlist2h.awk | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r a817b7065afc -r 2209f5ae6f40 sys/dev/cardbus/devlist2h.awk
--- a/sys/dev/cardbus/devlist2h.awk Wed Feb 07 09:56:21 2001 +0000
+++ b/sys/dev/cardbus/devlist2h.awk Wed Feb 07 10:05:37 2001 +0000
@@ -1,5 +1,5 @@
#! /usr/bin/awk -f
-# $NetBSD: devlist2h.awk,v 1.1 1999/10/15 06:07:22 haya Exp $
+# $NetBSD: devlist2h.awk,v 1.2 2001/02/07 10:05:37 haya Exp $
#
# Copyright (c) 1995, 1996 Christopher G. Demetriou
# All rights reserved.
@@ -159,6 +159,15 @@
# print out the match tables
printf("\n") > dfile
+ printf("struct cardbus_knowndev {\n") > dfile
+ printf("\tu_int32_t vendorid;\n") > dfile
+ printf("\tu_int32_t deviceid;\n") > dfile
+ printf("\tint flags;\n") > dfile
+ printf("\tchar *vendorname;\n") > dfile
+ printf("\tchar *devicename;\n") > dfile
+ printf("};\n\n") > dfile
+ printf("#define CARDBUS_KNOWNDEV_NOPROD 0x01\n") > dfile
+ printf("\n") > dfile
printf("struct cardbus_knowndev cardbus_knowndevs[] = {\n") > dfile
for (i = 1; i <= nproducts; i++) {
Home |
Main Index |
Thread Index |
Old Index