Changeset 204 for trunk/src/os2ahci/ata.c
- Timestamp:
- Jun 3, 2020, 5:36:55 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/ata.c
r200 r204 361 361 { 362 362 ULONG offset = io->BlocksXferred * io->BlockSize; 363 SCATGATENTRY *pSGList = (SCATGATENTRY*)Far16ToFlat(io-> pSGList);363 SCATGATENTRY *pSGList = (SCATGATENTRY*)Far16ToFlat(io->f16SGList); 364 364 USHORT i; 365 365 … … 403 403 ULONG offset = 0; 404 404 USHORT i; 405 SCATGATENTRY *pSGList = (SCATGATENTRY*)Far16ToFlat(io-> pSGList);405 SCATGATENTRY *pSGList = (SCATGATENTRY*)Far16ToFlat(io->f16SGList); 406 406 407 407 for (i = sg_indx; i < io->cSGList; i++) … … 532 532 DLA_Table_Sector *pDLA = (DLA_Table_Sector*)add_workspace(pIorb)->buf; 533 533 AD_INFO *ai = ad_infos + iorb_unit_adapter(pIorb); 534 GEOMETRY *geometry = ((IORB_GEOMETRY*)pIorb)-> pGeometry;534 GEOMETRY *geometry = ((IORB_GEOMETRY*)pIorb)->f16Geometry; 535 535 int p = iorb_unit_port(pIorb); 536 536 int rc; … … 567 567 int is_lvm_geometry(IORBH *pIorb) 568 568 { 569 GEOMETRY *geometry = ((IORB_GEOMETRY*)pIorb)-> pGeometry;569 GEOMETRY *geometry = ((IORB_GEOMETRY*)pIorb)->f16Geometry; 570 570 ULONG sector; 571 571 … … 597 597 void ata_get_geometry_pp(IORBH FAR16DATA *vIorb, IORBH *pIorb) 598 598 { 599 GEOMETRY *geometry = ((IORB_GEOMETRY*)pIorb)-> pGeometry;599 GEOMETRY *geometry = ((IORB_GEOMETRY*)pIorb)->f16Geometry; 600 600 USHORT geometry_len = ((IORB_GEOMETRY *)pIorb)->GeometryLen; 601 601 u16 *id_buf = add_workspace(pIorb)->buf; … … 750 750 { 751 751 IORB_EXECUTEIO *io = (IORB_EXECUTEIO *)pIorb; 752 SCATGATENTRY *pSGList = (SCATGATENTRY*)Far16ToFlat(io-> pSGList);752 SCATGATENTRY *pSGList = (SCATGATENTRY*)Far16ToFlat(io->f16SGList); 753 753 AD_INFO *ai = ad_infos + iorb_unit_adapter(pIorb); 754 754 ULONG sector = io->RBA + io->BlocksXferred; … … 875 875 { 876 876 IORB_EXECUTEIO *io = (IORB_EXECUTEIO *)pIorb; 877 SCATGATENTRY *pSGList = (SCATGATENTRY*)Far16ToFlat(io-> pSGList);877 SCATGATENTRY *pSGList = (SCATGATENTRY*)Far16ToFlat(io->f16SGList); 878 878 ADD_WORKSPACE *aws = add_workspace(pIorb); 879 879 … … 948 948 { 949 949 IORB_EXECUTEIO *io = (IORB_EXECUTEIO *)pIorb; 950 SCATGATENTRY *pSGList = (SCATGATENTRY*)Far16ToFlat(io-> pSGList);950 SCATGATENTRY *pSGList = (SCATGATENTRY*)Far16ToFlat(io->f16SGList); 951 951 AD_INFO *ai = ad_infos + iorb_unit_adapter(pIorb); 952 952 ULONG sector = io->RBA + io->BlocksXferred; … … 1015 1015 { 1016 1016 IORB_EXECUTEIO *io = (IORB_EXECUTEIO *)pIorb; 1017 SCATGATENTRY *pSGList = (SCATGATENTRY*)Far16ToFlat(io-> pSGList);1017 SCATGATENTRY *pSGList = (SCATGATENTRY*)Far16ToFlat(io->f16SGList); 1018 1018 ADD_WORKSPACE *aws = add_workspace(pIorb); 1019 1019 AD_INFO *ai = ad_infos + iorb_unit_adapter(pIorb); … … 1092 1092 { 1093 1093 IORB_ADAPTER_PASSTHRU *apt = (IORB_ADAPTER_PASSTHRU *)pIorb; 1094 SCATGATENTRY *pSGList = (SCATGATENTRY*)Far16ToFlat(apt-> pSGList);1094 SCATGATENTRY *pSGList = (SCATGATENTRY*)Far16ToFlat(apt->f16SGList); 1095 1095 AD_INFO *ai = ad_infos + iorb_unit_adapter(pIorb); 1096 1096 int p = iorb_unit_port(pIorb); … … 1106 1106 rc = ata_cmd(ai, p, d, slot, 0, 1107 1107 AP_SGLIST, pSGList, apt->cSGList, 1108 AP_ATA_CMD, Far16ToFlat(apt-> pControllerCmd),1108 AP_ATA_CMD, Far16ToFlat(apt->f16ControllerCmd), 1109 1109 AP_WRITE, !(apt->Flags & PT_DIRECTION_IN), 1110 1110 AP_END); … … 1148 1148 1149 1149 /* map D2H FIS to the original ATA controller command structure */ 1150 cmd = (ATA_CMD *)Far16ToFlat(((IORB_ADAPTER_PASSTHRU*)pIorb)-> pControllerCmd);1150 cmd = (ATA_CMD *)Far16ToFlat(((IORB_ADAPTER_PASSTHRU*)pIorb)->f16ControllerCmd); 1151 1151 1152 1152 cmd->cmd = fis[2];
Note:
See TracChangeset
for help on using the changeset viewer.