"Fossies" - the Fresh Open Source Software archive

Member "open-fcoe/usr/ofc/lib/libhbaofc/src/ofc_tgt_map.c" of archive open-fcoe.tar.gz:


/*
 * Copyright(c) 2007 Intel Corporation. All rights reserved.
 * 
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 * 
 * This program is distributed in the hope it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
 * 
 * Maintained at www.Open-FCoE.org
 */
#include <sys/types.h>
#include <stddef.h>
#include <string.h>
#include <time.h>
#include "hbaapi.h"
#include "vendorhbaapi.h"
#include "ofc_api_lib.h"
#include "ofc_adapt_impl.h"

/*
 * Target mapping code.
 * XXX - TBD - returns empty list for now
 */
HBA_STATUS ofc_tgt_get_mapping(HBA_HANDLE handle, HBA_FCPTARGETMAPPING *pmap)
{
    pmap->NumberOfEntries = 0;
    return HBA_STATUS_OK;
}

HBA_STATUS ofc_tgt_get_mapping_v2(HBA_HANDLE handle, HBA_WWN port_wwn,
                    HBA_FCPTARGETMAPPINGV2 *pmap)
{
    pmap->NumberOfEntries = 0;
    return HBA_STATUS_OK;
}

HBA_STATUS ofc_tgt_get_binding(HBA_HANDLE handle, HBA_FCPBINDING *bp)
{
    bp->NumberOfEntries = 0;
    return HBA_STATUS_OK;
}

HBA_STATUS ofc_tgt_get_binding_v2(HBA_HANDLE handle, HBA_WWN port_wwn,
                    HBA_FCPBINDING2 *bp)
{
    bp->NumberOfEntries = 0;
    return HBA_STATUS_OK;
}