1/* 2 * Copyright (c) 2005-2009 Brocade Communications Systems, Inc. 3 * All rights reserved 4 * www.brocade.com 5 * 6 * Linux driver for Brocade Fibre Channel Host Bus Adapter. 7 * 8 * This program is free software; you can redistribute it and/or modify it 9 * under the terms of the GNU General Public License (GPL) Version 2 as 10 * published by the Free Software Foundation 11 * 12 * This program is distributed in the hope that it will be useful, but 13 * WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * General Public License for more details. 16 */ 17 18#ifndef __BFAD_ATTR_H__ 19#define __BFAD_ATTR_H__ 20/** 21 * bfad_attr.h VMware driver configuration interface module. 22 */ 23 24/** 25 * FC_transport_template FC transport template 26 */ 27 28struct Scsi_Host* 29bfad_os_dev_to_shost(struct scsi_target *starget); 30 31/** 32 * FC transport template entry, get SCSI target port ID. 33 */ 34void 35bfad_im_get_starget_port_id(struct scsi_target *starget); 36 37/** 38 * FC transport template entry, get SCSI target nwwn. 39 */ 40void 41bfad_im_get_starget_node_name(struct scsi_target *starget); 42 43/** 44 * FC transport template entry, get SCSI target pwwn. 45 */ 46void 47bfad_im_get_starget_port_name(struct scsi_target *starget); 48 49/** 50 * FC transport template entry, get SCSI host port ID. 51 */ 52void 53bfad_im_get_host_port_id(struct Scsi_Host *shost); 54 55/** 56 * FC transport template entry, issue a LIP. 57 */ 58int 59bfad_im_issue_fc_host_lip(struct Scsi_Host *shost); 60 61struct Scsi_Host* 62bfad_os_starget_to_shost(struct scsi_target *starget); 63 64 65#endif /* __BFAD_ATTR_H__ */ 66