the following patch was just integrated into master:
commit f74ca42fc8462f791fdb2866919625a8f6459e1d
Author: Vikram Narayanan <vikram186(a)gmail.com>
Date: Tue Jan 24 20:22:20 2012 +0530
pci_ops_mmconf: Move conditional compilation to Makefile
Moved the conditional compilation out of the source file
Change-Id: Ic4045006f39d70f4a0bc37d1bd5e073ed8477c68
Signed-off-by: Vikram Narayanan <vikram186(a)gmail.com>
Build-Tested: build bot (Jenkins) at Thu Jan 26 07:51:49 2012, giving +1
Reviewed-By: Stefan Reinauer <stefan.reinauer(a)coreboot.org> at Thu Jan 26 22:15:18 2012, giving +2
See http://review.coreboot.org/578 for details.
-gerrit
Patrick Georgi (patrick(a)georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/587
-gerrit
commit babb2da4b6ad509c69c20ca11de5f8c1fa89a8e3
Author: Patrick Georgi <patrick.georgi(a)secunet.com>
Date: Mon Jan 16 15:39:57 2012 +0100
libpayload: Add iterators for CMOS variables
Provide functions that pick the first CMOS variable defined
in the cmos layout, and from there, the next one.
Change-Id: Ie98146de7f6273089fc6fc0b232a4b94337cf8a3
Signed-off-by: Patrick Georgi <patrick.georgi(a)secunet.com>
---
payloads/libpayload/drivers/options.c | 14 ++++++++++++++
payloads/libpayload/include/libpayload.h | 2 ++
2 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/payloads/libpayload/drivers/options.c b/payloads/libpayload/drivers/options.c
index c4e9d16..90fefe0 100644
--- a/payloads/libpayload/drivers/options.c
+++ b/payloads/libpayload/drivers/options.c
@@ -171,6 +171,20 @@ static struct cb_cmos_entries *lookup_cmos_entry(struct cb_cmos_option_table *op
return NULL;
}
+struct cb_cmos_entries *first_cmos_entry(struct cb_cmos_option_table *option_table)
+{
+ return lookup_cmos_entry(option_table, "");
+}
+
+struct cb_cmos_entries *next_cmos_entry(struct cb_cmos_entries *cmos_entry)
+{
+ struct cb_cmos_entries *next = (struct cb_cmos_entries*)((unsigned char *)cmos_entry + cmos_entry->size);
+ if (next->tag == CB_TAG_OPTION)
+ return next;
+ else
+ return NULL;
+}
+
/* Either value or text must be NULL. Returns the field that matches "the other" for a given config_id */
static struct cb_cmos_enums *lookup_cmos_enum_core(struct cb_cmos_option_table *option_table, int config_id, u8 *value, char *text)
{
diff --git a/payloads/libpayload/include/libpayload.h b/payloads/libpayload/include/libpayload.h
index 488ad48..53d6672 100644
--- a/payloads/libpayload/include/libpayload.h
+++ b/payloads/libpayload/include/libpayload.h
@@ -206,6 +206,8 @@ struct cb_cmos_option_table *get_system_option_table(void);
int options_checksum_valid(const struct nvram_accessor *nvram);
void fix_options_checksum_with(const struct nvram_accessor *nvram);
void fix_options_checksum(void);
+struct cb_cmos_entries *first_cmos_entry(struct cb_cmos_option_table *option_table);
+struct cb_cmos_entries *next_cmos_entry(struct cb_cmos_entries *cur);
int get_option_with(const struct nvram_accessor *nvram, struct cb_cmos_option_table *option_table, void *dest, char *name);
int get_option_from(struct cb_cmos_option_table *option_table, void *dest, char *name);
int get_option(void *dest, char *name);
Patrick Georgi (patrick(a)georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/586
-gerrit
commit 0191c0d84803e45481c36b1f30e481c7d42105d0
Author: Patrick Georgi <patrick.georgi(a)secunet.com>
Date: Mon Jan 16 15:03:11 2012 +0100
libpayload: Expose options_checksum_valid
options_checksum_valid can be used as a fast test to
identify invalid CMOS data by checking the checksum.
Change-Id: I44635d4c5d389579ad82435907ba8658e1bd44bb
Signed-off-by: Patrick Georgi <patrick.georgi(a)secunet.com>
---
payloads/libpayload/drivers/options.c | 2 +-
payloads/libpayload/include/libpayload.h | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/payloads/libpayload/drivers/options.c b/payloads/libpayload/drivers/options.c
index b9ec698..c4e9d16 100644
--- a/payloads/libpayload/drivers/options.c
+++ b/payloads/libpayload/drivers/options.c
@@ -57,7 +57,7 @@ struct cb_cmos_option_table *get_system_option_table()
return phys_to_virt(lib_sysinfo.option_table);
}
-static int options_checksum_valid(const struct nvram_accessor *nvram)
+int options_checksum_valid(const struct nvram_accessor *nvram)
{
int i;
int range_start = lib_sysinfo.cmos_range_start / 8;
diff --git a/payloads/libpayload/include/libpayload.h b/payloads/libpayload/include/libpayload.h
index dd98404..488ad48 100644
--- a/payloads/libpayload/include/libpayload.h
+++ b/payloads/libpayload/include/libpayload.h
@@ -203,6 +203,7 @@ extern u8 *mem_accessor_base;
extern struct nvram_accessor *use_nvram, *use_mem;
struct cb_cmos_option_table *get_system_option_table(void);
+int options_checksum_valid(const struct nvram_accessor *nvram);
void fix_options_checksum_with(const struct nvram_accessor *nvram);
void fix_options_checksum(void);
int get_option_with(const struct nvram_accessor *nvram, struct cb_cmos_option_table *option_table, void *dest, char *name);
the following patch was just integrated into master:
commit 7c8cf667e1f1eb785d6bcf1a94b346c1a5cc00d5
Author: Patrick Georgi <patrick.georgi(a)secunet.com>
Date: Tue Jan 17 15:52:05 2012 +0100
libpayload: Allow using CBFS functions on images in RAM
Two new functions allow switching the CBFS functions from using RAM
or ROM, with ROM as default.
Change-Id: I04d67ad622d25c5728ae9a63f5b8a3dc9bbacce6
Signed-off-by: Patrick Georgi <patrick.georgi(a)secunet.com>
See http://review.coreboot.org/550 for details.
-gerrit
the following patch was just integrated into master:
commit 30a493289ad120f0556c7b8d167e9a09470d1929
Author: Kerry Sheh <shekairui(a)gmail.com>
Date: Fri Jan 20 13:57:48 2012 +0800
AGESA F15: AMD family15 AGESA code
AMD AGESA code to support Orochi platform family15 model 00-0fh processores,
AMD C32, G34, and AM3r2 Sockets are supported.
Change-Id: If79392c104ace25f7e01db794fa205f47746bcad
Signed-off-by: Kerry Sheh <kerry.she(a)amd.com>
Signed-off-by: Kerry Sheh <shekairui(a)gmail.com>
See http://review.coreboot.org/554 for details.
-gerrit
the following patch was just integrated into master:
commit 1734252df27612b8b5acf4fb28a52e5505e26c9a
Author: Vikram Narayanan <vikram186(a)gmail.com>
Date: Wed Jan 25 17:44:20 2012 +0530
dumpmmcr: Fix compilation warnings in printf
cf., `man 3 printf`
Change-Id: Ib78937a3e1c1eecf884bde0860594cbdb574f1fe
Signed-off-by: Vikram Narayanan <vikram186(a)gmail.com>
Build-Tested: build bot (Jenkins) at Thu Jan 26 09:57:42 2012, giving +1
Reviewed-By: Peter Stuge <peter(a)stuge.se> at Thu Jan 26 09:49:54 2012, giving +2
See http://review.coreboot.org/582 for details.
-gerrit