[coreboot-gerrit] Change in coreboot[master]: soc/intel/apollolake: Get rid of device_t

Elyes HAOUAS (Code Review) gerrit at coreboot.org
Thu May 24 22:49:49 CEST 2018


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


Change subject: soc/intel/apollolake: Get rid of device_t
......................................................................

soc/intel/apollolake: Get rid of device_t

Use of device_t has been abandoned in ramstage.

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



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/20/26520/1

diff --git a/src/soc/intel/apollolake/chip.c b/src/soc/intel/apollolake/chip.c
index c49f734..24c7a59 100644
--- a/src/soc/intel/apollolake/chip.c
+++ b/src/soc/intel/apollolake/chip.c
@@ -155,7 +155,7 @@
 	return NULL;
 }
 
-static void pci_domain_set_resources(device_t dev)
+static void pci_domain_set_resources(struct device *dev)
 {
 	assign_resources(dev->link_list);
 }
@@ -178,7 +178,7 @@
 	.acpi_fill_ssdt_generator = generate_cpu_entries,
 };
 
-static void enable_dev(device_t dev)
+static void enable_dev(struct device *dev)
 {
 	/* Set the operations if it is a special bus type */
 	if (dev->path.type == DEVICE_PATH_DOMAIN)
@@ -196,7 +196,7 @@
  */
 static void pcie_update_device_tree(unsigned int devfn0, int num_funcs)
 {
-	device_t func0;
+	struct device *func0;
 	unsigned int devfn;
 	int i;
 	unsigned int inc = PCI_DEVFN(0, 1);
@@ -217,7 +217,7 @@
 	 * as that port was move to func0.
 	 */
 	for (i = 1; i < num_funcs; i++, devfn += inc) {
-		device_t dev = dev_find_slot(0, devfn);
+		struct device *dev = dev_find_slot(0, devfn);
 		if (dev == NULL)
 			continue;
 
diff --git a/src/soc/intel/apollolake/cpu.c b/src/soc/intel/apollolake/cpu.c
index cda11d2..4a7e40a 100644
--- a/src/soc/intel/apollolake/cpu.c
+++ b/src/soc/intel/apollolake/cpu.c
@@ -67,7 +67,7 @@
 	REG_SCRIPT_END
 };
 
-void soc_core_init(device_t cpu)
+void soc_core_init(struct device *cpu)
 {
 	/* Clear out pending MCEs */
 	/* TODO(adurbin): This should only be done on a cold boot. Also, some
@@ -96,7 +96,7 @@
 }
 
 #if !IS_ENABLED(CONFIG_SOC_INTEL_COMMON_BLOCK_CPU_MPINIT)
-static void soc_init_core(device_t cpu)
+static void soc_init_core(struct device *cpu)
 {
 	soc_core_init(cpu);
 }
@@ -283,7 +283,7 @@
 
 int soc_fill_sgx_param(struct sgx_param *sgx_param)
 {
-	device_t dev = SA_DEV_ROOT;
+	struct device *dev = SA_DEV_ROOT;
 	assert(dev != NULL);
 	config_t *conf = dev->chip_info;
 

-- 
To view, visit https://review.coreboot.org/26520
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: Id6bcf98892c1944ec9c7e637f63c4c05fe9a0c07
Gerrit-Change-Number: 26520
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/20180524/99f3a005/attachment.html>


More information about the coreboot-gerrit mailing list