* Check to see if a device is disabled via a disabled hint. */
| 478 | * Check to see if a device is disabled via a disabled hint. |
| 479 | */ |
| 480 | int |
| 481 | resource_disabled(const char *name, int unit) |
| 482 | { |
| 483 | int error, value; |
| 484 | |
| 485 | error = resource_int_value(name, unit, "disabled", &value); |
| 486 | if (error) |
| 487 | return (0); |
| 488 | return (value); |
| 489 | } |
| 490 | |
| 491 | /* |
| 492 | * Clear a value associated with a device by removing it from |
no test coverage detected