transport.h

来自「操作系统SunOS 4.1.3版本的源码」· C头文件 代码 · 共 62 行

H
62
字号
#ident	"@(#)transport.h 1.1 92/07/30 SMI"/* * Copyright (c) 1989, 1990 by Sun Microsystems, Inc. */#ifndef	_scsi_impl_transport_h#define	_scsi_impl_transport_h#include	<scsi/scsi_types.h>/* * Attribution:	Greg Slaughter *//* * SCSI transport structures * *	As each Host Adapter makes itself known to the system, *	it will create and register with the library the structure *	described below. This is so that the library knows how to route *	packets, resource control requests, and capability requests *	for any particular host adapter. The 'a_cookie' field of a *	scsi_address structure made known to a Target driver will *	point to one of these transport structures. * * The functional interfaces defined below follow, and are expected * to follow, the Sun SCSI specification. They are the implementation. * */struct scsi_transport {	int	tran_spl;			/* 'splx' interrupt mask */	int	(*tran_start)();		/* transport start */	int	(*tran_reset)();		/* transport reset */	int	(*tran_abort)();		/* transport abort */	int	(*tran_getcap)();		/* capability retrieval */	int	(*tran_setcap)();		/* capability establishment */	struct scsi_pkt	*(*tran_pktalloc)();	/* packet allocation */	struct scsi_pkt *(*tran_dmaget)();	/* dma allocation */	void	(*tran_pktfree)();		/* packet deallocation */	void	(*tran_dmafree)();		/* dma deallocation */};/* * This implementation provides some 'standard' allocation and * deallocation functions. Host Adapters may provide their own * functions, but if they use the standard functions, they * must use all of them. */#ifdef	KERNELextern struct scsi_pkt *scsi_std_pktalloc();extern struct scsi_pkt *scsi_std_dmaget();extern void scsi_std_pktfree();extern void scsi_std_dmafree();extern void scsi_rinit();extern int scsi_cookie();#endif	KERNEL#endif	_scsi_impl_transport_h

⌨️ 快捷键说明

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