1*433d6423SLionel Sambuc #ifndef PHYS_REGION_H 2*433d6423SLionel Sambuc #define PHYS_REGION_H 1 3*433d6423SLionel Sambuc 4*433d6423SLionel Sambuc #include <stddef.h> 5*433d6423SLionel Sambuc 6*433d6423SLionel Sambuc #include "memtype.h" 7*433d6423SLionel Sambuc 8*433d6423SLionel Sambuc typedef struct phys_region { 9*433d6423SLionel Sambuc struct phys_block *ph; 10*433d6423SLionel Sambuc struct vir_region *parent; /* vir_region or NULL if yielded */ 11*433d6423SLionel Sambuc vir_bytes offset; /* offset from start of vir region */ 12*433d6423SLionel Sambuc #if SANITYCHECKS 13*433d6423SLionel Sambuc int written; /* written to pagetable */ 14*433d6423SLionel Sambuc #endif 15*433d6423SLionel Sambuc 16*433d6423SLionel Sambuc /* what kind of memory is it? */ 17*433d6423SLionel Sambuc mem_type_t *memtype; 18*433d6423SLionel Sambuc 19*433d6423SLionel Sambuc /* list of phys_regions that reference the same phys_block */ 20*433d6423SLionel Sambuc struct phys_region *next_ph_list; 21*433d6423SLionel Sambuc } phys_region_t; 22*433d6423SLionel Sambuc 23*433d6423SLionel Sambuc #endif 24