16 #undef DEBUG_PROM_TREE
24 return (
pcomponent *) ARC_CALL1(next_component, Current);
30 return (
pcomponent *) ARC_CALL1(child_component, Current);
39 return (
pcomponent *) ARC_CALL1(parent_component, Current);
45 return ARC_CALL2(component_data, Buffer, Current);
52 ARC_CALL3(child_add, Current, Template, ConfigurationData);
58 return ARC_CALL1(comp_del, ComponentToDelete);
64 return (
pcomponent *)ARC_CALL1(component_by_path, Path);
67 #ifdef DEBUG_PROM_TREE
69 static char *classes[] = {
70 "system",
"processor",
"cache",
"adapter",
"controller",
"peripheral",
74 static char *types[] = {
75 "arc",
"cpu",
"fpu",
"picache",
"pdcache",
"sicache",
"sdcache",
76 "sccache",
"memdev",
"eisa adapter",
"tc adapter",
"scsi adapter",
77 "dti adapter",
"multi-func adapter",
"disk controller",
78 "tp controller",
"cdrom controller",
"worm controller",
79 "serial controller",
"net controller",
"display controller",
80 "parallel controller",
"pointer controller",
"keyboard controller",
81 "audio controller",
"misc controller",
"disk peripheral",
82 "floppy peripheral",
"tp peripheral",
"modem peripheral",
83 "monitor peripheral",
"printer peripheral",
"pointer peripheral",
84 "keyboard peripheral",
"terminal peripheral",
"line peripheral",
85 "net peripheral",
"misc peripheral",
"anonymous"
88 static char *iflags[] = {
89 "bogus",
"read only",
"removable",
"console in",
"console out",
96 printk(
"[%p]:class<%s>type<%s>flags<%s>ver<%d>rev<%d>",
99 printk(
"key<%08lx>\n\tamask<%08lx>cdsize<%d>ilen<%d>iname<%s>\n",