 /*
  *
  */
#include "defsfile"

extern scf_drvr_stat drvrstatic;

error_code write(path_desc, device_entry)
Scf_path_desc	path_desc;
Dev_list		device_entry; 
{
	register Scf_lu_stat unit_stat = drvrstatic.v_dev_entry->v_lu_stat;

    if (unit_stat->v_outcount !=0) 
    {
        /* send byte to port A */
  	    OUT(&unit_stat->PORTADDR[DIO_PORTA], *(unit_stat->v_outempty));	  
        unit_stat->v_outcount--;	
        unit_stat->v_outempty++; 
	    if (unit_stat->v_outempty >= unit_stat->v_outend) 
            unit_stat->v_outempty = unit_stat->v_outbufad;
    }
	return SUCCESS;
}
