mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
acpi_pcib: Rename decoded_bus_range to get_decoded_bus_range
While here, change the return value to bool. Discussed by: gibbs
This commit is contained in:
parent
bfccb4a429
commit
f6c2774fe4
1 changed files with 6 additions and 6 deletions
|
|
@ -288,18 +288,18 @@ acpi_pcib_producer_handler(ACPI_RESOURCE *res, void *context)
|
|||
#endif
|
||||
|
||||
#if defined(NEW_PCIB) && defined(PCI_RES_BUS)
|
||||
static int
|
||||
decoded_bus_range(struct acpi_hpcib_softc *sc, rman_res_t *startp,
|
||||
static bool
|
||||
get_decoded_bus_range(struct acpi_hpcib_softc *sc, rman_res_t *startp,
|
||||
rman_res_t *endp)
|
||||
{
|
||||
struct resource_list_entry *rle;
|
||||
|
||||
rle = resource_list_find(&sc->ap_host_res.hr_rl, PCI_RES_BUS, 0);
|
||||
if (rle == NULL)
|
||||
return (ENXIO);
|
||||
return (false);
|
||||
*startp = rle->start;
|
||||
*endp = rle->end;
|
||||
return (0);
|
||||
return (true);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
@ -497,7 +497,7 @@ acpi_pcib_acpi_attach(device_t dev)
|
|||
* If we have a region of bus numbers, use the first
|
||||
* number for our bus.
|
||||
*/
|
||||
if (decoded_bus_range(sc, &start, &end) == 0)
|
||||
if (get_decoded_bus_range(sc, &start, &end))
|
||||
sc->ap_bus = start;
|
||||
else {
|
||||
rid = 0;
|
||||
|
|
@ -517,7 +517,7 @@ acpi_pcib_acpi_attach(device_t dev)
|
|||
* If there is a decoded bus range, assume the bus number is
|
||||
* the first value in the range. Warn if _BBN doesn't match.
|
||||
*/
|
||||
if (decoded_bus_range(sc, &start, &end) == 0) {
|
||||
if (get_decoded_bus_range(sc, &start, &end)) {
|
||||
if (sc->ap_bus != start) {
|
||||
device_printf(dev,
|
||||
"WARNING: BIOS configured bus number (%d) is "
|
||||
|
|
|
|||
Loading…
Reference in a new issue