summaryrefslogtreecommitdiff
path: root/src/southbridge
diff options
context:
space:
mode:
authorAntonello Dettori <dev@dettori.io>2016-09-03 10:45:33 +0200
committerMartin Roth <martinroth@google.com>2016-10-01 17:39:54 +0200
commit6b63990602aaacd523da2afb5c23a641b6caa6da (patch)
treeb6aeaeb03e3ff2c5a92076cdfcda4b8988b8c8e2 /src/southbridge
parentca159f0fb3bff00cbfe4ba4f1e1b50211004505d (diff)
downloadcoreboot-6b63990602aaacd523da2afb5c23a641b6caa6da.tar.xz
southbridge/broadcom/bcm5785: transition away from device_t
Replace the use of the old device_t definition inside southbridge/broadcom/bcm5785. Change-Id: I091b07439ff918efa52cf8f8270484131fd0cec5 Signed-off-by: Antonello Dettori <dev@dettori.io> Reviewed-on: https://review.coreboot.org/16690 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/southbridge')
-rw-r--r--src/southbridge/broadcom/bcm5785/early_setup.c10
-rw-r--r--src/southbridge/broadcom/bcm5785/early_smbus.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/southbridge/broadcom/bcm5785/early_setup.c b/src/southbridge/broadcom/bcm5785/early_setup.c
index 8aba58cf75..6ee4f6b856 100644
--- a/src/southbridge/broadcom/bcm5785/early_setup.c
+++ b/src/southbridge/broadcom/bcm5785/early_setup.c
@@ -20,7 +20,7 @@
static void bcm5785_enable_lpc(void)
{
uint8_t byte;
- device_t dev;
+ pci_devfn_t dev;
dev = pci_locate_device(PCI_ID(0x1166, 0x0234), 0);
@@ -39,7 +39,7 @@ static void bcm5785_enable_lpc(void)
static void bcm5785_enable_wdt_port_cf9(void)
{
- device_t dev;
+ pci_devfn_t dev;
uint32_t dword;
uint32_t dword_old;
@@ -65,7 +65,7 @@ static void bcm5785_enable_wdt_port_cf9(void)
unsigned get_sbdn(unsigned bus)
{
- device_t dev;
+ pci_devfn_t dev;
/* Find the device.
* There can only be one bcm5785 on a hypertransport chain/bus.
@@ -130,7 +130,7 @@ void soft_reset(void)
static void bcm5785_enable_msg(void)
{
- device_t dev;
+ pci_devfn_t dev;
uint32_t dword;
uint32_t dword_old;
uint8_t byte;
@@ -158,7 +158,7 @@ static void bcm5785_early_setup(void)
{
uint8_t byte;
uint32_t dword;
- device_t dev;
+ pci_devfn_t dev;
//F0
// enable device on bcm5785 at first
diff --git a/src/southbridge/broadcom/bcm5785/early_smbus.c b/src/southbridge/broadcom/bcm5785/early_smbus.c
index f37aed98a4..c702c651ba 100644
--- a/src/southbridge/broadcom/bcm5785/early_smbus.c
+++ b/src/southbridge/broadcom/bcm5785/early_smbus.c
@@ -20,7 +20,7 @@
static void enable_smbus(void)
{
- device_t dev;
+ pci_devfn_t dev;
dev = pci_locate_device(PCI_ID(0x1166, 0x0205), 0); // 0x0201?
if (dev == PCI_DEV_INVALID) {