[coreboot-gerrit] Change in coreboot[master]: soc/intel/apollolake: Use pci_devfn_t instead of device_t

Elyes HAOUAS (Code Review) gerrit at coreboot.org
Sun Jun 10 11:28:01 CEST 2018


Elyes HAOUAS has uploaded this change for review. ( https://review.coreboot.org/27003


Change subject: soc/intel/apollolake: Use pci_devfn_t instead of device_t
......................................................................

soc/intel/apollolake: Use pci_devfn_t instead of device_t

Change-Id: I768bb5e45a5c21fb4bf9335d030cf06efc1c371b
Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
---
M src/soc/intel/apollolake/bootblock/bootblock.c
M src/soc/intel/apollolake/smihandler.c
2 files changed, 3 insertions(+), 3 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/03/27003/1

diff --git a/src/soc/intel/apollolake/bootblock/bootblock.c b/src/soc/intel/apollolake/bootblock/bootblock.c
index 81843a4..c7ababd 100644
--- a/src/soc/intel/apollolake/bootblock/bootblock.c
+++ b/src/soc/intel/apollolake/bootblock/bootblock.c
@@ -50,7 +50,7 @@
 
 asmlinkage void bootblock_c_entry(uint64_t base_timestamp)
 {
-	device_t dev;
+	pci_devfn_t dev;
 
 	bootblock_systemagent_early_init();
 
@@ -75,7 +75,7 @@
 
 static void enable_pmcbar(void)
 {
-	device_t pmc = PCH_DEV_PMC;
+	pci_devfn_t pmc = PCH_DEV_PMC;
 
 	/* Set PMC base addresses and enable decoding. */
 	pci_write_config32(pmc, PCI_BASE_ADDRESS_0, PMC_BAR0);
diff --git a/src/soc/intel/apollolake/smihandler.c b/src/soc/intel/apollolake/smihandler.c
index 5b28db2..4acd7cb 100644
--- a/src/soc/intel/apollolake/smihandler.c
+++ b/src/soc/intel/apollolake/smihandler.c
@@ -22,7 +22,7 @@
 #include <soc/pci_devs.h>
 #include <soc/pm.h>
 
-int smihandler_soc_disable_busmaster(device_t dev)
+int smihandler_soc_disable_busmaster(pci_devfn_t dev)
 {
 	if (dev == PCH_DEV_PMC)
 		return 0;

-- 
To view, visit https://review.coreboot.org/27003
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I768bb5e45a5c21fb4bf9335d030cf06efc1c371b
Gerrit-Change-Number: 27003
Gerrit-PatchSet: 1
Gerrit-Owner: Elyes HAOUAS <ehaouas at noos.fr>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180610/c3149e30/attachment.html>


More information about the coreboot-gerrit mailing list