Lines 38-51
Link Here
|
38 |
exit 1 |
38 |
exit 1 |
39 |
fi |
39 |
fi |
40 |
|
40 |
|
|
|
41 |
if [ "$VENDOR_ID" = "" -a "$SPECIFIER_ID" = "" -a "$VERSION" = "" ]; then |
42 |
exit 0 |
43 |
fi |
41 |
|
44 |
|
42 |
device_vendor_id=$((0x$VENDOR_ID)) |
45 |
device_vendor_id=$((0x$VENDOR_ID)) |
43 |
device_specifier_id=$((0x$SPECIFIER_ID)) |
46 |
device_specifier_id=$((0x$SPECIFIER_ID)) |
44 |
device_version=$((0x$VERSION)) |
47 |
device_version=$((0x$VERSION)) |
45 |
|
48 |
|
46 |
MATCH_VENDOR_ID=0x0001 |
49 |
MATCH_VENDOR_ID=$((0x0001)) |
47 |
MATCH_SPECIFIER_ID=0x0004 |
50 |
MATCH_SPECIFIER_ID=$((0x0004)) |
48 |
MATCH_VERSION=0x0008 |
51 |
MATCH_VERSION=$((0x0008)) |
49 |
|
52 |
|
50 |
# |
53 |
# |
51 |
# stdin is "modules.ieee1394map" syntax |
54 |
# stdin is "modules.ieee1394map" syntax |
Lines 55-70
Link Here
|
55 |
{ |
58 |
{ |
56 |
local module ignored |
59 |
local module ignored |
57 |
|
60 |
|
58 |
# convert from hex to dec |
|
|
59 |
match_flags=$(($match_flags)) |
60 |
vendor_id=$(($vendor_id)); model_id=$(($model_id)) |
61 |
specifier_id=$(($specifier_id)); version=$(($version)) |
62 |
|
63 |
# comment line lists (current) pci_device_id field names |
61 |
# comment line lists (current) pci_device_id field names |
64 |
read ignored |
62 |
read ignored |
65 |
|
63 |
|
66 |
while read module match_flags vendor_id model_id specifier_id version |
64 |
while read module match_flags vendor_id model_id specifier_id version |
67 |
do |
65 |
do |
|
|
66 |
# convert from hex to dec |
67 |
match_flags=$(($match_flags)) |
68 |
vendor_id=$(($vendor_id)) |
69 |
model_id=$(($model_id)) |
70 |
specifier_id=$(($specifier_id)) |
71 |
version=$(($version)) |
72 |
|
68 |
: check match for $module |
73 |
: check match for $module |
69 |
|
74 |
|
70 |
: vendor_id $vendor_id $device_vendor_id |
75 |
: vendor_id $vendor_id $device_vendor_id |