1 ############################################################################### |
|
2 # |
|
3 # Copyright 2008 Sun Microsystems, Inc. All rights reserved. |
|
4 # Use subject to license terms. |
|
5 # |
|
6 # Permission is hereby granted, free of charge, to any person obtaining a |
|
7 # copy of this software and associated documentation files (the |
|
8 # "Software"), to deal in the Software without restriction, including |
|
9 # without limitation the rights to use, copy, modify, merge, publish, |
|
10 # distribute, and/or sell copies of the Software, and to permit persons |
|
11 # to whom the Software is furnished to do so, provided that the above |
|
12 # copyright notice(s) and this permission notice appear in all copies of |
|
13 # the Software and that both the above copyright notice(s) and this |
|
14 # permission notice appear in supporting documentation. |
|
15 # |
|
16 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
|
17 # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
|
18 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT |
|
19 # OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR |
|
20 # HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL |
|
21 # INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING |
|
22 # FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, |
|
23 # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION |
|
24 # WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
|
25 # |
|
26 # Except as contained in this notice, the name of a copyright holder |
|
27 # shall not be used in advertising or otherwise to promote the sale, use |
|
28 # or other dealings in this Software without prior written authorization |
|
29 # of the copyright holder. |
|
30 # |
|
31 # @(#)pciids-version.patch 1.1 08/10/13 |
|
32 |
|
33 Use the snapshot date in the pci.ids file to generate a SCCS-like |
|
34 version info tag, so that running 'what pcidata.so' or 'what scanpci.so' |
|
35 will show what version of pci.ids data is included. |
|
36 |
|
37 --- hw/xfree86/scanpci/pciid2c.pl Wed Oct 4 14:46:03 2006 |
|
38 +++ hw/xfree86/scanpci/pciid2c.pl Thu Oct 9 18:11:53 2008 |
|
39 @@ -110,6 +110,8 @@ |
|
40 } |
|
41 } elsif (/^\t\tC\s+([0-9a-f]{4})/) { |
|
42 $classes{$vendor}{$device} = $1; |
|
43 + } elsif (/^#\s+(.* snapshot .*)$/) { |
|
44 + $snapshot_version = $1; |
|
45 } |
|
46 # Ignore all other lines. |
|
47 } |
|
48 @@ -162,6 +164,14 @@ |
|
49 |
|
50 "; |
|
51 |
|
52 +print qq( |
|
53 +\#ifdef __SUNPRO_C |
|
54 +\#pragma ident "\@(\#)pci.ids\t$snapshot_version" |
|
55 +\#else |
|
56 +const char sccsid[] = "\@(\#)pci.ids\t$snapshot_version"; |
|
57 +\#endif |
|
58 +); |
|
59 + |
|
60 # The following #ifdefs are used: |
|
61 # - INIT_SUBSYS_INFO -- initialise subsystem data |
|
62 # - INIT_VENDOR_SUBSYS_INFO -- initialise a vendor<->subsystem table. |
|