summaryrefslogtreecommitdiff
path: root/src/devices/hypertransport.c
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2007-10-23 22:17:45 +0000
committerStefan Reinauer <stepan@openbios.org>2007-10-23 22:17:45 +0000
commit0dff6e3fa95ea13f6ee6cb2d4277e83076d81bad (patch)
treeaaf9a4fcab39c9dba0c4dc7457a79fc0d327cf4c /src/devices/hypertransport.c
parent643eee07541f10fcc3b34a56dc8bf2cf8d93c649 (diff)
downloadcoreboot-0dff6e3fa95ea13f6ee6cb2d4277e83076d81bad.tar.xz
fix a whole bunch of warnings. (trivial)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2890 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/devices/hypertransport.c')
-rw-r--r--src/devices/hypertransport.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/devices/hypertransport.c b/src/devices/hypertransport.c
index 9846794edd..01096d054e 100644
--- a/src/devices/hypertransport.c
+++ b/src/devices/hypertransport.c
@@ -37,6 +37,9 @@
#include <part/hard_reset.h>
#include <part/fallback_boot.h>
+/* The hypertransport link is already optimized in pre-ram code
+ * so don't do it again
+ */
#define OPT_HT_LINK 0
#if OPT_HT_LINK == 1
@@ -123,15 +126,17 @@ struct ht_link {
static int ht_setup_link(struct ht_link *prev, device_t dev, unsigned pos)
{
+#if OPT_HT_LINK == 1
static const uint8_t link_width_to_pow2[]= { 3, 4, 0, 5, 1, 2, 0, 0 };
static const uint8_t pow2_to_link_width[] = { 0x7, 4, 5, 0, 1, 3 };
- struct ht_link cur[1];
unsigned present_width_cap, upstream_width_cap;
unsigned present_freq_cap, upstream_freq_cap;
unsigned ln_present_width_in, ln_upstream_width_in;
unsigned ln_present_width_out, ln_upstream_width_out;
unsigned freq, old_freq;
unsigned present_width, upstream_width, old_width;
+#endif
+ struct ht_link cur[1];
int reset_needed;
int linkb_to_host;
@@ -485,7 +490,7 @@ unsigned int hypertransport_scan_chain(struct bus *bus,
next_unitid = HT_CHAIN_END_UNITID_BASE;
end_used = 1;
} else {
- goto out;
+ goto end_of_chain;
}
}
@@ -535,7 +540,6 @@ unsigned int hypertransport_scan_chain(struct bus *bus,
(dev->enabled? "enabled": "disabled"), next_unitid);
} while (last_unitid != next_unitid);
- out:
end_of_chain:
#if OPT_HT_LINK == 1
if(bus->reset_needed) {