/* RETURNS: ata_port pointer on success / NULL on failure.  */
struct ata_port* ata_sas_port_alloc(struct ata_host *host, struct ata_port_info *port_info, struct Scsi_Host *shost)
/* RETURNS: ata_port pointer on success / NULL on failure.  */
struct ata_port* ata_sas_port_alloc(struct ata_host *host, struct ata_port_info *port_info, struct Scsi_Host *shost)
{
	struct ata_port *ap;
	ap = ata_port_alloc(host);
	if (!ap)
		return NULL;
	ap->port_no = 0;
	ap->lock = shost->host_lock;
	ap->pio_mask = port_info->pio_mask;
	ap->mwdma_mask = port_info->mwdma_mask;
	ap->udma_mask = port_info->udma_mask;
	ap->flags |= port_info->flags;
	ap->ops = port_info->port_ops;
	ap->cbl = ATA_CBL_SATA;
	return ap;
}