3 * Linux MegaRAID device driver
5 * Copyright (c) 2003-2004 LSI Logic Corporation.
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version
10 * 2 of the License, or (at your option) any later version.
12 * FILE : megaraid_mm.h
18 #include <linux/spinlock.h>
20 #include <asm/uaccess.h>
21 #include <linux/version.h>
22 #include <linux/module.h>
23 #include <linux/moduleparam.h>
24 #include <linux/pci.h>
25 #include <linux/list.h>
26 #include <linux/ioctl32.h>
28 #include "mbox_defs.h"
29 #include "megaraid_ioctl.h"
32 #define LSI_COMMON_MOD_VERSION "2.20.2.6"
33 #define LSI_COMMON_MOD_EXT_VERSION \
34 "(Release Date: Mon Mar 7 00:01:03 EST 2005)"
37 #define LSI_DBGLVL dbglevel
39 // The smallest dma pool
40 #define MRAID_MM_INIT_BUFF_SIZE 4096
43 * mimd_t : Old style ioctl packet structure (deprecated)
59 * Note : This structure is DEPRECATED. New applications must use
60 * : uioc_t structure instead. All new hba drivers use the new
61 * : format. If we get this mimd packet, we will convert it into
62 * : new uioc_t format and send it to the hba drivers.
76 #if BITS_PER_LONG == 32
77 uint8_t __user
*buffer
;
80 #if BITS_PER_LONG == 64
81 uint8_t __user
*buffer
;
84 } __attribute__ ((packed
)) fcs
;
85 } __attribute__ ((packed
)) ui
;
87 uint8_t mbox
[18]; /* 16 bytes + 2 status bytes */
88 mraid_passthru_t pthru
;
90 #if BITS_PER_LONG == 32
91 char __user
*data
; /* buffer <= 4096 for 0x80 commands */
94 #if BITS_PER_LONG == 64
98 } __attribute__ ((packed
))mimd_t
;
100 #endif // MEGARAID_MM_H
102 // vi: set ts=8 sw=8 tw=78: