sconfig: rename pci_domain -> domain
The name pci_domain was a bit misleading, since the construct is only PCI specific in a particular (northbridge/cpu) implementation, but not by concept. As implementations and hardware change, be more generic about our naming. This will allow us to support non-PCI systems without adding new keywords. Change-Id: Ide885a1d5e15d37560c79b936a39252150560e85 Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/2376 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
committed by
Ronald G. Minnich
parent
dc8259ce1d
commit
4aff4458f5
@ -266,8 +266,8 @@ struct device *new_device(struct device *parent, struct device *busdev, const in
|
||||
new_d->path = ".type=DEVICE_PATH_APIC_CLUSTER,{.apic_cluster={ .cluster = 0x%x }}";
|
||||
break;
|
||||
|
||||
case PCI_DOMAIN:
|
||||
new_d->path = ".type=DEVICE_PATH_PCI_DOMAIN,{.pci_domain={ .domain = 0x%x }}";
|
||||
case DOMAIN:
|
||||
new_d->path = ".type=DEVICE_PATH_DOMAIN,{.domain={ .domain = 0x%x }}";
|
||||
break;
|
||||
|
||||
case IOAPIC:
|
||||
@ -342,7 +342,7 @@ void add_register(struct device *dev, char *name, char *val) {
|
||||
|
||||
void add_pci_subsystem_ids(struct device *dev, int vendor, int device, int inherit)
|
||||
{
|
||||
if (dev->bustype != PCI && dev->bustype != PCI_DOMAIN) {
|
||||
if (dev->bustype != PCI && dev->bustype != DOMAIN) {
|
||||
printf("ERROR: 'subsystem' only allowed for PCI devices\n");
|
||||
exit(1);
|
||||
}
|
||||
@ -365,7 +365,7 @@ void add_ioapic_info(struct device *dev, int apicid, const char *_srcpin, int ir
|
||||
|
||||
srcpin = _srcpin[3] - 'A';
|
||||
|
||||
if (dev->bustype != PCI && dev->bustype != PCI_DOMAIN) {
|
||||
if (dev->bustype != PCI && dev->bustype != DOMAIN) {
|
||||
printf("ERROR: ioapic config only allowed for PCI devices\n");
|
||||
exit(1);
|
||||
}
|
||||
@ -529,7 +529,7 @@ static void inherit_subsystem_ids(FILE *file, struct device *dev)
|
||||
|
||||
for(p = dev; p && p != p->parent; p = p->parent) {
|
||||
|
||||
if (p->bustype != PCI && p->bustype != PCI_DOMAIN)
|
||||
if (p->bustype != PCI && p->bustype != DOMAIN)
|
||||
continue;
|
||||
|
||||
if (p->inherit_subsystem) {
|
||||
|
Reference in New Issue
Block a user