blob: bf0102076508f3636f5ff35c64a470ee1bb36a9b [file] [log] [blame]
Jing Huang7725ccf2009-09-23 17:46:15 -07001/*
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__
Jing Huang7725ccf2009-09-23 17:46:15 -070020
21/**
22 * FC_transport_template FC transport template
23 */
24
25struct Scsi_Host*
26bfad_os_dev_to_shost(struct scsi_target *starget);
27
28/**
29 * FC transport template entry, get SCSI target port ID.
30 */
31void
32bfad_im_get_starget_port_id(struct scsi_target *starget);
33
34/**
35 * FC transport template entry, get SCSI target nwwn.
36 */
37void
38bfad_im_get_starget_node_name(struct scsi_target *starget);
39
40/**
41 * FC transport template entry, get SCSI target pwwn.
42 */
43void
44bfad_im_get_starget_port_name(struct scsi_target *starget);
45
46/**
47 * FC transport template entry, get SCSI host port ID.
48 */
49void
50bfad_im_get_host_port_id(struct Scsi_Host *shost);
51
Jing Huang7725ccf2009-09-23 17:46:15 -070052struct Scsi_Host*
53bfad_os_starget_to_shost(struct scsi_target *starget);
54
55
56#endif /* __BFAD_ATTR_H__ */