forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/scsi/mvsas/mv_sas.h
....@@ -1,26 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Marvell 88SE64xx/88SE94xx main function head file
34 *
45 * Copyright 2007 Red Hat, Inc.
56 * Copyright 2008 Marvell. <kewei@marvell.com>
67 * Copyright 2009-2011 Marvell. <yuxiangl@marvell.com>
7
- *
8
- * This file is licensed under GPLv2.
9
- *
10
- * This program is free software; you can redistribute it and/or
11
- * modify it under the terms of the GNU General Public License as
12
- * published by the Free Software Foundation; version 2 of the
13
- * License.
14
- *
15
- * This program is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
- * General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU General Public License
21
- * along with this program; if not, write to the Free Software
22
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
23
- * USA
248 */
259
2610 #ifndef _MV_SAS_H_
....@@ -65,9 +49,6 @@
6549 extern struct mvs_info *tgt_mvi;
6650 extern const struct mvs_dispatch mvs_64xx_dispatch;
6751 extern const struct mvs_dispatch mvs_94xx_dispatch;
68
-
69
-#define DEV_IS_EXPANDER(type) \
70
- ((type == SAS_EDGE_EXPANDER_DEVICE) || (type == SAS_FANOUT_EXPANDER_DEVICE))
7152
7253 #define bit(n) ((u64)1 << n)
7354
....@@ -413,7 +394,7 @@
413394 dma_addr_t bulk_buffer_dma1;
414395 #define TRASH_BUCKET_SIZE 0x20000
415396 void *dma_pool;
416
- struct mvs_slot_info slot_info[0];
397
+ struct mvs_slot_info slot_info[];
417398 };
418399
419400 struct mvs_prv_info{