Changeset 8399 in vbox for trunk/include
- Timestamp:
- Apr 25, 2008 7:03:40 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/pdmifs.h
r8374 r8399 1027 1027 1028 1028 1029 /** Pointer to an iSCSI Request PDU buffer. */1030 typedef struct ISCSIREQ *PISCSIREQ;1031 1029 /** 1032 1030 * iSCSI Request PDU buffer (gather). … … 1039 1037 const void *pcvSeg; 1040 1038 } ISCSIREQ; 1041 1042 /** Pointer to an iSCSI Response PDU buffer. */ 1043 typedef struct ISCSIRES *PISCSIRES; 1039 /** Pointer to an iSCSI Request PDU buffer. */ 1040 typedef ISCSIREQ *PISCSIREQ; 1041 /** Pointer to a const iSCSI Request PDU buffer. */ 1042 typedef ISCSIREQ const *PCISCSIREQ; 1043 1044 1044 1045 /** 1045 1046 * iSCSI Response PDU buffer (scatter). … … 1052 1053 void *pvSeg; 1053 1054 } ISCSIRES; 1055 /** Pointer to an iSCSI Response PDU buffer. */ 1056 typedef ISCSIRES *PISCSIRES; 1057 /** Pointer to a const iSCSI Response PDU buffer. */ 1058 typedef ISCSIRES const *PCISCSIRES; 1059 1054 1060 1055 1061 /** Pointer to an iSCSI transport driver interface. */ … … 1067 1073 * @returns VBox status code. 1068 1074 * @param pTransport Pointer to the interface structure containing the called function pointer. 1069 * @param pvBuf Where to store the read bits. 1070 * @param cbBuf Number of bytes to read. 1071 * @param pcbRead Actual number of bytes read. 1075 * @param paResponses Array of scatter segments. 1076 * @param cResponses The number of segments. 1072 1077 * @thread Any thread. 1073 1078 * @todo Correct the docs. 1074 1079 */ 1075 DECLR3CALLBACKMEMBER(int, pfnRead,(PPDMIISCSITRANSPORT pTransport, PISCSIRES p rgResponse, unsigned int cnResponse));1080 DECLR3CALLBACKMEMBER(int, pfnRead,(PPDMIISCSITRANSPORT pTransport, PISCSIRES paResponses, unsigned cResponses)); 1076 1081 1077 1082 /** … … 1082 1087 * @returns VBox status code. 1083 1088 * @param pTransport Pointer to the interface structure containing the called function pointer. 1084 * @param p vBuf Where the write bits are stored.1085 * @param c bWrite Number of bytes to write.1089 * @param paRequests Array of gather segments. 1090 * @param cRequests The number of segments. 1086 1091 * @thread Any thread. 1087 1092 * @todo Correct the docs. 1088 1093 */ 1089 DECLR3CALLBACKMEMBER(int, pfnWrite,(PPDMIISCSITRANSPORT pTransport, PISCSIREQ p rgRequest, unsigned int cnRequest));1094 DECLR3CALLBACKMEMBER(int, pfnWrite,(PPDMIISCSITRANSPORT pTransport, PISCSIREQ paRequests, unsigned cRequests)); 1090 1095 1091 1096 /** … … 1108 1113 DECLR3CALLBACKMEMBER(int, pfnClose,(PPDMIISCSITRANSPORT pTransport)); 1109 1114 } PDMIISCSITRANSPORT; 1115 1110 1116 1111 1117 /** … … 1119 1125 void *pvSeg; 1120 1126 } PDMIDATATRANSPORTSEG; 1121 1122 1127 /** Pointer to a data transport segment. */ 1123 1128 typedef PDMIDATATRANSPORTSEG *PPDMIDATATRANSPORTSEG; 1129 /** Pointer to a const data transport segment. */ 1130 typedef PDMIDATATRANSPORTSEG const *PCPDMIDATATRANSPORTSEG; 1131 1124 1132 1125 1133 /** Pointer to an asynchronous iSCSI transport driver interface. */ … … 1135 1143 * @returns VBox status code. 1136 1144 * @param pTransport Pointer to the interface structure containing the called function pointer. 1137 * @param p rgResponse Pointer to the first scatter list entry.1138 * @param c nResponse Number of scatter list entries.1145 * @param paResponses Pointer to a array of scatter segments. 1146 * @param cResponses Number of segments in the array. 1139 1147 * @param pvUser User argument which is returned in completion callback. 1140 1148 * @thread EMT thread. 1141 1149 */ 1142 DECLR3CALLBACKMEMBER(int, pfnStartRead,(PPDMIISCSITRANSPORTASYNC pTransport, PISCSIRES p rgResponse, unsigned int cnResponse, void *pvUser));1150 DECLR3CALLBACKMEMBER(int, pfnStartRead,(PPDMIISCSITRANSPORTASYNC pTransport, PISCSIRES paResponses, unsigned cResponses, void *pvUser)); 1143 1151 1144 1152 /** … … 1147 1155 * @returns VBox status code. 1148 1156 * @param pTransport Pointer to the interface structure containing the called function pointer. 1149 * @param p rgRequest Pointer to the fist gather list entry.1150 * @param c nRequest Number of gather list entries.1157 * @param paRequests Pointer to a array of gather segments. 1158 * @param cRequests Number of segments in the array. 1151 1159 * @param pvUser User argument which is returned in completion callback. 1152 1160 * @thread EMT thread. 1153 1161 */ 1154 DECLR3CALLBACKMEMBER(int, pfnStartWrite,(PPDMIISCSITRANSPORTASYNC pTransport, PISCSIREQ p rgRequest, unsigned int cnRequest, void *pvUser));1162 DECLR3CALLBACKMEMBER(int, pfnStartWrite,(PPDMIISCSITRANSPORTASYNC pTransport, PISCSIREQ pRequests, unsigned cRequests, void *pvUser)); 1155 1163 } PDMIISCSITRANSPORTASYNC; 1164 1156 1165 1157 1166 /** Pointer to a asynchronous iSCSI transport notify interface. */ … … 1168 1177 * @returns VBox status code. 1169 1178 * @param pInterface Pointer to the interface structure containing the called function pointer. 1170 * @param p rgResponse Pointer to the first scatter list entry.1171 * @param c nResponse Number of scatter list entries.1179 * @param paResponses Pointer to a array of scatter segments. 1180 * @param cResponses Number of segments in the array. 1172 1181 * @param pvUser The user argument given in pfnStartRead. 1173 1182 * @thread Any thread. 1174 1183 */ 1175 DECLR3CALLBACKMEMBER(int, pfnReadCompleteNotify, (PPDMIISCSITRANSPORTASYNCPORT pInterface, PISCSIRES p rgResponse, unsigned int cnResponse, void *pvUser));1184 DECLR3CALLBACKMEMBER(int, pfnReadCompleteNotify, (PPDMIISCSITRANSPORTASYNCPORT pInterface, PISCSIRES paResponses, unsigned cResponse, void *pvUser)); 1176 1185 1177 1186 /** … … 1180 1189 * @returns VBox status code. 1181 1190 * @param pInterface Pointer to the interface structure containing the called function pointer. 1182 * @param p rgRequest Pointer to the fist gather list entry.1183 * @param c nRequest Number of gather list entries.1191 * @param paRequests Pointer to a array of gather segments. 1192 * @param cRequests Number of segments in the array. 1184 1193 * @param pvUser The user argument given in pfnStartWrite. 1185 1194 * @thread Any thread. 1186 1195 */ 1187 DECLR3CALLBACKMEMBER(int, pfnWriteCompleteNotify, (PPDMIISCSITRANSPORTASYNCPORT pTransport, PISCSIREQ p rgRequest, unsigned int cnRequest, void *pvUser));1196 DECLR3CALLBACKMEMBER(int, pfnWriteCompleteNotify, (PPDMIISCSITRANSPORTASYNCPORT pTransport, PISCSIREQ paRequests, unsigned cRequests, void *pvUser)); 1188 1197 } PDMIISCSITRANSPORTASYNCPORT; 1198 1189 1199 1190 1200 /** Pointer to a asynchronous block notify interface. */ … … 1362 1372 * @thread Any thread. 1363 1373 */ 1364 DECLR3CALLBACKMEMBER(int, pfnReadCompleteNotify, (PPDMITRANSPORTASYNCPORT pInterface, uint64_t off, PPDMIDATATRANSPORTSEG pSeg, unsigned cSeg, 1374 DECLR3CALLBACKMEMBER(int, pfnReadCompleteNotify, (PPDMITRANSPORTASYNCPORT pInterface, uint64_t off, PPDMIDATATRANSPORTSEG pSeg, unsigned cSeg, 1365 1375 size_t cbRead, void *pvUser)); 1366 1376 … … 1377 1387 * @thread Any thread. 1378 1388 */ 1379 DECLR3CALLBACKMEMBER(int, pfnWriteCompleteNotify, (PPDMITRANSPORTASYNCPORT pInterface, uint64_t off, PPDMIDATATRANSPORTSEG pSeg, unsigned cSeg, 1389 DECLR3CALLBACKMEMBER(int, pfnWriteCompleteNotify, (PPDMITRANSPORTASYNCPORT pInterface, uint64_t off, PPDMIDATATRANSPORTSEG pSeg, unsigned cSeg, 1380 1390 size_t cbWritten, void *pvUser)); 1381 1391 } PDMITRANSPORTASYNCPORT; … … 1445 1455 * @thread Any thread. 1446 1456 */ 1447 DECLR3CALLBACKMEMBER(int, pfnWriteStartAsynchronous,(PPDMITRANSPORTASYNC pInterface, uint64_t off, PPDMIDATATRANSPORTSEG pSeg, unsigned cSeg, 1457 DECLR3CALLBACKMEMBER(int, pfnWriteStartAsynchronous,(PPDMITRANSPORTASYNC pInterface, uint64_t off, PPDMIDATATRANSPORTSEG pSeg, unsigned cSeg, 1448 1458 size_t cbWrite, void *pvUser)); 1449 1459
Note:
See TracChangeset
for help on using the changeset viewer.