diff options
author | James Bottomley <James.Bottomley@SteelEye.com> | 2006-08-29 10:22:51 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-08-29 10:52:29 -0400 |
commit | 2908d778ab3e244900c310974e1fc1c69066e450 (patch) | |
tree | 440d56e98414cd2a8ca711dcd6424df1982d474e /drivers/scsi/aic94xx/aic94xx_seq.h | |
parent | f4ad7b5807385ad1fed0347d966e51a797cd1013 (diff) |
[SCSI] aic94xx: new driver
This is the end point of the separate aic94xx driver based on the
original driver and transport class from Luben Tuikov
<ltuikov@yahoo.com>
The log of the separate development is:
Alexis Bruemmer:
o aic94xx: fix hotplug/unplug for expanderless systems
o aic94xx: disable split completion timer/setting by default
o aic94xx: wide port off expander support
o aic94xx: remove various inline functions
o aic94xx: use bitops
o aic94xx: remove queue comment
o aic94xx: remove sas_common.c
o aic94xx: sas remove depot's
o aic94xx: use available list_for_each_entry_safe_reverse()
o aic94xx: sas header file merge
James Bottomley:
o aic94xx: fix TF_TMF_NO_CTX processing
o aic94xx: convert to request_firmware interface
o aic94xx: fix hotplug/unplug
o aic94xx: add link error counts to the expander phys
o aic94xx: add transport class phy reset capability
o aic94xx: remove local_attached flag
o Remove README
o Fixup Makefile variable for libsas rename
o Rename sas->libsas
o aic94xx: correct return code for sas_discover_event
o aic94xx: use parent backlink port
o aic94xx: remove channel abstraction
o aic94xx: fix routing algorithms
o aic94xx: add backlink port
o aic94xx: fix cascaded expander properties
o aic94xx: fix sleep under lock
o aic94xx: fix panic on module removal in complex topology
o aic94xx: make use of the new sas_port
o rename sas_port to asd_sas_port
o Fix for eh_strategy_handler move
o aic94xx: move entirely over to correct transport class formulation
o remove last vestages of sas_rphy_alloc()
o update for eh_timed_out move
o Preliminary expander support for aic94xx
o sas: remove event thread
o minor warning cleanups
o remove last vestiges of id mapping arrays
o Further updates
o Convert aic94xx over entirely to the transport class end device and
o update aic94xx/sas to use the new sas transport class end device
o [PATCH] aic94xx: attaching to the sas transport class
o Add missing completion removal from prior patch
o [PATCH] aic94xx: attaching to the sas transport class
o Build fixes from akpm
Jeff Garzik:
o [scsi aic94xx] Remove ->owner from PCI info table
Luben Tuikov:
o initial aic94xx driver
Mike Anderson:
o aic94xx: fix panic on module insertion
o aic94xx: stub out SATA_DEV case
o aic94xx: compile warning cleanups
o aic94xx: sas_alloc_task
o aic94xx: ref count update
o aic94xx nexus loss time value
o [PATCH] aic94xx: driver assertion in non-x86 BIOS env
Randy Dunlap:
o libsas: externs not needed
Robert Tarte:
o aic94xx: sequence patch - fixes SATA support
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aic94xx/aic94xx_seq.h')
-rw-r--r-- | drivers/scsi/aic94xx/aic94xx_seq.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/drivers/scsi/aic94xx/aic94xx_seq.h b/drivers/scsi/aic94xx/aic94xx_seq.h new file mode 100644 index 000000000000..42281c36153b --- /dev/null +++ b/drivers/scsi/aic94xx/aic94xx_seq.h | |||
@@ -0,0 +1,70 @@ | |||
1 | /* | ||
2 | * Aic94xx SAS/SATA driver sequencer interface header file. | ||
3 | * | ||
4 | * Copyright (C) 2005 Adaptec, Inc. All rights reserved. | ||
5 | * 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 | * | ||
25 | */ | ||
26 | |||
27 | #ifndef _AIC94XX_SEQ_H_ | ||
28 | #define _AIC94XX_SEQ_H_ | ||
29 | |||
30 | #define CSEQ_NUM_VECS 3 | ||
31 | #define LSEQ_NUM_VECS 11 | ||
32 | |||
33 | #define SAS_RAZOR_SEQUENCER_FW_FILE "aic94xx-seq.fw" | ||
34 | |||
35 | /* Note: All quantites in the sequencer file are little endian */ | ||
36 | struct sequencer_file_header { | ||
37 | /* Checksum of the entire contents of the sequencer excluding | ||
38 | * these four bytes */ | ||
39 | u32 csum; | ||
40 | /* numeric major version */ | ||
41 | u32 major; | ||
42 | /* numeric minor version */ | ||
43 | u32 minor; | ||
44 | /* version string printed by driver */ | ||
45 | char version[16]; | ||
46 | u32 cseq_table_offset; | ||
47 | u32 cseq_table_size; | ||
48 | u32 lseq_table_offset; | ||
49 | u32 lseq_table_size; | ||
50 | u32 cseq_code_offset; | ||
51 | u32 cseq_code_size; | ||
52 | u32 lseq_code_offset; | ||
53 | u32 lseq_code_size; | ||
54 | u16 mode2_task; | ||
55 | u16 cseq_idle_loop; | ||
56 | u16 lseq_idle_loop; | ||
57 | } __attribute__((packed)); | ||
58 | |||
59 | #ifdef __KERNEL__ | ||
60 | int asd_pause_cseq(struct asd_ha_struct *asd_ha); | ||
61 | int asd_unpause_cseq(struct asd_ha_struct *asd_ha); | ||
62 | int asd_pause_lseq(struct asd_ha_struct *asd_ha, u8 lseq_mask); | ||
63 | int asd_unpause_lseq(struct asd_ha_struct *asd_ha, u8 lseq_mask); | ||
64 | int asd_init_seqs(struct asd_ha_struct *asd_ha); | ||
65 | int asd_start_seqs(struct asd_ha_struct *asd_ha); | ||
66 | |||
67 | void asd_update_port_links(struct asd_sas_phy *phy); | ||
68 | #endif | ||
69 | |||
70 | #endif | ||