aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/gigabyte/ga_2761gxdk/mptable.c
diff options
context:
space:
mode:
authorMorgan Tsai <my_tsai@sis.com>2007-11-02 16:09:58 +0000
committerStefan Reinauer <stepan@openbios.org>2007-11-02 16:09:58 +0000
commit218c26533dc5864dd33387e75476f7c8daf3570c (patch)
tree46d2a55ef0a2914097faabf1d74e74f13d895af4 /src/mainboard/gigabyte/ga_2761gxdk/mptable.c
parent7162cf7278f1489cbe4b56a7fb95b713735387d9 (diff)
1. vgabios removed, will go to extra repository
2. Rename sisnb.c to sis761.c 3. Delete many mis-definition for sis device in src/include/device/pci_ids.h 4. Trim trailing spaces for all files Signed-off-by: Morgan Tsai <my_tsai@sis.com> Acked-by: Jordan Crouse <jordan.crouse@amd.com> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2931 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/gigabyte/ga_2761gxdk/mptable.c')
-rw-r--r--src/mainboard/gigabyte/ga_2761gxdk/mptable.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mainboard/gigabyte/ga_2761gxdk/mptable.c b/src/mainboard/gigabyte/ga_2761gxdk/mptable.c
index ab54d0c361..70dc525add 100644
--- a/src/mainboard/gigabyte/ga_2761gxdk/mptable.c
+++ b/src/mainboard/gigabyte/ga_2761gxdk/mptable.c
@@ -33,7 +33,7 @@ extern unsigned char bus_sis966[8]; //1
extern unsigned apicid_sis966;
-extern unsigned bus_type[256];
+extern unsigned bus_type[256];
void *smp_write_config_table(void *v)
{
@@ -80,7 +80,7 @@ void *smp_write_config_table(void *v)
device_t dev;
struct resource *res;
uint32_t dword;
-
+
dev = dev_find_slot(bus_sis966[0], PCI_DEVFN(sbdn+ 0x1,0));
if (dev) {
res = find_resource(dev, PCI_BASE_ADDRESS_1);
@@ -99,7 +99,7 @@ void *smp_write_config_table(void *v)
}
}
-
+
/*I/O Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN#
*/ smp_write_intsrc(mc, mp_ExtINT, MP_IRQ_TRIGGER_EDGE|MP_IRQ_POLARITY_HIGH, bus_isa, 0x0, apicid_sis966, 0x0);
smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_EDGE|MP_IRQ_POLARITY_HIGH, bus_isa, 0x1, apicid_sis966, 0x1);
@@ -135,7 +135,7 @@ void *smp_write_config_table(void *v)
}
}
- for(j=0; j<2; j++)
+ for(j=0; j<2; j++)
for(i=0;i<4;i++) {
smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, bus_sis966[1], ((0x06+j)<<2)|i, apicid_sis966, 0x10 + (2+i+j)%4);
}