Lines Matching refs:ata_ident

140 	struct ata_params ata_ident;  member
1042 write_prdt(p, slot, cfis, (void*)&p->ata_ident, sizeof(struct ata_params)); in handle_identify()
1050 struct ata_params* ata_ident = &p->ata_ident; in ata_identify_init() local
1053 ata_ident->config = ATA_PROTO_ATAPI | ATA_ATAPI_TYPE_CDROM | in ata_identify_init()
1055 ata_ident->capabilities1 = ATA_SUPPORT_LBA | in ata_identify_init()
1057 ata_ident->capabilities2 = (1 << 14 | 1); in ata_identify_init()
1058 ata_ident->atavalid = ATA_FLAG_64_70 | ATA_FLAG_88; in ata_identify_init()
1059 ata_ident->obsolete62 = 0x3f; in ata_identify_init()
1060 ata_ident->mwdmamodes = 7; in ata_identify_init()
1062 ata_ident->mwdmamodes |= (1 << ((p->xfermode & 7) + 8)); in ata_identify_init()
1063 ata_ident->apiomodes = 3; in ata_identify_init()
1064 ata_ident->mwdmamin = 0x0078; in ata_identify_init()
1065 ata_ident->mwdmarec = 0x0078; in ata_identify_init()
1066 ata_ident->pioblind = 0x0078; in ata_identify_init()
1067 ata_ident->pioiordy = 0x0078; in ata_identify_init()
1068 ata_ident->satacapabilities = (ATA_SATA_GEN1 | ATA_SATA_GEN2 | ATA_SATA_GEN3); in ata_identify_init()
1069 ata_ident->satacapabilities2 = ((p->ssts & ATA_SS_SPD_MASK) >> 3); in ata_identify_init()
1070 ata_ident->satasupport = ATA_SUPPORT_NCQ_STREAM; in ata_identify_init()
1071 ata_ident->version_major = 0x3f0; in ata_identify_init()
1072 ata_ident->support.command1 = (ATA_SUPPORT_POWERMGT | ATA_SUPPORT_PACKET | in ata_identify_init()
1074 ata_ident->support.command2 = (1 << 14); in ata_identify_init()
1075 ata_ident->support.extension = (1 << 14); in ata_identify_init()
1076 ata_ident->enabled.command1 = (ATA_SUPPORT_POWERMGT | ATA_SUPPORT_PACKET | in ata_identify_init()
1078 ata_ident->enabled.extension = (1 << 14); in ata_identify_init()
1079 ata_ident->udmamodes = 0x7f; in ata_identify_init()
1081 ata_ident->udmamodes |= (1 << ((p->xfermode & 7) + 8)); in ata_identify_init()
1082 ata_ident->transport_major = 0x1020; in ata_identify_init()
1083 ata_ident->integrity = 0x00a5; in ata_identify_init()
1096 ata_ident->config = ATA_DRQ_FAST; in ata_identify_init()
1097 ata_ident->cylinders = cyl; in ata_identify_init()
1098 ata_ident->heads = heads; in ata_identify_init()
1099 ata_ident->sectors = sech; in ata_identify_init()
1101 ata_ident->sectors_intr = (0x8000 | 128); in ata_identify_init()
1102 ata_ident->tcg = 0; in ata_identify_init()
1104 ata_ident->capabilities1 = ATA_SUPPORT_DMA | in ata_identify_init()
1106 ata_ident->capabilities2 = (1 << 14); in ata_identify_init()
1107 ata_ident->atavalid = ATA_FLAG_64_70 | ATA_FLAG_88; in ata_identify_init()
1109 ata_ident->multi = (ATA_MULTI_VALID | p->mult_sectors); in ata_identify_init()
1111 ata_ident->lba_size_1 = sectors; in ata_identify_init()
1112 ata_ident->lba_size_2 = (sectors >> 16); in ata_identify_init()
1114 ata_ident->lba_size_1 = 0xffff; in ata_identify_init()
1115 ata_ident->lba_size_2 = 0x0fff; in ata_identify_init()
1117 ata_ident->mwdmamodes = 0x7; in ata_identify_init()
1119 ata_ident->mwdmamodes |= (1 << ((p->xfermode & 7) + 8)); in ata_identify_init()
1120 ata_ident->apiomodes = 0x3; in ata_identify_init()
1121 ata_ident->mwdmamin = 0x0078; in ata_identify_init()
1122 ata_ident->mwdmarec = 0x0078; in ata_identify_init()
1123 ata_ident->pioblind = 0x0078; in ata_identify_init()
1124 ata_ident->pioiordy = 0x0078; in ata_identify_init()
1125 ata_ident->support3 = 0; in ata_identify_init()
1126 ata_ident->queue = 31; in ata_identify_init()
1127 ata_ident->satacapabilities = (ATA_SATA_GEN1 | ATA_SATA_GEN2 | ATA_SATA_GEN3 | in ata_identify_init()
1129 ata_ident->satacapabilities2 = (ATA_SUPPORT_RCVSND_FPDMA_QUEUED | in ata_identify_init()
1131 ata_ident->version_major = 0x3f0; in ata_identify_init()
1132 ata_ident->version_minor = 0x28; in ata_identify_init()
1133 ata_ident->support.command1 = (ATA_SUPPORT_POWERMGT | ATA_SUPPORT_WRITECACHE | in ata_identify_init()
1135 ata_ident->support.command2 = (ATA_SUPPORT_ADDRESS48 | ATA_SUPPORT_FLUSHCACHE | in ata_identify_init()
1137 ata_ident->support.extension = (1 << 14); in ata_identify_init()
1138 ata_ident->enabled.command1 = (ATA_SUPPORT_POWERMGT | ATA_SUPPORT_WRITECACHE | in ata_identify_init()
1140 ata_ident->enabled.command2 = (ATA_SUPPORT_ADDRESS48 | ATA_SUPPORT_FLUSHCACHE | in ata_identify_init()
1142 ata_ident->enabled.extension = (1 << 14); in ata_identify_init()
1143 ata_ident->udmamodes = 0x7f; in ata_identify_init()
1145 ata_ident->udmamodes |= (1 << ((p->xfermode & 7) + 8)); in ata_identify_init()
1146 ata_ident->lba_size48_1 = sectors; in ata_identify_init()
1147 ata_ident->lba_size48_2 = (sectors >> 16); in ata_identify_init()
1148 ata_ident->lba_size48_3 = (sectors >> 32); in ata_identify_init()
1149 ata_ident->lba_size48_4 = (sectors >> 48); in ata_identify_init()
1152 ata_ident->support3 |= ATA_SUPPORT_RZAT | ATA_SUPPORT_DRAT; in ata_identify_init()
1153 ata_ident->max_dsm_blocks = 1; in ata_identify_init()
1154 ata_ident->support_dsm = ATA_SUPPORT_DSM_TRIM; in ata_identify_init()
1156 ata_ident->pss = ATA_PSS_VALID_VALUE; in ata_identify_init()
1157 ata_ident->lsalign = 0x4000; in ata_identify_init()
1159 ata_ident->pss |= ATA_PSS_MULTLS; in ata_identify_init()
1160 ata_ident->pss |= ffsl(psectsz / sectsz) - 1; in ata_identify_init()
1161 ata_ident->lsalign |= (psectoff / sectsz); in ata_identify_init()
1164 ata_ident->pss |= ATA_PSS_LSSABOVE512; in ata_identify_init()
1165 ata_ident->lss_1 = sectsz / 2; in ata_identify_init()
1166 ata_ident->lss_2 = ((sectsz / 2) >> 16); in ata_identify_init()
1168 ata_ident->support2 = (ATA_SUPPORT_RWLOGDMAEXT | 1 << 14); in ata_identify_init()
1169 ata_ident->enabled2 = (ATA_SUPPORT_RWLOGDMAEXT | 1 << 14); in ata_identify_init()
1170 ata_ident->transport_major = 0x1020; in ata_identify_init()
1171 ata_ident->integrity = 0x00a5; in ata_identify_init()
1173 ahci_checksum((uint8_t*)ata_ident, sizeof(struct ata_params)); in ata_identify_init()
1184 write_prdt(p, slot, cfis, (void *)&p->ata_ident, sizeof(struct ata_params)); in handle_atapi_identify()
2494 struct ata_params *ata_ident = &sc->port[p].ata_ident; in pci_ahci_init() local
2549 memset(ata_ident, 0, sizeof(struct ata_params)); in pci_ahci_init()
2550 ata_string((uint8_t*)&ata_ident->serial, ident, 20); in pci_ahci_init()
2551 ata_string((uint8_t*)&ata_ident->revision, "001", 8); in pci_ahci_init()
2553 ata_string((uint8_t*)&ata_ident->model, "BHYVE SATA DVD ROM", 40); in pci_ahci_init()
2555 ata_string((uint8_t*)&ata_ident->model, "BHYVE SATA DISK", 40); in pci_ahci_init()
2558 ata_ident->media_rotation_rate = atoi(value); in pci_ahci_init()
2561 ata_string((uint8_t*)(&ata_ident->serial), value, 20); in pci_ahci_init()
2564 ata_string((uint8_t*)(&ata_ident->revision), value, 8); in pci_ahci_init()
2567 ata_string((uint8_t*)(&ata_ident->model), value, 40); in pci_ahci_init()
2682 SNAPSHOT_VAR_OR_LEAVE(port->ata_ident, meta, ret, done); in pci_ahci_snapshot()