/*
 *
 */

#include "defsfile"

extern scf_drvr_stat drvrstatic;

error_code read(Scf_path_desc path_desc, Dev_list device_entry)
{
	register Scf_lu_stat unit_stat = drvrstatic.v_dev_entry->v_lu_stat;
	/* read the status register */
	/* buffer the incoming character */
    /* get byte from port B */
	*unit_stat->v_infill = IN(&unit_stat->PORTADDR[DIO_PORTB]);
	unit_stat->v_infill++;
	if (unit_stat->v_infill >= unit_stat->v_inend) 
        unit_stat->v_infill = unit_stat->v_inbufad;		
	unit_stat->v_incount++;	

	return SUCCESS;
}
