/* @type: HOB type to search @hob_list: A pointer to the HOB list */
const struct hob_header* hob_get_next_hob(uint type, const void *hob_list)
/* @type: HOB type to search @hob_list: A pointer to the HOB list */
const struct hob_header* hob_get_next_hob(uint type, const void *hob_list)
{
	const struct hob_header *hdr;
	hdr = hob_list;
	while (!end_of_hob(hdr)) {
		if (hdr->type == type)
			return hdr;
		hdr = get_next_hob(hdr);
	}
	return NULL;
}