Driver Entry Points sata_tran_port_deactivate(9E) NAME sata_tran_port_deactivate - activate SATA port and establish link with attached device. SYNOPSIS #include int sata_tran_port_activate(dev_info_t *dev_info, sata_device_t *sata_device); INTERFACE LEVEL Consolidation Private PARAMETERS dev_info Pointer to a dev_info_t structure, referring to the HBA device instance. sata_device Pointer to sata_device structure identifying the target port. DESCRIPTION This function performs SATA HBA-specific operation of deactivating the specified port and relinquishing communication with an attached device (if any). It does not implies turning off the power for the port and/or the link interface. The state of the device port should be returned in appropriate fields of the sata_device structure passed as the function argument. RETURN VALUE SATA_SUCCESS Specified port was deactivated. The state field in sata_device structure passed as the argument should be set to SATA_PSTATE_SHUTDOWN. The status registers of the device port should be returned in appropriate fields of the sata_device structure. SATA_FAILURE Specified port was not deactivated successfully. If the port remained in the active state, the state field in sata_device structure passed as the argument should be set to SATA_STATE_READY. If the port state is unknown, the state field should be set to SATA_STATE_UNKNOWN. If the requested operation rendered port unusable the state field should be set to SATA_PSTATE_FAILED. SEE ALSO sata_hba_tran(9S), sata_hba_init(9F), sata_hba_fini(9F), sata_hba_attach(9F), sata_hba_detach(9F), sata_hba_event_notify(9F), sata_tran_probe_port(9F), sata_tran_start(9F), sata_tran_abort(9f), sata_tran_self_test(9F), sata_tran_hotplug_ops(9S), sata_tran_port_activate(9S), sata_tran_pwrmgt_ops(9S), sata_tran_ioctl(9F), sata_address(9S), sata_device(9S), sata_pkt(9S)