/* First part error handler. This is called whenever any error CRB interrupt is generated by the II.  */
void bte_crb_error_handler(cnodeid_t cnode, int btenum, int crbnum, ioerror_t *ioe, int bteop)
/* First part error handler. This is called whenever any error CRB interrupt is generated by the II.  */
void bte_crb_error_handler(cnodeid_t cnode, int btenum, int crbnum, ioerror_t *ioe, int bteop)
{
	struct bteinfo_s *bte;
	bte = &(NODEPDA(cnode)->bte_if[btenum]);
	bte->bh_error = ioe->ie_errortype + BTEFAIL_OFFSET;
	bte->bte_error_count++;
	BTE_PRINTK(("Got an error on cnode %d bte %d: HW error type 0x%x\n",
		bte->bte_cnode, bte->bte_num, ioe->ie_errortype));
	bte_error_handler((unsigned long) NODEPDA(cnode));
}