Annotation of driverkit/libDriver/Kernel/SCSIGlobals.m, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
                      3:  *
                      4:  * @APPLE_LICENSE_HEADER_START@
                      5:  * 
                      6:  * Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
                      7:  * Reserved.  This file contains Original Code and/or Modifications of
                      8:  * Original Code as defined in and that are subject to the Apple Public
                      9:  * Source License Version 1.1 (the "License").  You may not use this file
                     10:  * except in compliance with the License.  Please obtain a copy of the
                     11:  * License at http://www.apple.com/publicsource and read it before using
                     12:  * this file.
                     13:  * 
                     14:  * The Original Code and all software distributed under the License are
                     15:  * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
                     16:  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
                     17:  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
                     18:  * FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT.  Please see the
                     19:  * License for the specific language governing rights and limitations
                     20:  * under the License.
                     21:  * 
                     22:  * @APPLE_LICENSE_HEADER_END@
                     23:  */
                     24: /*     Copyright (c) 1991 NeXT Computer, Inc.  All rights reserved. 
                     25:  *
                     26:  * SCSIGlobals.m - Common global data.
                     27:  *
                     28:  * HISTORY
                     29:  * 25-Jan-93    Doug Mitchell at NeXT
                     30:  *      Created. 
                     31:  */
                     32: 
                     33: #import <driverkit/driverTypes.h>
                     34: #import <bsd/dev/scsireg.h>
                     35: 
                     36: /* 
                     37:  * The following are exported to any SCSI Device objects we might be 
                     38:  * linked with...
                     39:  */
                     40: IONamedValue IOScStatusStrings[] = {
                     41:         {SR_IOST_GOOD,                 "Success"                               },
                     42:         {SR_IOST_SELTO,                "Selection Timeout"                     },
                     43:        {SR_IOST_CHKSV,         "Check Status, Sense Valid"             },
                     44:        {SR_IOST_CHKSNV,        "Check Status"                          },
                     45:        {SR_IOST_DMAOR,         "DMA Over/Underrun"                     },
                     46:         {SR_IOST_IOTO,                 "I/O Timeout"                           },
                     47:         {SR_IOST_BV,           "SCSI Bus Violation"                    },
                     48:         {SR_IOST_CMDREJ,       "Command Reject"                        },
                     49:         {SR_IOST_MEMALL,       "Memory Allocation Error"               },
                     50:         {SR_IOST_MEMF,                 "Memory Failure"                        },
                     51:        {SR_IOST_PERM,          "Permission Failure"                    },
                     52:        {SR_IOST_NOPEN,         "Device Not Open"                       },
                     53:         {SR_IOST_TABT,                 "Target Dropped Busy"                   },
                     54:         {SR_IOST_BADST,        "Bad SCSI Status Byte"                  },
                     55:         {SR_IOST_INT,          "Internal Driver Error"                 },
                     56:         {SR_IOST_BCOUNT,       "SCSI Data Overflow"                    },
                     57:         {SR_IOST_VOLNA,        "Desired Volume Not Available"          },
                     58:         {SR_IOST_WP,           "Media Write Protected"                 },
                     59:        {SR_IOST_ALIGN,         "DMA Alignment error"                   },
                     60:         {SR_IOST_IPCFAIL,      "Mach IPC Error"                        },
                     61:         {SR_IOST_RESET,        "Bus Reset Detected"                    },
                     62:         {SR_IOST_PARITY,       "SCSI Parity Error"                     },
                     63:         {SR_IOST_HW,           "Gross hardware Failure"                },
                     64:        {SR_IOST_DMA,           "DMA Error"                             },
                     65:         {SR_IOST_INVALID,      "INVALID STATUS (internal error)"       },
                     66:        {0,                     NULL                                    },
                     67: 
                     68: };
                     69: 
                     70: IONamedValue IOSCSISenseStrings[] = {
                     71:        {SENSE_NOSENSE,                 "No error to report"            },
                     72:        {SENSE_RECOVERED,               "Recovered error"               },
                     73:        {SENSE_NOTREADY,                "Target not ready"              },
                     74:        {SENSE_MEDIA,                   "Media Error"                   },
                     75:        {SENSE_HARDWARE,                "Hardware failure"              },
                     76:        {SENSE_ILLEGALREQUEST,          "Illegal request"               },
                     77:        {SENSE_UNITATTENTION,           "Unit attention"                },
                     78:        {SENSE_DATAPROTECT,             "Write Protected"               },
                     79:        {SENSE_ABORTEDCOMMAND,          "Target aborted command"        },
                     80:        {SENSE_VOLUMEOVERFLOW,          "EOM, some data not transfered" },
                     81:        {SENSE_MISCOMPARE,              "Source/media data mismatch"    },
                     82:        {0,                             NULL                            }
                     83: 
                     84: };
                     85: 
                     86: IONamedValue IOSCSIOpcodeStrings[] = {
                     87:        {C6OP_TESTRDY,                  "Test unit ready"               }, 
                     88:        {C6OP_REWIND,                   "Rewind"                        },
                     89:        {C6OP_REQSENSE,                 "Request sense "                },
                     90:        {C6OP_READ,                     "Read data (6-byte)"            },
                     91:        {C6OP_WRITE,                    "Write data (10-byte)"          },
                     92:        {C6OP_WRTFM,                    "Write filemarks"               },
                     93:        {C6OP_SPACE,                    "Space records/filemarks"       },
                     94:        {C6OP_INQUIRY,                  "Inquiry"                       },
                     95:        {C6OP_MODESELECT,               "Mode Select"                   },
                     96:        {C6OP_MODESENSE,                "Mode Sense"                    },
                     97:        {C6OP_STARTSTOP,                "Start/Stop"                    },      
                     98:        {C10OP_READCAPACITY,            "Read capacity"                 },
                     99:        {C10OP_READEXTENDED,            "Read data (10-byte)"           },
                    100:        {C10OP_WRITEEXTENDED,           "Write data (10-byte)"          },
                    101:        {0,                             NULL                            }
                    102: };
                    103: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.