linux/drivers/scsi/aic94xx/aic94xx_dev.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Aic94xx SAS/SATA DDB management
 *
 * Copyright (C) 2005 Adaptec, Inc.  All rights reserved.
 * Copyright (C) 2005 Luben Tuikov <[email protected]>
 *
 * $Id: //depot/aic94xx/aic94xx_dev.c#21 $
 */

#include "aic94xx.h"
#include "aic94xx_hwi.h"
#include "aic94xx_reg.h"
#include "aic94xx_sas.h"

#define FIND_FREE_DDB(_ha)
#define SET_DDB(_ddb, _ha)
#define CLEAR_DDB(_ddb, _ha)

static int asd_get_ddb(struct asd_ha_struct *asd_ha)
{}

#define INIT_CONN_TAG
#define DEST_SAS_ADDR
#define SEND_QUEUE_HEAD
#define DDB_TYPE
#define CONN_MASK
#define DDB_TARG_FLAGS
#define DDB_TARG_FLAGS2
#define EXEC_QUEUE_TAIL
#define SEND_QUEUE_TAIL
#define SISTER_DDB
#define MAX_CCONN
#define NUM_CTX
#define ATA_CMD_SCBPTR
#define SATA_TAG_ALLOC_MASK
#define NUM_SATA_TAGS
#define SATA_STATUS
#define NCQ_DATA_SCB_PTR
#define ITNL_TIMEOUT

static void asd_free_ddb(struct asd_ha_struct *asd_ha, int ddb)
{}

static void asd_set_ddb_type(struct domain_device *dev)
{}

static int asd_init_sata_tag_ddb(struct domain_device *dev)
{}

void asd_set_dmamode(struct domain_device *dev)
{}

static int asd_init_sata(struct domain_device *dev)
{}

static int asd_init_target_ddb(struct domain_device *dev)
{}

static int asd_init_sata_pm_table_ddb(struct domain_device *dev)
{}

#define PM_PORT_FLAGS
#define PARENT_DDB

/**
 * asd_init_sata_pm_port_ddb -- SATA Port Multiplier Port
 * @dev: pointer to domain device
 *
 * For SATA Port Multiplier Ports we need to allocate one SATA Port
 * Multiplier Port DDB and depending on whether the target on it
 * supports SATA II NCQ, one SATA Tag DDB.
 */
static int asd_init_sata_pm_port_ddb(struct domain_device *dev)
{}

static int asd_init_initiator_ddb(struct domain_device *dev)
{}

/**
 * asd_init_sata_pm_ddb -- SATA Port Multiplier
 * @dev: pointer to domain device
 *
 * For STP and direct-attached SATA Port Multipliers we need
 * one target port DDB entry and one SATA PM table DDB entry.
 */
static int asd_init_sata_pm_ddb(struct domain_device *dev)
{}

int asd_dev_found(struct domain_device *dev)
{}

void asd_dev_gone(struct domain_device *dev)
{}