Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Nov 2002 22:48:06 -0800
From:      Chuck Tuffli <chuck_tuffli@agilent.com>
To:        "Long, Scott" <Scott_Long@adaptec.com>
Cc:        freebsd-scsi@FreeBSD.ORG
Subject:   Re: SIM as loadable module?
Message-ID:  <20021118064805.GA7533@thegrail.rose.agilent.com>
In-Reply-To: <6100BCEB85F8E244959C756C04E0EDD161CB79@otcexc01.otc.adaptec.com>
References:  <6100BCEB85F8E244959C756C04E0EDD161CB79@otcexc01.otc.adaptec.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Nov 18, 2002 at 01:31:14AM -0500, Long, Scott wrote:
> 
> What are you setting ccb->ccb_h.status to?  Can you share the body of 
> your action method, or at least the XPT_PATH_INQ portions?

    case XPT_PATH_INQ:
    {
        /* get properties of the SIM driver and HBA */
        struct ccb_pathinq    *cpi = &ccb->cpi;
        hpFCPortInfo_t    fpi;
        
        cpi->version_num = 1;    /* all drivers use version 1 */
        cpi->target_sprt = 0;    /* initiator only */
        cpi->hba_eng_cnt = 0;
        cpi->bus_id = bus;
        cpi->max_target = TACH_MAX_DISKS - 1;
        cpi->max_lun = TACH_MAX_LUN - 1;
        cpi->hba_misc = PIM_NOBUSRESET;
        cpi->hba_inquiry = PI_TAG_ABLE;

        cpi->initiator_id = cpi->max_target + 1;
        
        fcPortGetInfo(&(ini->tach->root), &fpi);
        if (fpi.PortSpeed == 0) {
            cpi->base_transfer_speed = 100000;
        } else {
            cpi->base_transfer_speed = 200000;
        }
        strncpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN);
        strncpy(cpi->hba_vid, "Agilent", HBA_IDLEN);
        strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN);
        cpi->unit_number = unit;
        cpi->ccb_h.status = CAM_REQ_CMP;
        xpt_done(ccb);
        break;
    }

-- 
Chuck Tuffli    <chuck_tuffli AT NO_SPAM agilent DOT com>
Agilent Technologies, Storage and Networking

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021118064805.GA7533>