Lines Matching refs:PCHSGeometry
127 PDMMEDIAGEOMETRY PCHSGeometry;
1214 p[1] = RT_H2LE_U16(RT_MIN(s->PCHSGeometry.cCylinders, 16383));
1215 p[3] = RT_H2LE_U16(s->PCHSGeometry.cHeads);
1218 p[6] = RT_H2LE_U16(s->PCHSGeometry.cSectors);
1234 p[54] = RT_H2LE_U16(RT_MIN(s->PCHSGeometry.cCylinders, 16383));
1235 p[55] = RT_H2LE_U16(s->PCHSGeometry.cHeads);
1236 p[56] = RT_H2LE_U16(s->PCHSGeometry.cSectors);
1237 p[57] = RT_H2LE_U16( RT_MIN(s->PCHSGeometry.cCylinders, 16383)
1238 * s->PCHSGeometry.cHeads
1239 * s->PCHSGeometry.cSectors);
1240 p[58] = RT_H2LE_U16( RT_MIN(s->PCHSGeometry.cCylinders, 16383)
1241 * s->PCHSGeometry.cHeads
1242 * s->PCHSGeometry.cSectors >> 16);
1451 iLBA = ((s->uATARegHCyl << 8) | s->uATARegLCyl) * s->PCHSGeometry.cHeads * s->PCHSGeometry.cSectors +
1452 (s->uATARegSelect & 0x0f) * s->PCHSGeometry.cSectors +
1486 cyl = iLBA / (s->PCHSGeometry.cHeads * s->PCHSGeometry.cSectors);
1487 r = iLBA % (s->PCHSGeometry.cHeads * s->PCHSGeometry.cSectors);
1490 s->uATARegSelect = (s->uATARegSelect & 0xf0) | ((r / s->PCHSGeometry.cSectors) & 0x0f);
1491 s->uATARegSector = (r % s->PCHSGeometry.cSectors) + 1;
6264 pIf->PCHSGeometry.cCylinders = 0; /* dummy */
6265 pIf->PCHSGeometry.cHeads = 0; /* dummy */
6266 pIf->PCHSGeometry.cSectors = 0; /* dummy */
6273 &pIf->PCHSGeometry);
6276 pIf->PCHSGeometry.cCylinders = 0;
6277 pIf->PCHSGeometry.cHeads = 16; /*??*/
6278 pIf->PCHSGeometry.cSectors = 63; /*??*/
6282 pIf->PCHSGeometry.cCylinders = 0; /* autodetect marker */
6287 if ( pIf->PCHSGeometry.cCylinders == 0
6288 || pIf->PCHSGeometry.cHeads == 0
6289 || pIf->PCHSGeometry.cSectors == 0
6293 pIf->PCHSGeometry.cCylinders = RT_MAX(RT_MIN(cCylinders, 16383), 1);
6294 pIf->PCHSGeometry.cHeads = 16;
6295 pIf->PCHSGeometry.cSectors = 63;
6298 &pIf->PCHSGeometry);
6301 LogRel(("PIIX3 ATA: LUN#%d: disk, PCHS=%u/%u/%u, total number of sectors %Ld\n", pIf->iLUN, pIf->PCHSGeometry.cCylinders, pIf->PCHSGeometry.cHeads, pIf->PCHSGeometry.cSectors, pIf->cTotalSectors));
6509 SSMR3PutU32(pSSM, pThis->aCts[i].aIfs[j].PCHSGeometry.cCylinders);
6510 SSMR3PutU32(pSSM, pThis->aCts[i].aIfs[j].PCHSGeometry.cHeads);
6511 SSMR3PutU32(pSSM, pThis->aCts[i].aIfs[j].PCHSGeometry.cSectors);
6682 SSMR3GetU32(pSSM, &pThis->aCts[i].aIfs[j].PCHSGeometry.cCylinders);
6683 SSMR3GetU32(pSSM, &pThis->aCts[i].aIfs[j].PCHSGeometry.cHeads);
6684 SSMR3GetU32(pSSM, &pThis->aCts[i].aIfs[j].PCHSGeometry.cSectors);