Driver Entry Points sata_tran_reset_dport(9E) NAME sata_tran_reset_dport - reset SATA port or SATA device SYNOPSIS #include int sata_tran_reset_dport(dev_into_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 or SATA device or the whole controller DESCRIPTION sata_tran_reset_dport() function is called by the SATA HBA framework during error recovery. It should perform HBA-specific sequence of resetting the port or a device or the whole controller, as specified by the sata_address in sata_device argument. Reset operation should be followed internally by SATA HBA driver with an operation of re-establishing communication with an attached device. SATA HBA driver should return a port status in the appropriate fields of the sata_device structure passed as the argument to the function. This function shall not be called from the interrupt context. RETURN VALUE sata_tran_reset_dport must return: SATA_SUCCESS Port or device was successfully reset. The function should return SATA_SUCCESS even when there is no device attached or the communication with the device cannot be established, as long as the device port state is known. SATA_FAILURE The status of the port could not be determined after the reset operation. 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_pwrmgt_ops(9S), sata_tran_ioctl(9F), sata_address(9S), sata_device(9S), sata_pkt(9S)