/* adv_async_callback() - Adv Library asynchronous event callback function.  */
static void adv_async_callback(ADV_DVC_VAR *adv_dvc_varp, uchar code)
/* adv_async_callback() - Adv Library asynchronous event callback function.  */
static void adv_async_callback(ADV_DVC_VAR *adv_dvc_varp, uchar code)
{
	switch (code) {
	case ADV_ASYNC_SCSI_BUS_RESET_DET:
		ASC_DBG(0, "ADV_ASYNC_SCSI_BUS_RESET_DET\n");
		break;
	case ADV_ASYNC_RDMA_FAILURE:
		ASC_DBG(0, "ADV_ASYNC_RDMA_FAILURE\n");
		AdvResetChipAndSB(adv_dvc_varp);
		break;
	case ADV_HOST_SCSI_BUS_RESET:
		ASC_DBG(0, "ADV_HOST_SCSI_BUS_RESET\n");
		break;
	default:
		ASC_DBG(0, "unknown code 0x%x\n", code);
		break;
	}
}