⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bus_interface.h

📁 newos is new operation system
💻 H
字号:
/* ** Copyright 2002, Thomas Kurschel. All rights reserved.** Distributed under the terms of the NewOS License.*/#ifndef __BUS_INTERFACE_H__#define __BUS_INTERFACE_H__#include <kernel/debug.h>#include "xpt_io.h"#include "periph_interface.h"static inline void xpt_done( CCB_HEADER *ccb ){	SHOW_FLOW( 3, "cmd=%x, status=%x", (int)ccb->cam_func_code, (int)ccb->cam_status );		if( ccb->xpt_state != XPT_STATE_SENT ) {		panic( "Unsent ccb was reported as done\n" );		return;	}		if( ccb->cam_status == CAM_REQ_INPROG ) {		panic( "ccb with status \"Request in Progress\" was reported as done\n" );		return;	}		if( ccb->cam_func_code == XPT_SCSI_IO ) {		xpt_done_io( ccb );	} else {		xpt_done_nonio( ccb );	}}#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -