/* hvc_put_chars: send characters to firmware for denoted vterm adapter @vtermno: The vtermno or unit_address of the adapter from which the data originated. @buf: The character buffer that contains the character data to send to firmware. @count: Send this number of characters.  */
int hvc_put_chars(uint32_t vtermno, const char *buf, int count)
/* hvc_put_chars: send characters to firmware for denoted vterm adapter @vtermno: The vtermno or unit_address of the adapter from which the data originated. @buf: The character buffer that contains the character data to send to firmware. @count: Send this number of characters.  */
int hvc_put_chars(uint32_t vtermno, const char *buf, int count)
{
	unsigned long *lbuf = (unsigned long *) buf;
	long ret;
	if (count > MAX_VIO_PUT_CHARS)
		count = MAX_VIO_PUT_CHARS;
	ret = plpar_hcall_norets(H_PUT_TERM_CHAR, vtermno, count, lbuf[0],
				 lbuf[1]);
	if (ret == H_SUCCESS)
		return count;
	if (ret == H_BUSY)
		return 0;
	return -EIO;
}