| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Aic94xx SAS/SATA driver header file. |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2005 Adaptec, Inc. All rights reserved. |
|---|
| 5 | 6 | * Copyright (C) 2005 Luben Tuikov <luben_tuikov@adaptec.com> |
|---|
| 6 | | - * |
|---|
| 7 | | - * This file is licensed under GPLv2. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This file is part of the aic94xx driver. |
|---|
| 10 | | - * |
|---|
| 11 | | - * The aic94xx driver is free software; you can redistribute it and/or |
|---|
| 12 | | - * modify it under the terms of the GNU General Public License as |
|---|
| 13 | | - * published by the Free Software Foundation; version 2 of the |
|---|
| 14 | | - * License. |
|---|
| 15 | | - * |
|---|
| 16 | | - * The aic94xx driver is distributed in the hope that it will be useful, |
|---|
| 17 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 18 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 19 | | - * General Public License for more details. |
|---|
| 20 | | - * |
|---|
| 21 | | - * You should have received a copy of the GNU General Public License |
|---|
| 22 | | - * along with the aic94xx driver; if not, write to the Free Software |
|---|
| 23 | | - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
|---|
| 24 | 7 | * |
|---|
| 25 | 8 | * $Id: //depot/aic94xx/aic94xx.h#31 $ |
|---|
| 26 | 9 | */ |
|---|
| .. | .. |
|---|
| 58 | 41 | |
|---|
| 59 | 42 | extern struct kmem_cache *asd_dma_token_cache; |
|---|
| 60 | 43 | extern struct kmem_cache *asd_ascb_cache; |
|---|
| 61 | | - |
|---|
| 62 | | -static inline void asd_stringify_sas_addr(char *p, const u8 *sas_addr) |
|---|
| 63 | | -{ |
|---|
| 64 | | - int i; |
|---|
| 65 | | - for (i = 0; i < SAS_ADDR_SIZE; i++, p += 2) |
|---|
| 66 | | - snprintf(p, 3, "%02X", sas_addr[i]); |
|---|
| 67 | | - *p = '\0'; |
|---|
| 68 | | -} |
|---|
| 69 | 44 | |
|---|
| 70 | 45 | struct asd_ha_struct; |
|---|
| 71 | 46 | struct asd_ascb; |
|---|