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

📄 psi_roy.h

📁 Linux内核源代码 为压缩文件 是<<Linux内核>>一书中的源代码
💻 H
📖 第 1 页 / 共 2 页
字号:
#define	ERR16_MEDIA			0x0C0C		/* invalid media */#define	ERR16_CONTROL		0x2020		/* controller error */#define	ERR16_CONTROL_DMA	0x2120		/* controller DMA engine error */#define	ERR16_NO_ALARM		0x2220		/* alarm is not active */#define	ERR16_OP_BUSY		0x2320		/* operation busy */#define	ERR16_SEEK			0x4040		/* seek failure */#define	ERR16_DEVICE_FAIL	0x4140		/* device has failed */#define ERR16_TIMEOUT		0x8080		/* timeout error */#define	ERR16_DEV_NOT_READY	0xAAAA		/* drive not ready */#define	ERR16_UNDEFINED		0xBBBB		/* undefined error */#define	ERR16_WRITE_FAULT	0xCCCC		/* write fault */#define ERR16_INVALID_DEV	0x4001		/* invalid device access */#define	ERR16_DEVICE_BUSY	0x4002		/* device is busy */#define	ERR16_MEMORY		0x4003		/* device pass thru requires too much memory */#define	ERR16_NO_FEATURE	0x40FA		/* feature no implemented */#define	ERR16_NOTAG			0x40FD		/* no tag space available */#define	ERR16_NOT_READY		0x40FE		/* controller not ready error */#define	ERR16_SETUP_FLASH	0x5050		/* error when writing setup to flash memory */#define	ERR16_SETUP_SIZE	0x5051		/* setup block size error */#define	ERR16_SENSE			0xFFFF		/* sense opereration failed */#define	ERR16_SC_BUSY		0x0008		/* SCSI status - Busy */#define	ERR16_SC_RES_CONFL	0x0018		/* SCSI status - Reservation Conflict */#define	ERR16_SC_CMD_TERM	0x0022		/* SCSI status - Command Terminated */#define	ERR16_SC_OTHER		0x00FF		/* SCSI status - not recognized (any value masked) */#define	ERR16_MEDIA_CHANGED	0x8001		/* devices media has been changed */#define	ERR32_NONE			0x00000000	/* no errors */#define	ERR32_SC_COND_MET	0x00000004	/* SCSI status - Condition Met */#define	ERR32_CMD			0x00010101	/* command error */#define	ERR32_SC_CHECK_COND	0x00020002	/* SCSI status - Check Condition */#define	ERR32_CMD_NOT		0x00030201	/* command not supported */#define ERR32_NO_DEVICE     0x00040301	/* invalid device selection */#define	ERR32_SECTOR		0x00050202	/* bad sector */#define	ERR32_PROTECT		0x00060303	/* write protected */#define	ERR32_NOSECTOR		0x00070404	/* sector not found */#define	ERR32_MEDIA			0x00080C0C	/* invalid media */#define	ERR32_CONTROL		0x00092020	/* controller error */#define	ERR32_CONTROL_DMA	0x000A2120	/* Controller DMA error */#define	ERR32_NO_ALARM		0x000B2220 	/* alarm is not active */#define	ERR32_OP_BUSY		0x000C2320	/* operation busy */#define	ERR32_SEEK			0x000D4040	/* seek failure */#define	ERR32_DEVICE_FAIL	0x000E4140	/* device has failed */#define ERR32_TIMEOUT		0x000F8080	/* timeout error */#define	ERR32_DEV_NOT_READY	0x0010AAAA	/* drive not ready */#define	ERR32_UNDEFINED		0x0011BBBB	/* undefined error */#define	ERR32_WRITE_FAULT	0x0012CCCC	/* write fault */#define ERR32_INVALID_DEV	0x00134001	/* invalid device access */#define	ERR32_DEVICE_BUSY	0x00144002	/* device is busy */#define	ERR32_MEMORY		0x00154003	/* device pass thru requires too much memory */#define	ERR32_NO_FEATURE	0x001640FA	/* feature no implemented */#define	ERR32_NOTAG			0x001740FD	/* no tag space available */#define	ERR32_NOT_READY		0x001840FE	/* controller not ready error */#define	ERR32_SETUP_FLASH	0x00195050	/* error when writing setup to flash memory */#define	ERR32_SETUP_SIZE	0x001A5051	/* setup block size error */#define	ERR32_SENSE			0x001BFFFF	/* sense opereration failed */#define	ERR32_SC_BUSY		0x001C0008	/* SCSI status - Busy */#define	ERR32_SC_RES_CONFL	0x001D0018	/* SCSI status - Reservation Conflict */#define	ERR32_SC_CMD_TERM	0x001E0022	/* SCSI status - Command Terminated */#define	ERR32_SC_OTHER		0x001F00FF	/* SCSI status - not recognized (any value masked) */#define	ERR32_MEDIA_CHANGED	0x00208001	/* devices media has been changed *//************************************************//*												*//*	Host Operating System specification codes	*//*												*//************************************************/#define	SPEC_INTERRUPT		0x80		/* specification requires host interrupt */#define	SPEC_BACKWARD_SG	0x40		/* specification requires scatter/gather items reversed */#define	SPEC_DOS_BLOCK		0x01		/* DOS DASD blocking on pass through */#define	SPEC_OS2_V3			0x02		/* OS/2 Warp */#define	SPCE_SCO_3242		0x04		/* SCO 3.4.2.2 */#define	SPEC_QNX_4X			0x05		/* QNX 4.XX */#define	SPEC_NOVELL_NWPA	0x08		/* Novell NWPA scatter/gather support *//************************************************//*												*//*	Inquire structures							*//*												*//************************************************/typedef	struct	_CNT_SCSI_INQ	{	UCHAR	devt;						/* 00: device type */	UCHAR	devtm;						/* 01: device type modifier */	UCHAR	svers;						/* 02: SCSI version */	UCHAR	rfmt;						/* 03: response data format */	UCHAR	adlen;						/* 04: additional length of data */	UCHAR	res1;						/* 05: */	UCHAR	res2;						/* 06: */	UCHAR	fncs;						/* 07: functional capabilities */	UCHAR	vid[8];						/* 08: vendor ID */	UCHAR	pid[16];					/* 10: product ID */	UCHAR	rev[4];						/* 20: product revision */	}	CNT_SCSI_INQ;typedef	struct	_CNT_IDE_INQ	{	USHORT	GeneralConfiguration;		/* 00 */	USHORT	NumberOfCylinders;			/* 02 */	USHORT	Reserved1;					/* 04 */	USHORT	NumberOfHeads;				/* 06 */	USHORT	UnformattedBytesPerTrack;	/* 08 */	USHORT	UnformattedBytesPerSector;	/* 0A */	USHORT	SectorsPerTrack;			/* 0C */	USHORT	VendorUnique1[3];			/* 0E */	USHORT	SerialNumber[10];			/* 14 */	USHORT	BufferType;					/* 28 */	USHORT	BufferSectorSize;			/* 2A */	USHORT	NumberOfEccBytes;			/* 2C */	USHORT	FirmwareRevision[4];		/* 2E */	USHORT	ModelNumber[20];			/* 36 */	UCHAR	MaximumBlockTransfer;		/* 5E */	UCHAR	VendorUnique2;				/* 5F */	USHORT	DoubleWordIo;				/* 60 */	USHORT	Capabilities;				/* 62 */	USHORT	Reserved2;					/* 64 */	UCHAR	VendorUnique3;				/* 66 */	UCHAR	PioCycleTimingMode;			/* 67 */	UCHAR	VendorUnique4;				/* 68 */	UCHAR	DmaCycleTimingMode;			/* 69 */	USHORT	TranslationFieldsValid;		/* 6A */	USHORT	NumberOfCurrentCylinders;	/* 6C */	USHORT	NumberOfCurrentHeads;		/* 6E */	USHORT	CurrentSectorsPerTrack;		/* 70 */	ULONG	CurrentSectorCapacity;		/* 72 */	}	CNT_IDE_INQ;typedef struct	_DASD_INQUIRE	{	ULONG	type;						/* 0 = SCSI, 1 = IDE */	union		{		CNT_SCSI_INQ	scsi;			/* SCSI inquire data */		CNT_IDE_INQ		ide;			/* IDE inquire data */		}	inq;	}	DASD_INQUIRE;/************************************************//*												*//*	Device Codes								*//*												*//************************************************/#define DEVC_DASD			0x00		/* Direct-access Storage Device */#define DEVC_SEQACESS		0x01		/* Sequential-access device */#define DEVC_PRINTER		0x02		/* Printer device */#define DEVC_PROCESSOR		0x03		/* Processor device */#define DEVC_WRITEONCE		0x04		/* Write-once device */#define DEVC_CDROM			0x05		/* CD-ROM device */#define DEVC_SCANNER		0x06		/* Scanner device */#define DEVC_OPTICAL		0x07		/* Optical memory device */#define DEVC_MEDCHGR		0x08		/* Medium changer device */#define	DEVC_DASD_REMOVABLE	0x80		/* Direct-access storage device, Removable */#define	DEVC_NONE			0xFF		/* no device */// SCSI controls for RAID#define	SC_MY_RAID			0xBF			// our special CDB command byte for Win95... interface#define	MY_SCSI_QUERY0		0x31			// byte 1 subcommand to query driver for RAID 0 informatation#define	MY_SCSI_QUERY1		0x32			// byte 1 subcommand to query driver for RAID 1 informatation#define	MY_SCSI_QUERY5		0x33			// byte 1 subcommand to query driver for RAID 5 informatation#define	MY_SCSI_REBUILD		0x40			// byte 1 subcommand to reconstruct a mirrored pair#define MY_SCSI_DEMOFAIL	0x54			// byte 1 subcommand for RAID failure demonstration#define	MY_SCSI_ALARMMUTE	0x60			// byte 1 subcommand to mute any alarm currently on#endif

⌨️ 快捷键说明

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