From 26b2922f1cf61a5076ea81fcd764cce94fc5900f Mon Sep 17 00:00:00 2001 From: Yinghai Lu Date: Wed, 19 Jan 2005 01:21:05 +0000 Subject: linkb_to_host git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1885 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/devices/hypertransport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/devices') diff --git a/src/devices/hypertransport.c b/src/devices/hypertransport.c index a75550cdae..411e7542c0 100644 --- a/src/devices/hypertransport.c +++ b/src/devices/hypertransport.c @@ -71,7 +71,7 @@ static int ht_setup_link(struct prev_link *prev, device_t dev, unsigned pos) /* Set the hypertransport link width and frequency */ reset_needed = 0; - linkb_to_host = pci_read_config16(dev, pos + PCI_CAP_FLAGS) & (1<<10); + linkb_to_host = (pci_read_config16(dev, pos + PCI_CAP_FLAGS) >> 10) & 1; /* Read the capabilities */ present_freq_cap = ht_read_freq_cap(dev, pos + (linkb_to_host ? PCI_HT_CAP_SLAVE_FREQ_CAP1: PCI_HT_CAP_SLAVE_FREQ_CAP0)); -- cgit v1.2.3