2 * Disk Array driver for Compaq SMART2 Controllers
3 * Copyright 1998 Compaq Computer Corporation
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
13 * NON INFRINGEMENT. See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 * Questions/Comments/Bugfixes to arrays@compaq.com
21 * If you want to make changes, improve or add functionality to this
22 * driver, you'll probably need the Compaq Array Controller Interface
23 * Specificiation (Document number ECG086/1198)
29 #include <linux/blkdev.h>
30 #include <linux/locks.h>
31 #include <linux/malloc.h>
32 #include <linux/proc_fs.h>
34 #include <linux/timer.h>
44 #define IDA_TIMER (5*HZ)
45 #define IDA_TIMEOUT (10*HZ)
47 #define MISC_NONFATAL_WARN 0x01
61 typedef struct ctlr_info ctlr_info_t
;
63 struct access_method
{
64 void (*submit_command
)(ctlr_info_t
*h
, cmdlist_t
*c
);
65 void (*set_intr_mask
)(ctlr_info_t
*h
, unsigned long val
);
66 unsigned long (*fifo_full
)(ctlr_info_t
*h
);
67 unsigned long (*intr_pending
)(ctlr_info_t
*h
);
68 unsigned long (*command_completed
)(ctlr_info_t
*h
);
74 struct access_method
*access
;
83 __u32 mp_failed_drv_map
;
100 struct proc_dir_entry
*proc
;
102 struct access_method access
;
107 __u32
*cmd_pool_bits
;
110 unsigned int maxQsinceinit
;
112 unsigned int nr_requests
;
113 unsigned int nr_allocs
;
114 unsigned int nr_frees
;
115 struct timer_list timer
;
116 unsigned int misc_tflags
;
120 #endif /* CPQARRAY_H */