ppc_md.udbg_putc = udbg_hvsi_putc; ppc_md.udbg_getc = udbg_hvsi_getc; ppc_md.udbg_getc_poll = udbg_hvsi_getc_poll; 
udbg_putc = udbg_hvsi_putc; udbg_getc = udbg_hvsi_getc; udbg_getc_poll = udbg_hvsi_getc_poll; 
int find_udbg_vterm(void){	struct device_node *stdout_node;	u32 *termno;	char *name;	int found = 0;	/* find the boot console from /chosen/stdout */	if (!of_chosen)		return 0;	name = (char *)get_property(of_chosen, "linux,stdout-path", NULL);	if (name == NULL)		return 0;	stdout_node = of_find_node_by_path(name);	if (!stdout_node)		return 0;	/* now we have the stdout node; figure out what type of device it is. */	name = (char *)get_property(stdout_node, "name", NULL);	if (!name) {		printk(KERN_WARNING "stdout node missing 'name' property!\n");		goto out;	}	if (strncmp(name, "vty", 3) == 0) {		if (device_is_compatible(stdout_node, "hvterm1")) {			termno = (u32 *)get_property(stdout_node, "reg", NULL);			if (termno) {				vtermno = termno[0];				ppc_md.udbg_putc = udbg_putcLP;				ppc_md.udbg_getc = udbg_getcLP;				ppc_md.udbg_getc_poll = udbg_getc_pollLP;				found = 1;			}		} else if (device_is_compatible(stdout_node, "hvterm-protocol")) {			termno = (u32 *)get_property(stdout_node, "reg", NULL);			if (termno) {				vtermno = termno[0];				ppc_md.udbg_putc = udbg_hvsi_putc;				ppc_md.udbg_getc = udbg_hvsi_getc;				ppc_md.udbg_getc_poll = udbg_hvsi_getc_poll;				found = 1;			}		}	} else if (strncmp(name, "serial", 6)) {		/* XXX fix ISA serial console */		printk(KERN_WARNING "serial stdout on LPAR ('%s')! "				"can't print udbg messages\n",		       stdout_node->full_name);	} else {		printk(KERN_WARNING "don't know how to print to stdout '%s'\n",		       stdout_node->full_name);	}out:	of_node_put(stdout_node);	return found;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/c8f1c8be629ee34991fdba8bfe46a5c455393209/pSeries_lpar.c/buggy/arch/ppc64/kernel/pSeries_lpar.c