Lines Matching defs:chp
82 sata_reset_interface(struct ata_channel *chp, bus_space_tag_t sata_t,
88 ata_channel_lock_owned(chp);
99 ata_delay(chp, 50, "sataup", flags);
103 ata_delay(chp, 50, "sataup", flags);
109 ata_delay(chp, 10, "sataup", flags);
117 ata_delay(chp, 10, "sataup", flags);
124 sata_interpret_det(chp, sstatus);
130 sata_interpret_det(struct ata_channel *chp, uint32_t sstatus)
140 device_xname(chp->ch_atac->atac_dev), chp->ch_channel);
145 device_xname(chp->ch_atac->atac_dev), chp->ch_channel);
150 device_xname(chp->ch_atac->atac_dev), chp->ch_channel,
155 device_xname(chp->ch_atac->atac_dev), chp->ch_channel,
161 sata_interpret_sig(struct ata_channel *chp, int port, uint32_t sig)
165 ata_channel_lock_owned(chp);
172 if (chp->ch_drive == NULL) {
174 err = atabus_alloc_drives(chp, PMP_MAX_DRIVES);
176 err = atabus_alloc_drives(chp, 1);
180 KASSERT(port < chp->ch_ndrives);
185 chp->ch_drive[PMP_PORT_CTL].drive_type = ATA_DRIVET_PM;
188 aprint_verbose_dev(chp->atabus, "port %d is SEMB, ignored\n",
192 chp->ch_drive[port].drive_type = ATA_DRIVET_ATAPI;
195 chp->ch_drive[port].drive_type = ATA_DRIVET_ATA;
201 chp->ch_drive[port].drive_type = ATA_DRIVET_ATA;
202 aprint_verbose_dev(chp->atabus,