~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Wine Cross Reference
wine/include/wine/winaspi.h

Version: ~ [ wine-1.1.0 ] ~ [ wine-1.0 ] ~ [ wine-1.0-rc5 ] ~ [ wine-1.0-rc4 ] ~ [ wine-1.0-rc3 ] ~ [ wine-1.0-rc2 ] ~ [ wine-1.0-rc1 ] ~ [ wine-0.9.61 ] ~ [ wine-0.9.60 ] ~ [ wine-0.9.59 ] ~ [ wine-0.9.58 ] ~ [ wine-0.9.57 ] ~ [ wine-0.9.56 ] ~ [ wine-0.9.55 ] ~ [ wine-0.9.54 ] ~ [ wine-0.9.53 ] ~ [ wine-0.9.52 ] ~ [ wine-0.9.51 ] ~ [ wine-0.9.50 ] ~ [ wine-0.9.49 ] ~ [ wine-0.9.48 ] ~ [ wine-0.9.47 ] ~ [ wine-0.9.46 ] ~ [ wine-0.9.45 ] ~ [ wine-0.9.44 ] ~ [ wine-0.9.43 ] ~ [ wine-0.9.42 ] ~ [ wine-0.9.41 ] ~ [ wine-0.9.40 ] ~ [ wine-0.9.39 ] ~ [ wine-0.9.38 ] ~ [ wine-0.9.37 ] ~ [ wine-0.9.36 ] ~ [ wine-0.9.35 ] ~ [ wine-0.9.34 ] ~ [ wine-0.9.33 ] ~ [ wine-0.9.32 ] ~ [ wine-0.9.31 ] ~ [ wine-0.9.30 ] ~ [ wine-0.9.29 ] ~ [ wine-0.9.28 ] ~ [ wine-0.9.27 ] ~ [ wine-0.9.26 ] ~ [ wine-0.9.25 ] ~ [ wine-0.9.24 ] ~ [ wine-0.9.23 ] ~ [ wine-0.9.22 ] ~ [ wine-0.9.21 ] ~ [ wine-0.9.20 ] ~ [ wine-0.9.19 ] ~ [ wine-0.9.18 ] ~ [ wine-0.9.17 ] ~ [ wine-0.9.16 ] ~ [ wine-0.9.15 ] ~ [ wine-0.9.14 ] ~ [ wine-0.9.13 ] ~ [ wine-0.9.12 ] ~ [ wine-0.9.11 ] ~ [ wine-0.9.10 ] ~ [ wine-0.9.9 ] ~ [ wine-0.9.8 ] ~ [ wine-0.9.7 ] ~ [ wine-0.9.6 ] ~ [ wine-0.9.5 ] ~ [ wine-0.9.4 ] ~ [ wine-0.9.3 ] ~ [ wine-0.9.2 ] ~ [ wine-0.9.1 ] ~ [ wine-0.9 ] ~ [ wine20050930 ] ~ [ wine20050830 ] ~ [ wine20050725 ] ~ [ wine20050628 ] ~ [ wine20050524 ] ~ [ wine20050419 ] ~ [ wine20050310 ] ~ [ wine20050211 ] ~ [ wine20050111 ] ~ [ wine20041201 ] ~ [ wine20041019 ] ~ [ wine20040914 ] ~ [ wine20040813 ] ~ [ wine20040716 ] ~ [ wine20040615 ] ~ [ wine20040505 ] ~ [ wine20040408 ] ~ [ wine20040309 ] ~ [ wine20040213 ] ~ [ wine20040121 ] ~ [ wine20031212 ] ~ [ wine20031118 ] ~ [ wine20031016 ] ~ [ wine20030911 ] ~ [ wine20030813 ] ~ [ wine20030709 ] ~ [ wine20030618 ] ~ [ wine20030508 ] ~ [ wine20030408 ] ~ [ wine20030318 ] ~ [ wine20030219 ] ~ [ wine20030115 ] ~ [ wine20021219 ] ~ [ wine20021125 ] ~ [ wine20021031 ] ~ [ wine20021007 ] ~ [ wine20020904 ] ~ [ wine20020804 ] ~ [ wine20020710 ] ~ [ wine20020605 ] ~ [ wine20020509 ] ~ [ wine20020411 ] ~ [ wine20020310 ] ~ [ wine20020228 ] ~ [ wine20011226 ] ~ [ wine20011108 ] ~ [ wine20011004 ] ~ [ wine20010824 ] ~ [ wine20010731 ] ~ [ wine20010629 ] ~ [ wine20010510 ] ~ [ wine20010418 ] ~ [ wine20010326 ] ~ [ wine20010305 ] ~ [ wine20010216 ] ~ [ wine20010112 ] ~ [ wine20001222 ] ~ [ wine20001202 ] ~ [ wine20001026 ] ~ [ wine20001002 ] ~ [ wine20000909 ] ~ [ wine20000821 ] ~ [ wine20000801 ] ~ [ wine20000716 ] ~ [ wine20000326 ] ~ [ wine20000227 ] ~ [ wine20000130 ] ~ [ wine20000109 ] ~

  1 /*
  2  * This file should be source compatible with the Adaptec winaspi.h
  3  * All DOS ASPI structures are the same as WINASPI
  4  *
  5  * Copyright (C) 2000 Alexandre Julliard
  6  *
  7  * This library is free software; you can redistribute it and/or
  8  * modify it under the terms of the GNU Lesser General Public
  9  * License as published by the Free Software Foundation; either
 10  * version 2.1 of the License, or (at your option) any later version.
 11  *
 12  * This library is distributed in the hope that it will be useful,
 13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 15  * Lesser General Public License for more details.
 16  *
 17  * You should have received a copy of the GNU Lesser General Public
 18  * License along with this library; if not, write to the Free Software
 19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
 20  */
 21 
 22 #ifndef __WINASPI_H__
 23 #define __WINASPI_H__
 24 
 25 /* Include base aspi defs */
 26 #include <wnaspi32.h>
 27 
 28 #ifdef __cplusplus
 29 extern "C" {
 30 #endif /* #ifdef __cplusplus */
 31 
 32 /* WINE SCSI Stuff */
 33 #define ASPI_DOS        1
 34 #define ASPI_WIN16      2
 35 
 36 #include <pshpack1.h>
 37 
 38 /* SRB HA_INQUIRY */
 39 
 40 typedef struct tagSRB16_HaInquiry {
 41   BYTE  SRB_Cmd;
 42   BYTE  SRB_Status;
 43   BYTE  SRB_HaId;
 44   BYTE  SRB_Flags;
 45   WORD  SRB_55AASignature;
 46   WORD  SRB_ExtBufferSize;
 47   BYTE  HA_Count;
 48   BYTE  HA_SCSI_ID;
 49   BYTE  HA_ManagerId[16];
 50   BYTE  HA_Identifier[16];
 51   BYTE  HA_Unique[16];
 52   BYTE  HA_ExtBuffer[4];
 53 } SRB_HaInquiry16, *PSRB_HaInquiry16, *LPSRB_HaInquiry16;
 54 
 55 typedef struct tagSRB16_GDEVBlock {
 56   BYTE        SRB_Cmd;            /* ASPI command code = SC_GET_DEV_TYPE */
 57   BYTE        SRB_Status;         /* ASPI command status byte */
 58   BYTE        SRB_HaId;           /* ASPI host adapter number */
 59   BYTE        SRB_Flags;          /* ASPI request flags */
 60   DWORD       SRB_Hdr_Rsvd;       /* Reserved, MUST = 0 */
 61   BYTE        SRB_Target;         /* Target's SCSI ID */
 62   BYTE        SRB_Lun;            /* Target's LUN number */
 63   BYTE        SRB_DeviceType;     /* Target's peripheral device type */
 64 } SRB_GDEVBlock16, *PSRB_GDEVBlock16, *LPSRB_GDEVBlock16;
 65 
 66 
 67 typedef struct tagSRB16_ExecSCSICmd {
 68   BYTE        SRB_Cmd;                /* ASPI command code            (W)  */
 69   BYTE        SRB_Status;             /* ASPI command status byte     (R)  */
 70   BYTE        SRB_HaId;               /* ASPI host adapter number     (W)  */
 71   BYTE        SRB_Flags;              /* ASPI request flags           (W)  */
 72   DWORD       SRB_Hdr_Rsvd;           /* Reserved, MUST = 0           (-)  */
 73   BYTE        SRB_Target;             /* Target's SCSI ID             (W)  */
 74   BYTE        SRB_Lun;                /* Target's LUN number          (W)  */
 75   DWORD       SRB_BufLen;             /* Data Allocation LengthPG     (W/R)*/
 76   BYTE        SRB_SenseLen;           /* Sense Allocation Length      (W)  */
 77   SEGPTR      SRB_BufPointer;         /* Data Buffer Pointer          (W)  */
 78   DWORD       SRB_Rsvd1;              /* Reserved, MUST = 0           (-/W)*/
 79   BYTE        SRB_CDBLen;             /* CDB Length = 6               (W)  */
 80   BYTE        SRB_HaStat;             /* Host Adapter Status          (R)  */
 81   BYTE        SRB_TargStat;           /* Target Status                (R)  */
 82   FARPROC16   SRB_PostProc;           /* Post routine                 (W)  */
 83   BYTE        SRB_Rsvd2[34];          /* Reserved, MUST = 0                */
 84   BYTE          CDBByte[1];           /* SCSI CBD - variable length   (W)  */
 85   /* variable example for 6 byte cbd
 86    * BYTE        CDBByte[6];             * SCSI CDB                    (W) *
 87    * BYTE        SenseArea6[SENSE_LEN];  * Request Sense buffer         (R) *
 88    */
 89 } SRB_ExecSCSICmd16, *PSRB_ExecSCSICmd16, *LPSRB_ExecSCSICmd16;
 90 
 91 typedef struct tagSRB16_Abort {
 92   BYTE        SRB_Cmd;            /* ASPI command code = SC_ABORT_SRB */
 93   BYTE        SRB_Status;         /* ASPI command status byte */
 94   BYTE        SRB_HaId;           /* ASPI host adapter number */
 95   BYTE        SRB_Flags;          /* ASPI request flags */
 96   DWORD       SRB_Hdr_Rsvd;       /* Reserved, MUST = 0 */
 97   SEGPTR      SRB_ToAbort;        /* Pointer to SRB to abort */
 98 } SRB_Abort16, *PSRB_Abort16, *LPSRB_Abort16;
 99 
100 
101 typedef struct tagSRB16_BusDeviceReset {
102   BYTE        SRB_Cmd;            /* ASPI command code = SC_RESET_DEV */
103   BYTE        SRB_Status;         /* ASPI command status byte */
104   BYTE        SRB_HaId;           /* ASPI host adapter number */
105   BYTE        SRB_Flags;          /* ASPI request flags */
106   DWORD       SRB_Hdr_Rsvd;       /* Reserved, MUST = 0 */
107   BYTE        SRB_Target;         /* Target's SCSI ID */
108   BYTE        SRB_Lun;            /* Target's LUN number */
109   BYTE        SRB_ResetRsvd1[14]; /* Reserved, MUST = 0 */
110   BYTE        SRB_HaStat;         /* Host Adapter Status */
111   BYTE        SRB_TargStat;       /* Target Status */
112   FARPROC16   SRB_PostProc;       /* Post routine */
113   BYTE        SRB_ResetRsvd2[34]; /* Reserved, MUST = 0 */
114 } SRB_BusDeviceReset16, *PSRB_BusDeviceReset16, *LPSRB_BusDeviceReset16;
115 
116 
117 typedef struct tagSRB16_Common {
118   BYTE        SRB_Cmd;            /* ASPI command code = SC_ABORT_SRB */
119   BYTE        SRB_Status;         /* ASPI command status byte */
120   BYTE        SRB_HaId;           /* ASPI host adapter number */
121   BYTE        SRB_Flags;          /* ASPI request flags */
122   DWORD       SRB_Hdr_Rsvd;       /* Reserved, MUST = 0 */
123 } SRB_Common16, *PSRB_Common16, *LPSRB_Common16;
124 
125 typedef union tagSRB16 {
126     SRB_Common16          common;
127     SRB_HaInquiry16       inquiry;
128     SRB_ExecSCSICmd16     cmd;
129     SRB_Abort16           abort;
130     SRB_BusDeviceReset16  reset;
131     SRB_GDEVBlock16       devtype;
132 } SRB16, *LPSRB16;
133 
134 #include <poppack.h>
135 
136 extern WORD WINAPI SendASPICommand16(SEGPTR);
137 extern WORD WINAPI GetASPISupportInfo16(void);
138 
139 #ifdef __cplusplus
140 }
141 #endif /* #ifdef __cplusplus */
142 
143 #endif /* __WINE_WINASPI_H */
144 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.