156
156
pcilib_error("Invalid minimum value (%s) is specified in the XML register description", value);
157
157
return PCILIB_ERROR_INVALID_DATA;
160
160
} else if (!strcasecmp(name, "max")) {
161
161
pcilib_register_value_t max = strtol(value, &endptr, 0);
162
162
if ((strlen(endptr) > 0)) {
163
163
pcilib_error("Invalid minimum value (%s) is specified in the XML register description", value);
164
164
return PCILIB_ERROR_INVALID_DATA;
167
167
} else if (!strcasecmp((char*)name,"rwmask")) {
168
168
if (!strcasecmp(value, "all")) {
169
169
desc->rwmask = PCILIB_REGISTER_ALL_BITS;