File: mpt-status.h

package info (click to toggle)
mpt-status 1.2.0-8
  • links: PTS
  • area: main
  • in suites: bullseye, jessie-kfreebsd, sid
  • size: 604 kB
  • ctags: 4,301
  • sloc: ansic: 5,154; sh: 156; makefile: 46
file content (60 lines) | stat: -rw-r--r-- 1,557 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef _MPT_STATUS_H
#define _MPT_STATUS_H

#include <sys/ioctl.h>

#ifdef SANITIZED_KERNEL_HEADERS
#include "mpt-sanitized.h"
#else
#ifndef __user
#define __user
#endif
#ifndef __kernel
#define __kernel
#endif
#include <pci/pci.h>   // config.h and header.h from pciutils package
#include "debian/includes/mpi_type.h"
#include "debian/includes/mpi.h"
#include "debian/includes/mpi_ioc.h"
#include "debian/includes/mpi_cnfg.h"
#include "debian/includes/mpi_raid.h"
#include "debian/includes/mptctl.h"
//#include "mptbase.h"
#endif // SANITIZED_KERNEL_HEADERS

#define VERSION "1.2.0"

#define BIG 1024
#define REALLYBIG 10240
#define PRINT_STATUS_ONLY 0

#define REPLY_SIZE 128
#define MPT_EXIT_OKAY		(0)
#define MPT_EXIT_VOL_OPTIMAL	(0)
#define MPT_EXIT_VOL_FAILED	(1 << 1)
#define MPT_EXIT_VOL_DEGRADED	(1 << 2)
#define MPT_EXIT_VOL_RESYNC	(1 << 3)
#define MPT_EXIT_PHYSDISK_ERROR	(1 << 4)
#define MPT_EXIT_PHYSDISK_WARN	(1 << 5)
#define MPT_EXIT_UNKNOWN	(1 << 0)

#define MPT_EXIT_NOCLOSE	(1 << 10)
#define MPT_EXIT_FREEMEM	(1 << 11)

#define DATA_DIR_NONE           0
#define DATA_DIR_IN             1
#define DATA_DIR_OUT            2

#define MPT_FLAGS_FREE_MEM      0x00
#define MPT_FLAGS_KEEP_MEM      0x01
#define MPT_FLAGS_DUMP_REPLY    0x02
#define MPT_FLAGS_DUMP_DATA     0x04

static char *wrong_scsi_id =
"\nYou seem to have no SCSI disks attached to your HBA or you have\n"
"them on a different scsi_id. To get your SCSI id, run:\n\n"
"    mpt-status -p\n";

typedef struct mpt_ioctl_command mpiIoctlBlk_t;

#endif /* End of mpt-status.h */