| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Marvell 88SE64xx/88SE94xx main function head file |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright 2007 Red Hat, Inc. |
|---|
| 5 | 6 | * Copyright 2008 Marvell. <kewei@marvell.com> |
|---|
| 6 | 7 | * 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 |
|---|
| 24 | 8 | */ |
|---|
| 25 | 9 | |
|---|
| 26 | 10 | #ifndef _MV_SAS_H_ |
|---|
| .. | .. |
|---|
| 65 | 49 | extern struct mvs_info *tgt_mvi; |
|---|
| 66 | 50 | extern const struct mvs_dispatch mvs_64xx_dispatch; |
|---|
| 67 | 51 | 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)) |
|---|
| 71 | 52 | |
|---|
| 72 | 53 | #define bit(n) ((u64)1 << n) |
|---|
| 73 | 54 | |
|---|
| .. | .. |
|---|
| 413 | 394 | dma_addr_t bulk_buffer_dma1; |
|---|
| 414 | 395 | #define TRASH_BUCKET_SIZE 0x20000 |
|---|
| 415 | 396 | void *dma_pool; |
|---|
| 416 | | - struct mvs_slot_info slot_info[0]; |
|---|
| 397 | + struct mvs_slot_info slot_info[]; |
|---|
| 417 | 398 | }; |
|---|
| 418 | 399 | |
|---|
| 419 | 400 | struct mvs_prv_info{ |
|---|