device: Rename scan_static_bus() -> enable_static_devices()
The new name should reflect better what this function does, as that is only one specific step of the scanning. Change-Id: I9c9dc437b6117112bb28550855a2c38044dfbfa5 Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/31900 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Patrick Rudolph <siro@das-labor.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
64c14b5dcf
commit
f7ed3d4df8
|
@ -19,7 +19,7 @@
|
||||||
const char mainboard_name[] = CONFIG_MAINBOARD_VENDOR " " CONFIG_MAINBOARD_PART_NUMBER;
|
const char mainboard_name[] = CONFIG_MAINBOARD_VENDOR " " CONFIG_MAINBOARD_PART_NUMBER;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Scan devices on static buses.
|
* Enable devices on static buses.
|
||||||
*
|
*
|
||||||
* The enumeration of certain buses is purely static. The existence of
|
* The enumeration of certain buses is purely static. The existence of
|
||||||
* devices on those buses can be completely determined at compile time
|
* devices on those buses can be completely determined at compile time
|
||||||
|
@ -36,7 +36,7 @@ const char mainboard_name[] = CONFIG_MAINBOARD_VENDOR " " CONFIG_MAINBOARD_PART_
|
||||||
* @param bus Pointer to the device to which the static buses are attached to.
|
* @param bus Pointer to the device to which the static buses are attached to.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void scan_static_bus(struct device *bus)
|
void enable_static_devices(struct device *bus)
|
||||||
{
|
{
|
||||||
struct device *child;
|
struct device *child;
|
||||||
struct bus *link;
|
struct bus *link;
|
||||||
|
@ -60,7 +60,7 @@ void scan_lpc_bus(struct device *bus)
|
||||||
{
|
{
|
||||||
printk(BIOS_SPEW, "%s for %s\n", __func__, dev_path(bus));
|
printk(BIOS_SPEW, "%s for %s\n", __func__, dev_path(bus));
|
||||||
|
|
||||||
scan_static_bus(bus);
|
enable_static_devices(bus);
|
||||||
|
|
||||||
printk(BIOS_SPEW, "%s for %s done\n", __func__, dev_path(bus));
|
printk(BIOS_SPEW, "%s for %s done\n", __func__, dev_path(bus));
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,7 @@ void scan_usb_bus(struct device *bus)
|
||||||
|
|
||||||
printk(BIOS_SPEW, "%s for %s\n", __func__, dev_path(bus));
|
printk(BIOS_SPEW, "%s for %s\n", __func__, dev_path(bus));
|
||||||
|
|
||||||
scan_static_bus(bus);
|
enable_static_devices(bus);
|
||||||
|
|
||||||
/* Scan bridges in case this device is a hub */
|
/* Scan bridges in case this device is a hub */
|
||||||
for (link = bus->link_list; link; link = link->next)
|
for (link = bus->link_list; link; link = link->next)
|
||||||
|
@ -129,7 +129,7 @@ static void root_dev_scan_bus(struct device *bus)
|
||||||
|
|
||||||
printk(BIOS_SPEW, "%s for %s\n", __func__, dev_path(bus));
|
printk(BIOS_SPEW, "%s for %s\n", __func__, dev_path(bus));
|
||||||
|
|
||||||
scan_static_bus(bus);
|
enable_static_devices(bus);
|
||||||
|
|
||||||
for (link = bus->link_list; link; link = link->next)
|
for (link = bus->link_list; link; link = link->next)
|
||||||
scan_bridges(link);
|
scan_bridges(link);
|
||||||
|
|
|
@ -327,9 +327,9 @@ static inline DEVTREE_CONST void *config_of_soc(void)
|
||||||
return config_of(pcidev_on_root(0, 0));
|
return config_of(pcidev_on_root(0, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void enable_static_devices(struct device *bus);
|
||||||
void scan_smbus(struct device *bus);
|
void scan_smbus(struct device *bus);
|
||||||
void scan_generic_bus(struct device *bus);
|
void scan_generic_bus(struct device *bus);
|
||||||
void scan_static_bus(struct device *bus);
|
|
||||||
void scan_lpc_bus(struct device *bus);
|
void scan_lpc_bus(struct device *bus);
|
||||||
void scan_usb_bus(struct device *bus);
|
void scan_usb_bus(struct device *bus);
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ static struct device_operations dsp_dev_ops = {
|
||||||
.set_resources = pci_dev_set_resources,
|
.set_resources = pci_dev_set_resources,
|
||||||
.enable_resources = pci_dev_enable_resources,
|
.enable_resources = pci_dev_enable_resources,
|
||||||
.ops_pci = &pci_dev_ops_pci,
|
.ops_pci = &pci_dev_ops_pci,
|
||||||
.scan_bus = scan_static_bus,
|
.scan_bus = enable_static_devices,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const unsigned short pci_device_ids[] = {
|
static const unsigned short pci_device_ids[] = {
|
||||||
|
|
|
@ -68,7 +68,7 @@ static struct device_operations hda_ops = {
|
||||||
.init = hda_init,
|
.init = hda_init,
|
||||||
#endif
|
#endif
|
||||||
.ops_pci = &pci_dev_ops_pci,
|
.ops_pci = &pci_dev_ops_pci,
|
||||||
.scan_bus = scan_static_bus,
|
.scan_bus = enable_static_devices,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const unsigned short pci_device_ids[] = {
|
static const unsigned short pci_device_ids[] = {
|
||||||
|
|
|
@ -187,7 +187,7 @@ static void enable_dev(struct device *dev)
|
||||||
* Need to call enable_dev() on the devices "behind" the Generic Super I/O.
|
* Need to call enable_dev() on the devices "behind" the Generic Super I/O.
|
||||||
* coreboot's generic allocator doesn't expect them behind PnP devices.
|
* coreboot's generic allocator doesn't expect them behind PnP devices.
|
||||||
*/
|
*/
|
||||||
scan_static_bus(dev);
|
enable_static_devices(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct chip_operations superio_common_ops = {
|
struct chip_operations superio_common_ops = {
|
||||||
|
|
Loading…
Reference in New Issue