~ubuntu-branches/ubuntu/wily/fcoe-utils/wily

« back to all changes in this revision

Viewing changes to fcoeadm.h

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-02-16 14:46:23 UTC
  • Revision ID: james.westby@ubuntu.com-20100216144623-n6gqxpxc5nvonv9f
Tags: upstream-1.0.9
ImportĀ upstreamĀ versionĀ 1.0.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright(c) 2009 Intel Corporation. All rights reserved.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify it
 
5
 * under the terms and conditions of the GNU General Public License,
 
6
 * version 2, as published by the Free Software Foundation.
 
7
 *
 
8
 * This program is distributed in the hope it will be useful, but WITHOUT
 
9
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 
10
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 
11
 * more details.
 
12
 *
 
13
 * You should have received a copy of the GNU General Public License along with
 
14
 * this program; if not, write to the Free Software Foundation, Inc.,
 
15
 * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
 
16
 *
 
17
 * Maintained at www.Open-FCoE.org
 
18
 */
 
19
 
 
20
#ifndef _FCOEADM_H_
 
21
#define _FCOEADM_H_
 
22
 
 
23
#include <sys/types.h>
 
24
#include <sys/stat.h>
 
25
#include <sys/param.h>
 
26
#include <sys/ioctl.h>
 
27
#include <linux/types.h>
 
28
#include <ctype.h>
 
29
#include <stdlib.h>
 
30
#include <stddef.h>
 
31
#include <stdio.h>
 
32
#include <stdarg.h>
 
33
#include <errno.h>
 
34
#include <unistd.h>
 
35
#include <dirent.h>
 
36
#include <time.h>
 
37
#include <fcntl.h>
 
38
#include <malloc.h>
 
39
#include <pthread.h>
 
40
#include <limits.h>
 
41
#include <scsi/sg.h>
 
42
#include <getopt.h>
 
43
#include <byteswap.h>
 
44
#include <net/if.h>
 
45
 
 
46
#include "hbaapi.h"
 
47
#include "net_types.h"
 
48
#include "fc_types.h"
 
49
#include "fc_scsi.h"
 
50
 
 
51
#define __USE_GNU
 
52
#include <string.h>
 
53
 
 
54
#define FCOE_MAX_LUN    255
 
55
 
 
56
struct opt_info {
 
57
        char ifname[IFNAMSIZ];
 
58
        char a_flag;
 
59
        char t_flag;
 
60
        char l_flag;
 
61
        char l_fcid_present;
 
62
        HBA_UINT32 l_fcid;
 
63
        char l_lun_id_present;
 
64
        u_int32_t l_lun_id;
 
65
        char s_flag;
 
66
        char n_flag;
 
67
        #define DEFAULT_STATS_INTERVAL  1
 
68
        int n_interval;         /* seconds */
 
69
};
 
70
extern struct opt_info *opt_info;
 
71
extern char build_date[];
 
72
 
 
73
extern void display_adapter_info(struct opt_info *opt_info);
 
74
extern void display_target_info(struct opt_info *opt_info);
 
75
extern void display_port_stats(struct opt_info *opt_info);
 
76
 
 
77
#endif /* _FCOEADM_H_ */