device/device.h: Drop multiple links
Multiple links are unused throughout the tree and make the code more confusing as an iteration over all busses is needed to get downstream devices. This also not done consistently e.g. the allocator does not care about multiple links on busses. A better way of dealing multiple links below a device is to feature dummy devices with each their respective bus. This drops the sconfig capability to declare the same device multiple times which was previously used to declare multiple links. Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Change-Id: Iab6fe269faef46ae77ed1ea425440cf5c7dbd49b Reviewed-on: https://review.coreboot.org/c/coreboot/+/78328 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jincheng Li <jincheng.li@intel.com> Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
This commit is contained in:
committed by
Felix Held
parent
27ce0ec2b6
commit
80c79a5dc3
@@ -106,17 +106,11 @@ struct chip {
|
||||
|
||||
struct device;
|
||||
struct bus {
|
||||
/* Instance/ID of the bus under the device. */
|
||||
int id;
|
||||
|
||||
/* Pointer to device to which this bus belongs. */
|
||||
struct device *dev;
|
||||
|
||||
/* Pointer to list of children. */
|
||||
struct device *children;
|
||||
|
||||
/* Pointer to next bus for the device. */
|
||||
struct bus *next_bus;
|
||||
};
|
||||
|
||||
struct device {
|
||||
@@ -157,10 +151,8 @@ struct device {
|
||||
/* Pointer to chip instance for this device. */
|
||||
struct chip_instance *chip_instance;
|
||||
|
||||
/* Pointer to list of buses under this device. */
|
||||
/* Pointer to the bus under this device. */
|
||||
struct bus *bus;
|
||||
/* Pointer to last bus under this device. */
|
||||
struct bus *last_bus;
|
||||
|
||||
/* Global identifier of the ops for this device. */
|
||||
char *ops_id;
|
||||
|
Reference in New Issue
Block a user