summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMyles Watson <mylesgw@gmail.com>2009-10-13 20:00:09 +0000
committerMyles Watson <mylesgw@gmail.com>2009-10-13 20:00:09 +0000
commit54913b98e53f5bb596732b172791326268afbae0 (patch)
treecab8ea7098af371b6369e20601f4a6c8f76bb43a /src
parent95aa53a5c3b84b6593714db59fa8a2b2180d47b0 (diff)
downloadcoreboot-54913b98e53f5bb596732b172791326268afbae0.tar.xz
Remove a couple more warnings. Trivial.
Signed-off-by: Myles Watson <mylesgw@gmail.com> Acked-by: Myles Watson <mylesgw@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4768 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src')
-rw-r--r--src/devices/device.c4
-rw-r--r--src/mainboard/tyan/s2892/mptable.c2
-rw-r--r--src/mainboard/tyan/s2895/irq_tables.c6
-rw-r--r--src/mainboard/tyan/s2895/mptable.c2
4 files changed, 10 insertions, 4 deletions
diff --git a/src/devices/device.c b/src/devices/device.c
index daa884d8fb..0dd6e0bf47 100644
--- a/src/devices/device.c
+++ b/src/devices/device.c
@@ -235,7 +235,7 @@ static struct device *largest_resource(struct bus *bus,
* the allocator. Also this allows handling of other types of bridges.
*
*/
-void compute_resources(struct bus *bus, struct resource *bridge,
+static void compute_resources(struct bus *bus, struct resource *bridge,
unsigned long type_mask, unsigned long type)
{
struct device *dev;
@@ -392,7 +392,7 @@ void compute_resources(struct bus *bus, struct resource *bridge,
* @param type_mask This value gets anded with the resource type.
* @param type This value must match the result of the and.
*/
-void allocate_resources(struct bus *bus, struct resource *bridge,
+static void allocate_resources(struct bus *bus, struct resource *bridge,
unsigned long type_mask, unsigned long type)
{
struct device *dev;
diff --git a/src/mainboard/tyan/s2892/mptable.c b/src/mainboard/tyan/s2892/mptable.c
index da2daac85e..feb7cd63f9 100644
--- a/src/mainboard/tyan/s2892/mptable.c
+++ b/src/mainboard/tyan/s2892/mptable.c
@@ -24,7 +24,7 @@ extern unsigned sbdn3;
extern void get_bus_conf(void);
-void *smp_write_config_table(void *v)
+static void *smp_write_config_table(void *v)
{
static const char sig[4] = "PCMP";
static const char oem[8] = "TYAN ";
diff --git a/src/mainboard/tyan/s2895/irq_tables.c b/src/mainboard/tyan/s2895/irq_tables.c
index efde485ff7..425aad7105 100644
--- a/src/mainboard/tyan/s2895/irq_tables.c
+++ b/src/mainboard/tyan/s2895/irq_tables.c
@@ -163,6 +163,12 @@ unsigned long write_pirq_routing_table(unsigned long addr)
pirq_info++; slot_num++;
#endif
+ if(sysconf.pci1234[2] & 0xf) {
+ //second pci beidge
+ write_pirq_info(pirq_info, bus_ck804b_0, ((sbdnb+9)<<3)|0, 0x1, 0xdef8, 0x2, 0xdef8, 0x3, 0xdef8, 0x4, 0xdef8, 0x0, 0);
+ pirq_info++; slot_num++;
+ }
+
pirq->size = 32 + 16 * slot_num;
for (i = 0; i < pirq->size; i++)
diff --git a/src/mainboard/tyan/s2895/mptable.c b/src/mainboard/tyan/s2895/mptable.c
index 6036cf0c30..23494f0763 100644
--- a/src/mainboard/tyan/s2895/mptable.c
+++ b/src/mainboard/tyan/s2895/mptable.c
@@ -32,7 +32,7 @@ extern unsigned sbdnb;
extern void get_bus_conf(void);
-void *smp_write_config_table(void *v)
+static void *smp_write_config_table(void *v)
{
static const char sig[4] = "PCMP";
static const char oem[8] = "TYAN ";