struct resource { const char *name; unsigned long start, end; unsigned long flags; struct resource *parent, *sibling, *child; };