1 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 * Linux MegaRAID device driver
6 * Copyright (c) 2003-2004 LSI Logic Corporation.
14 #include <linux/spinlock.h>
16 #include <linux/uaccess.h>
17 #include <linux/module.h>
18 #include <linux/moduleparam.h>
19 #include <linux/pci.h>
20 #include <linux/list.h>
21 #include <linux/miscdevice.h>
23 #include "mbox_defs.h"
24 #include "megaraid_ioctl.h"
27 #define LSI_COMMON_MOD_VERSION "2.20.2.7"
28 #define LSI_COMMON_MOD_EXT_VERSION \
29 "(Release Date: Sun Jul 16 00:01:03 EST 2006)"
32 #define LSI_DBGLVL dbglevel
34 // The smallest dma pool
35 #define MRAID_MM_INIT_BUFF_SIZE 4096
38 * mimd_t : Old style ioctl packet structure (deprecated)
54 * Note : This structure is DEPRECATED. New applications must use
55 * : uioc_t structure instead. All new hba drivers use the new
56 * : format. If we get this mimd packet, we will convert it into
57 * : new uioc_t format and send it to the hba drivers.
71 #if BITS_PER_LONG == 32
72 uint8_t __user
*buffer
;
75 #if BITS_PER_LONG == 64
76 uint8_t __user
*buffer
;
79 } __attribute__ ((packed
)) fcs
;
80 } __attribute__ ((packed
)) ui
;
82 uint8_t mbox
[18]; /* 16 bytes + 2 status bytes */
83 mraid_passthru_t pthru
;
85 #if BITS_PER_LONG == 32
86 char __user
*data
; /* buffer <= 4096 for 0x80 commands */
89 #if BITS_PER_LONG == 64
93 } __attribute__ ((packed
))mimd_t
;
95 #endif // MEGARAID_MM_H
97 // vi: set ts=8 sw=8 tw=78: