/* css_sch_is_valid() - check if a subchannel is valid @schib: subchannel information block for the subchannel  */
int css_sch_is_valid(struct schib *schib)
/* css_sch_is_valid() - check if a subchannel is valid @schib: subchannel information block for the subchannel  */
int css_sch_is_valid(struct schib *schib)
{
	if ((schib->pmcw.st == SUBCHANNEL_TYPE_IO) && !schib->pmcw.dnv)
		return 0;
	if ((schib->pmcw.st == SUBCHANNEL_TYPE_MSG) && !schib->pmcw.w)
		return 0;
	return 1;
}