Lines Matching +defs:val +defs:output
48 static void lspci_send(const char *output);
51 /* Handle one line of output from the lspci subprocess */
55 const char *val;
60 val = line + sizeof("Class:");
62 val += strspn(val, " \t") + sizeof("Class");
63 current_device.klass = strtol(val, NULL, 16);
67 val = line + sizeof("Vendor:");
68 current_device.vendor = strtol(val, NULL, 16);
72 val = line + sizeof("Device:");
75 if (!strchr(val, ':'))
76 current_device.device = strtol(val, NULL, 16);
80 val = line + sizeof("SVendor:");
81 current_device.subvendor = strtol(val, NULL, 16);
85 val = line + sizeof("SDevice:");
86 current_device.subdevice = strtol(val, NULL, 16);
90 val = line + sizeof("Rev:");
91 current_device.revision = strtol(val, NULL, 16);
95 val = line + sizeof("ProgIf:");
96 current_device.progif = strtol(val, NULL, 16);
170 lspci_send(const char *output)
175 len = strlen(output);
177 out_uint8p(s, output, len) s_mark_end(s);