Allow attimer to be hinted at ISA if not reported by ISA PNP or ACPI.
Rephrase respective atrtc code same way to be more readable.
This commit is contained in:
parent
6019ba4e4b
commit
a7d6757c3e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209635
@ -231,13 +231,13 @@ atrtc_probe(device_t dev)
|
||||
{
|
||||
int result;
|
||||
|
||||
device_set_desc(dev, "AT Real Time Clock");
|
||||
result = ISA_PNP_PROBE(device_get_parent(dev), dev, atrtc_ids);
|
||||
/* ENXIO if wrong PnP-ID, ENOENT ifno PnP-ID, zero if good PnP-iD */
|
||||
if (result != ENOENT)
|
||||
return(result);
|
||||
/* All PC's have an RTC, and we're hosed without it, so... */
|
||||
return (BUS_PROBE_LOW_PRIORITY);
|
||||
/* ENOENT means no PnP-ID, device is hinted. */
|
||||
if (result == ENOENT) {
|
||||
device_set_desc(dev, "AT realtime clock");
|
||||
return (BUS_PROBE_LOW_PRIORITY);
|
||||
}
|
||||
return (result);
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -511,7 +511,12 @@ attimer_probe(device_t dev)
|
||||
int result;
|
||||
|
||||
result = ISA_PNP_PROBE(device_get_parent(dev), dev, attimer_ids);
|
||||
return(result);
|
||||
/* ENOENT means no PnP-ID, device is hinted. */
|
||||
if (result == ENOENT) {
|
||||
device_set_desc(dev, "AT timer");
|
||||
return (BUS_PROBE_LOW_PRIORITY);
|
||||
}
|
||||
return (result);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user