if (OF_getprop(chosen, "output-device", buf, sizeof(buf)) != -1) {  if (!strcmp("ttyb", buf))
if (OF_getprop(options, "output-device", buf, sizeof(buf)) != -1) { if (strncmp("ttyb", buf, strlen("ttyb")) == 0)
zs_console_flags(promunit, node, channel)	int promunit;	int node;	int channel;{	int cookie, flags = 0;	u_int chosen;	char buf[255];	/*	 * We'll just to the OBP grovelling down here since that's	 * the only type of firmware we support.	 */	chosen = OF_finddevice("/chosen");	/* Default to channel 0 if there are no explicit prom args */	cookie = 0;	if (node == OF_instance_to_package(OF_stdin())) {		if (OF_getprop(chosen, "input-device", buf, sizeof(buf)) != -1) {			if (!strcmp("ttyb", buf))				cookie = 1;		}		if (channel == cookie)			flags |= ZS_HWFLAG_CONSOLE_INPUT;	}	if (node == OF_instance_to_package(OF_stdout())) { 		if (OF_getprop(chosen, "output-device", buf, sizeof(buf)) != -1) {			if (!strcmp("ttyb", buf))				cookie = 1;		}				if (channel == cookie)			flags |= ZS_HWFLAG_CONSOLE_OUTPUT;	}	return (flags);}