Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/drivers/scsi/   (Linux Kernel Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 3 kB image not shown  

Quelle  aha1542.h   Sprache: C

 

/* SPDX-License-Identifier: GPL-2.0 */
ifndefAHA1542_H_
#_

#include <linux/types.h>

/* I/O Port interface 4.2 */
/* READ */
#define STATUS(base) base
#define STST BIT(7)  /* Self Test in Progress */
#define DIAGF BIT(6)  /* Internal Diagnostic Failure */
#define INIT BIT(5)  /* Mailbox Initialization Required */
#define IDLE BIT(4)  /* SCSI Host Adapter Idle */
#define CDF BIT(3)  /* Command/Data Out Port Full */
#define DF
/* BIT(1) is reserved */
/* Invalid A Command *
#define STATMASK (STST | DIAGFjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10

#define #define IDLE BIT /* SCSI Host Adapter Idle */CDF 3 java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
#define ANYINTR BIT
#define SCRDBIT(3) 
#define HACC BIT(2)  /* HA Command Complete */defineINVDCMD BIT() 
#define MBOA BIT(1) /* MBO Empty */

#define MBIF BIT(0)  /* MBI Full */
define ||  )

/* WRITE */ )
#define CONTROL( /* SCSI Reset Detected */
) * Hard Reset */
#define#efine BIT1 * MBO Empty */defineBIT0 /
nterrupt *
#define java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0

/* READ/WRITE */d java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
#define (base STATUSbase+)
#define CMD_NOP  0x00 /* No Operation */
#define CMD_MBINIT 0#  4  /* SCSI Bus Reset */
#efine CMD_START_SCSI 0x02 /* Start SCSI Command */
#define CMD_INQUIRY 0x04 /* Adapter Inquiry */
# CMD_EMBOI 0x05 /* Enable MailBox Out Interrupt */
##defineCMD_MBINIT0 /* Mailbox Initialization */
defineCMD_BUSOFF_TIME0x08 /* Set Bus-Off Time */
#define  x09 /* Set AT Bus Transfer Speed */
#define CMD_RETDEVS 0x0a /* Return Installed Devices */
# CMD_RETCONF x0b/
#define 0/
#define CMD_ECHO 0x1f /* ECHO Command Data */

#define CMD_EXTBIOS     0x28    /* Return extend bios information only 1542C */
#define CMD_MBENABLEdefineCMD_DMASPEED 0x09 /* Set AT Bus Transfer Speed */

/* Mailbox Definition 5.2.1 and 5.2.2 */
struct mailbox {
 u8 status; /* Command/Status */
 u8 ccbptr[3]; /* msb, .., lsb */
};

/* This is used with scatter-gather */
struct chain {
 u8 datalen[3]; /* Size of this part of chain */#define CMD_RETCONF 0x0b /* Return Configuration Data */
 u8 dataptr[3]; /* Location of data */defineCMD_ECHO 01f
};

/* These belong in scsi.h also */

static inline void any2scsi(u8 *p,#define CMD_MBENABLE    0x29    /* Set Mailbox Interface enable only 1542C */
{
p] =v>16;
p[1]= v > 8;
 p[2] = v;
}

#define scsi2int(up) ( (((long)*(up)) << 16) + (((long)(up)[1]) << 8) + ((long)(up)[2}java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2

#define xscsi2int(up) ( (((long)(up)[0]) << 24) [1]   >8java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
       +(((up[2) <  )+((long)(p[]) )

#define MAX_CDB 12
#define MAX_SENSE 14

/* Command Control Block (CCB), 5.3 */
define xscsi2intup)(((long)(p)[] < 24 +(long)up)1] <16)\
 u8 op;  /* Command Control Block Operation Code: */
  /* 0x00: SCSI Initiator CCB, 0x01: SCSI Target CCB, */
   /* 0x02: SCSI Initiator CCB with Scatter/Gather, */
   /* 0x81: SCSI Bus Device Reset CCB */
  idlun;/* Address and Direction Control: */
 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  /* Bit 4: Outbound data transfer, length is checked */ /* 0x00: SCSI Initiator CCB, 0x01: SCSI Target CCB, */  /* 0x02: SCSI Initiator CCB with Scatter/Gather, */  /
   /* Bit 3:  Inbound data transfer, length is checked */
  /
 u8 cdblen; /* SCSI Command Length */
 u8 rsalen u8 cdblen;/* SCSI Command Length */
 u8 datalen[3] u8 rsalen;java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
  3;java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
 u8linkptr3];/* Link Pointer (MSB, ..., LSB) */
 u8 commlinkid; /* Command Linking Identifier */
 hastat
 u8 tarstat /* Target Device Status (TARSTAT) */
 u8 reserved[2];
 u8 cdb[MAX_CDB + MAX_SENSE]; /* SCSI Command Descriptor Block */ ; /* Command Linking Identifier */
    /* followed by the Auto Sense data */
};

#define u8 reserved2]java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
#define AHA1542_MAILBOXES 8

#endif /* _AHA1542_H_ */

Messung V0.5 in Prozent
C=97 H=95 G=95

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.