X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=util%2Fnewconfig%2Fconfig.g;h=d01f336a24631db5cca300a1cd9a8ff32625398d;hb=f3ed1cfad748bf5610d315afba7ec04d6338bd9b;hp=3f9b5a379ef3bd5a8d534eda2f56321108879523;hpb=7003ba4a88a847707c55d593e517eaa70fc8c63d;p=coreboot.git diff --git a/util/newconfig/config.g b/util/newconfig/config.g index 3f9b5a379..d01f336a2 100644 --- a/util/newconfig/config.g +++ b/util/newconfig/config.g @@ -724,6 +724,8 @@ class partobj: def firstsiblingdevice(self): """Find the first device in the sibling link.""" sibling = self.siblings + if ((not sibling) and (self.parent.chip_or_device == 'chip')): + sibling = self.parent.siblings while(sibling): if (sibling.chip_or_device == 'device'): return sibling @@ -921,7 +923,7 @@ class partobj: fatal("Invalid pci_domain: 0x%x is out of the range 0 to 0xffff" % pci_domain) self.path = ".type=DEVICE_PATH_PCI_DOMAIN,.u={.pci_domain={ .domain = 0x%x }}" % (pci_domain) - def addapic_cluster(self, cluster): + def addapic_clusterpath(self, cluster): """ Add a pci_domain number to a chip """ if ((cluster < 0) or (cluster > 15)): fatal("Invalid apic cluster: %d is out of the range 0 to ff" % cluster) @@ -1689,10 +1691,10 @@ parser Config: ) {{ if(C): partstack.tos().set_enabled(val) }} rule resource<>: {{ type = "" }} - ( IO {{ type = "IORESOURCE_IO" }} - | MEM {{ type = "IORESOURCE_MEM" }} - | IRQ {{ type = "IORESOURCE_IRQ" }} - | DRQ {{ type = "IORESOURCE_DRQ" }} + ( IO {{ type = "IORESOURCE_FIXED | IORESOURCE_IO" }} + | MEM {{ type = "IORESOURCE_FIXED | IORESOURCE_MEM" }} + | IRQ {{ type = "IORESOURCE_FIXED | IORESOURCE_IRQ" }} + | DRQ {{ type = "IORESOURCE_FIXED | IORESOURCE_DRQ" }} ) term '=' {{ index = term }} term {{ value = term }} @@ -1729,7 +1731,7 @@ parser Config: rule apic_cluster<>: APIC_CLUSTER {{ if (C): devicepart('apic_cluster') }} HEX_NUM {{ cluster = int(HEX_NUM, 16) }} - {{ if (C): partstack.tos().addapicpath(cluster) }} + {{ if (C): partstack.tos().addapic_clusterpath(cluster) }} rule dev_path<>: pci<> {{ return pci }}