/* This is really asking how much can we guarentee that we can send or that we absolutely WILL BUFFER if we can't send it. This driver MUST honor the return value, hence the reason for  */
static int hvcs_write_room(struct tty_struct *tty)
/* This is really asking how much can we guarentee that we can send or that we absolutely WILL BUFFER if we can't send it. This driver MUST honor the return value, hence the reason for  */
static int hvcs_write_room(struct tty_struct *tty)
{
	struct hvcs_struct *hvcsd = tty->driver_data;
	if (!hvcsd || hvcsd->open_count <= 0)
		return 0;
	return HVCS_BUFF_LEN - hvcsd->chars_in_buffer;
}