/* * Collect memory ranges */
top = FSP_LOWMEM_BASE;
while (!end_of_hob(hdr)) {
- if (get_hob_type(hdr) == HOB_TYPE_RES_DESC) {
+ if (hdr->type == HOB_TYPE_RES_DESC) {
res_desc = (struct hob_res_desc *)hdr;
if (res_desc->type == RES_SYS_MEM) {
phys_start = res_desc->phys_start;
/* Collect memory ranges */
top = FSP_HIGHMEM_BASE;
while (!end_of_hob(hdr)) {
- if (get_hob_type(hdr) == HOB_TYPE_RES_DESC) {
+ if (hdr->type == HOB_TYPE_RES_DESC) {
res_desc = (struct hob_res_desc *)hdr;
if (res_desc->type == RES_SYS_MEM) {
phys_start = res_desc->phys_start;
/* Collect memory ranges */
while (!end_of_hob(hdr)) {
- if (get_hob_type(hdr) == HOB_TYPE_RES_DESC) {
+ if (hdr->type == HOB_TYPE_RES_DESC) {
res_desc = (struct hob_res_desc *)hdr;
if (res_desc->type == RES_MEM_RESERVED) {
if (compare_guid(&res_desc->owner, guid)) {
return base;
}
-const struct hob_header *fsp_get_next_hob(u16 type, const void *hob_list)
+const struct hob_header *fsp_get_next_hob(uint type, const void *hob_list)
{
const struct hob_header *hdr;
/* Parse the HOB list until end of list or matching type is found */
while (!end_of_hob(hdr)) {
- if (get_hob_type(hdr) == type)
+ if (hdr->type == type)
return hdr;
hdr = get_next_hob(hdr);