summaryrefslogtreecommitdiff
path: root/src/northbridge/amd
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2010-04-14 10:12:23 +0000
committerStefan Reinauer <stepan@openbios.org>2010-04-14 10:12:23 +0000
commit4154c668f24da79672099dfac06f5263c415fee0 (patch)
tree260835bf16506bce6bc8f3837a16a352c679c486 /src/northbridge/amd
parentc264ad930a2579dc235de0c95842374e89ff5d6a (diff)
zero warnings days. Down to under 600 different warnings
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5425 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge/amd')
-rw-r--r--src/northbridge/amd/amdht/h3finit.c2
-rw-r--r--src/northbridge/amd/gx2/northbridge.c18
2 files changed, 10 insertions, 10 deletions
diff --git a/src/northbridge/amd/amdht/h3finit.c b/src/northbridge/amd/amdht/h3finit.c
index bb37481d10..be02ab3d3b 100644
--- a/src/northbridge/amd/amdht/h3finit.c
+++ b/src/northbridge/amd/amdht/h3finit.c
@@ -1692,7 +1692,7 @@ void tuning(sMainData *pDat)
* @param[out] result BOOL = true if check is ok, false if it failed
* ---------------------------------------------------------------------------------------
*/
-BOOL isSanityCheckOk()
+BOOL isSanityCheckOk(void)
{
uint64 qValue;
diff --git a/src/northbridge/amd/gx2/northbridge.c b/src/northbridge/amd/gx2/northbridge.c
index 3f9e89d63c..190529ce04 100644
--- a/src/northbridge/amd/gx2/northbridge.c
+++ b/src/northbridge/amd/gx2/northbridge.c
@@ -123,9 +123,9 @@ struct msr_defaults {
};
/* note that dev is NOT used -- yet */
-static void irq_init_steering(struct device *dev, uint16_t irq_map) {
+static void irq_init_steering(struct device *dev, u16 irq_map) {
/* Set up IRQ steering */
- uint32_t pciAddr = 0x80000000 | (CHIPSET_DEV_NUM << 11) | 0x5C;
+ u32 pciAddr = 0x80000000 | (CHIPSET_DEV_NUM << 11) | 0x5C;
printk(BIOS_DEBUG, "%s(%p [%08X], %04X)\n", __func__, dev, pciAddr, irq_map);
@@ -298,17 +298,17 @@ static void northbridge_init(device_t dev)
/* this is a test -- we are not sure it will work -- but it ought to */
static void set_resources(struct device *dev)
{
+#if 0
struct resource *resource, *last;
- unsigned link;
- uint8_t line;
-#if 0
last = &dev->resource[dev->resources];
for(resource = &dev->resource[0]; resource < last; resource++) {
pci_set_resource(dev, resource);
}
#endif
+ unsigned link;
+
for(link = 0; link < dev->links; link++) {
struct bus *bus;
bus = &dev->link[link];
@@ -327,7 +327,7 @@ static void set_resources(struct device *dev)
}
/* zero the irq settings */
- line = pci_read_config8(dev, PCI_INTERRUPT_PIN);
+ u8 line = pci_read_config8(dev, PCI_INTERRUPT_PIN);
if (line) {
pci_write_config8(dev, PCI_INTERRUPT_LINE, 0);
}
@@ -383,10 +383,10 @@ static void tolm_test(void *gp, struct device *dev, struct resource *new)
}
#if 0
-static uint32_t find_pci_tolm(struct bus *bus)
+static u32 find_pci_tolm(struct bus *bus)
{
struct resource *min;
- uint32_t tolm;
+ u32 tolm;
min = 0;
search_bus_resources(bus, IORESOURCE_MEM, IORESOURCE_MEM, tolm_test, &min);
tolm = 0xffffffffUL;
@@ -402,7 +402,7 @@ static void pci_domain_set_resources(device_t dev)
{
#if 0
device_t mc_dev;
- uint32_t pci_tolm;
+ u32 pci_tolm;
pci_tolm = find_pci_tolm(&dev->link[0]);
mc_dev = dev->link[0].children;