Commit 67838a18 authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Christoph Hellwig

[PATCH] sym2 2.1.18k

2.1.18k:
 - Relicence from dual BSD/GPL to pure GPL
 - Add my copyright to various files
 - Remove unnecessary MDELAY calls after printfs
 - Rename remaining MDELAY() to mdelay(), delete MDELAY and sym_mdelay
   macros
 - Restructure PCI initialisation to not disable chips that are part
   of Mylex RAID cards.
 - Make SYM_OPT_NVRAM_PRE_READ non-optional.
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 14cda393
...@@ -22,32 +22,19 @@ ...@@ -22,32 +22,19 @@
* *
*----------------------------------------------------------------------------- *-----------------------------------------------------------------------------
* *
* Redistribution and use in source and binary forms, with or without * This program is free software; you can redistribute it and/or modify
* modification, are permitted provided that the following conditions * it under the terms of the GNU General Public License as published by
* are met: * the Free Software Foundation; either version 2 of the License, or
* 1. Redistributions of source code must retain the above copyright * (at your option) any later version.
* notice, this list of conditions and the following disclaimer.
* 2. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
* *
* Where this Software is combined with software released under the terms of * This program is distributed in the hope that it will be useful,
* the GNU Public License ("GPL") and the terms of the GPL would require the * but WITHOUT ANY WARRANTY; without even the implied warranty of
* combined work to also be released under the terms of the GPL, the terms * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* and conditions of this License will apply in addition to those of the * GNU General Public License for more details.
* GPL with the exception of any terms or conditions of this License that
* conflict with, or are expressly prohibited by, the GPL.
* *
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND * You should have received a copy of the GNU General Public License
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * along with this program; if not, write to the Free Software
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/ */
#ifndef SYM53C8XX_H #ifndef SYM53C8XX_H
......
...@@ -22,32 +22,19 @@ ...@@ -22,32 +22,19 @@
* *
*----------------------------------------------------------------------------- *-----------------------------------------------------------------------------
* *
* Redistribution and use in source and binary forms, with or without * This program is free software; you can redistribute it and/or modify
* modification, are permitted provided that the following conditions * it under the terms of the GNU General Public License as published by
* are met: * the Free Software Foundation; either version 2 of the License, or
* 1. Redistributions of source code must retain the above copyright * (at your option) any later version.
* notice, this list of conditions and the following disclaimer.
* 2. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
* *
* Where this Software is combined with software released under the terms of * This program is distributed in the hope that it will be useful,
* the GNU Public License ("GPL") and the terms of the GPL would require the * but WITHOUT ANY WARRANTY; without even the implied warranty of
* combined work to also be released under the terms of the GPL, the terms * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* and conditions of this License will apply in addition to those of the * GNU General Public License for more details.
* GPL with the exception of any terms or conditions of this License that
* conflict with, or are expressly prohibited by, the GPL.
* *
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND * You should have received a copy of the GNU General Public License
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * along with this program; if not, write to the Free Software
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/ */
#ifndef SYM_CONF_H #ifndef SYM_CONF_H
......
...@@ -22,38 +22,25 @@ ...@@ -22,38 +22,25 @@
* *
*----------------------------------------------------------------------------- *-----------------------------------------------------------------------------
* *
* Redistribution and use in source and binary forms, with or without * This program is free software; you can redistribute it and/or modify
* modification, are permitted provided that the following conditions * it under the terms of the GNU General Public License as published by
* are met: * the Free Software Foundation; either version 2 of the License, or
* 1. Redistributions of source code must retain the above copyright * (at your option) any later version.
* notice, this list of conditions and the following disclaimer. *
* 2. The name of the author may not be used to endorse or promote products * This program is distributed in the hope that it will be useful,
* derived from this software without specific prior written permission. * but WITHOUT ANY WARRANTY; without even the implied warranty of
* * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Where this Software is combined with software released under the terms of * GNU General Public License for more details.
* the GNU Public License ("GPL") and the terms of the GPL would require the *
* combined work to also be released under the terms of the GPL, the terms * You should have received a copy of the GNU General Public License
* and conditions of this License will apply in addition to those of the * along with this program; if not, write to the Free Software
* GPL with the exception of any terms or conditions of this License that * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* conflict with, or are expressly prohibited by, the GPL.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/ */
#ifndef SYM_DEFS_H #ifndef SYM_DEFS_H
#define SYM_DEFS_H #define SYM_DEFS_H
#define SYM_VERSION "2.1.18j" #define SYM_VERSION "2.1.18k"
#define SYM_DRIVER_NAME "sym-" SYM_VERSION #define SYM_DRIVER_NAME "sym-" SYM_VERSION
/* /*
......
...@@ -22,32 +22,19 @@ ...@@ -22,32 +22,19 @@
* *
*----------------------------------------------------------------------------- *-----------------------------------------------------------------------------
* *
* Redistribution and use in source and binary forms, with or without * This program is free software; you can redistribute it and/or modify
* modification, are permitted provided that the following conditions * it under the terms of the GNU General Public License as published by
* are met: * the Free Software Foundation; either version 2 of the License, or
* 1. Redistributions of source code must retain the above copyright * (at your option) any later version.
* notice, this list of conditions and the following disclaimer.
* 2. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
* *
* Where this Software is combined with software released under the terms of * This program is distributed in the hope that it will be useful,
* the GNU Public License ("GPL") and the terms of the GPL would require the * but WITHOUT ANY WARRANTY; without even the implied warranty of
* combined work to also be released under the terms of the GPL, the terms * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* and conditions of this License will apply in addition to those of the * GNU General Public License for more details.
* GPL with the exception of any terms or conditions of this License that
* conflict with, or are expressly prohibited by, the GPL.
* *
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND * You should have received a copy of the GNU General Public License
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * along with this program; if not, write to the Free Software
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/ */
#ifdef __FreeBSD__ #ifdef __FreeBSD__
...@@ -411,7 +398,6 @@ void sym_fw_bind_script(struct sym_hcb *np, u32 *start, int len) ...@@ -411,7 +398,6 @@ void sym_fw_bind_script(struct sym_hcb *np, u32 *start, int len)
if (opcode == 0) { if (opcode == 0) {
printf ("%s: ERROR0 IN SCRIPT at %d.\n", printf ("%s: ERROR0 IN SCRIPT at %d.\n",
sym_name(np), (int) (cur-start)); sym_name(np), (int) (cur-start));
MDELAY (10000);
++cur; ++cur;
continue; continue;
}; };
...@@ -455,7 +441,6 @@ void sym_fw_bind_script(struct sym_hcb *np, u32 *start, int len) ...@@ -455,7 +441,6 @@ void sym_fw_bind_script(struct sym_hcb *np, u32 *start, int len)
if ((tmp1 ^ tmp2) & 3) { if ((tmp1 ^ tmp2) & 3) {
printf ("%s: ERROR1 IN SCRIPT at %d.\n", printf ("%s: ERROR1 IN SCRIPT at %d.\n",
sym_name(np), (int) (cur-start)); sym_name(np), (int) (cur-start));
MDELAY (10000);
} }
/* /*
* If PREFETCH feature not enabled, remove * If PREFETCH feature not enabled, remove
......
...@@ -22,32 +22,19 @@ ...@@ -22,32 +22,19 @@
* *
*----------------------------------------------------------------------------- *-----------------------------------------------------------------------------
* *
* Redistribution and use in source and binary forms, with or without * This program is free software; you can redistribute it and/or modify
* modification, are permitted provided that the following conditions * it under the terms of the GNU General Public License as published by
* are met: * the Free Software Foundation; either version 2 of the License, or
* 1. Redistributions of source code must retain the above copyright * (at your option) any later version.
* notice, this list of conditions and the following disclaimer.
* 2. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
* *
* Where this Software is combined with software released under the terms of * This program is distributed in the hope that it will be useful,
* the GNU Public License ("GPL") and the terms of the GPL would require the * but WITHOUT ANY WARRANTY; without even the implied warranty of
* combined work to also be released under the terms of the GPL, the terms * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* and conditions of this License will apply in addition to those of the * GNU General Public License for more details.
* GPL with the exception of any terms or conditions of this License that
* conflict with, or are expressly prohibited by, the GPL.
* *
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND * You should have received a copy of the GNU General Public License
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * along with this program; if not, write to the Free Software
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/ */
#ifndef SYM_FW_H #ifndef SYM_FW_H
......
...@@ -22,32 +22,19 @@ ...@@ -22,32 +22,19 @@
* *
*----------------------------------------------------------------------------- *-----------------------------------------------------------------------------
* *
* Redistribution and use in source and binary forms, with or without * This program is free software; you can redistribute it and/or modify
* modification, are permitted provided that the following conditions * it under the terms of the GNU General Public License as published by
* are met: * the Free Software Foundation; either version 2 of the License, or
* 1. Redistributions of source code must retain the above copyright * (at your option) any later version.
* notice, this list of conditions and the following disclaimer.
* 2. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
* *
* Where this Software is combined with software released under the terms of * This program is distributed in the hope that it will be useful,
* the GNU Public License ("GPL") and the terms of the GPL would require the * but WITHOUT ANY WARRANTY; without even the implied warranty of
* combined work to also be released under the terms of the GPL, the terms * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* and conditions of this License will apply in addition to those of the * GNU General Public License for more details.
* GPL with the exception of any terms or conditions of this License that
* conflict with, or are expressly prohibited by, the GPL.
* *
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND * You should have received a copy of the GNU General Public License
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * along with this program; if not, write to the Free Software
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/ */
/* /*
......
...@@ -22,32 +22,19 @@ ...@@ -22,32 +22,19 @@
* *
*----------------------------------------------------------------------------- *-----------------------------------------------------------------------------
* *
* Redistribution and use in source and binary forms, with or without * This program is free software; you can redistribute it and/or modify
* modification, are permitted provided that the following conditions * it under the terms of the GNU General Public License as published by
* are met: * the Free Software Foundation; either version 2 of the License, or
* 1. Redistributions of source code must retain the above copyright * (at your option) any later version.
* notice, this list of conditions and the following disclaimer.
* 2. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
* *
* Where this Software is combined with software released under the terms of * This program is distributed in the hope that it will be useful,
* the GNU Public License ("GPL") and the terms of the GPL would require the * but WITHOUT ANY WARRANTY; without even the implied warranty of
* combined work to also be released under the terms of the GPL, the terms * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* and conditions of this License will apply in addition to those of the * GNU General Public License for more details.
* GPL with the exception of any terms or conditions of this License that
* conflict with, or are expressly prohibited by, the GPL.
* *
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND * You should have received a copy of the GNU General Public License
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * along with this program; if not, write to the Free Software
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/ */
/* /*
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
* of PCI-SCSI IO processors. * of PCI-SCSI IO processors.
* *
* Copyright (C) 1999-2001 Gerard Roudier <groudier@free.fr> * Copyright (C) 1999-2001 Gerard Roudier <groudier@free.fr>
* Copyright (c) 2003-2004 Matthew Wilcox <matthew@wil.cx>
* *
* This driver is derived from the Linux sym53c8xx driver. * This driver is derived from the Linux sym53c8xx driver.
* Copyright (C) 1998-2000 Gerard Roudier * Copyright (C) 1998-2000 Gerard Roudier
...@@ -22,32 +23,19 @@ ...@@ -22,32 +23,19 @@
* *
*----------------------------------------------------------------------------- *-----------------------------------------------------------------------------
* *
* Redistribution and use in source and binary forms, with or without * This program is free software; you can redistribute it and/or modify
* modification, are permitted provided that the following conditions * it under the terms of the GNU General Public License as published by
* are met: * the Free Software Foundation; either version 2 of the License, or
* 1. Redistributions of source code must retain the above copyright * (at your option) any later version.
* notice, this list of conditions and the following disclaimer.
* 2. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
* *
* Where this Software is combined with software released under the terms of * This program is distributed in the hope that it will be useful,
* the GNU Public License ("GPL") and the terms of the GPL would require the * but WITHOUT ANY WARRANTY; without even the implied warranty of
* combined work to also be released under the terms of the GPL, the terms * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* and conditions of this License will apply in addition to those of the * GNU General Public License for more details.
* GPL with the exception of any terms or conditions of this License that
* conflict with, or are expressly prohibited by, the GPL.
* *
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND * You should have received a copy of the GNU General Public License
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * along with this program; if not, write to the Free Software
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/ */
#define SYM_GLUE_C #define SYM_GLUE_C
...@@ -573,7 +561,6 @@ int sym_setup_data_and_start(struct sym_hcb *np, struct scsi_cmnd *csio, struct ...@@ -573,7 +561,6 @@ int sym_setup_data_and_start(struct sym_hcb *np, struct scsi_cmnd *csio, struct
switch (cp->cdb_buf[0]) { switch (cp->cdb_buf[0]) {
case 0x0A: case 0x2A: case 0xAA: case 0x0A: case 0x2A: case 0xAA:
panic("XXXXXXXXXXXXX WRITE NOT YET ALLOWED XXXXXXXXXXXXXX\n"); panic("XXXXXXXXXXXXX WRITE NOT YET ALLOWED XXXXXXXXXXXXXX\n");
MDELAY(10000);
break; break;
default: default:
break; break;
...@@ -1979,39 +1966,14 @@ int __init sym53c8xx_setup(char *str) ...@@ -1979,39 +1966,14 @@ int __init sym53c8xx_setup(char *str)
__setup("sym53c8xx=", sym53c8xx_setup); __setup("sym53c8xx=", sym53c8xx_setup);
#endif #endif
/* static int __devinit sym_check_supported(struct sym_device *device)
* Read and check the PCI configuration for any detected NCR
* boards and save data for attaching after all boards have
* been detected.
*/
static int __devinit
sym53c8xx_pci_init(struct pci_dev *pdev, struct sym_device *device)
{ {
struct sym_pci_chip *chip; struct sym_pci_chip *chip;
u_long base, base_2; struct pci_dev *pdev = device->pdev;
u_long base_c, base_2_c, io_port;
int i;
u_short device_id, status_reg;
u_char revision; u_char revision;
unsigned long io_port = device->s.io_port;
/* Choose some short name for this device */ unsigned long base = device->s.base;
sprintf(device->s.inst_name, "sym.%d.%d.%d", pdev->bus->number, int i;
PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn));
device_id = pdev->device;
io_port = pdev->resource[0].start;
base_c = pdev->resource[1].start;
i = pci_get_base_address(pdev, 1, &base);
base_2_c = pdev->resource[i].start;
pci_get_base_address(pdev, i, &base_2);
base &= PCI_BASE_ADDRESS_MEM_MASK;
base_2 &= PCI_BASE_ADDRESS_MEM_MASK;
pci_read_config_byte(pdev, PCI_CLASS_REVISION, &revision);
/* /*
* If user excluded this chip, do not initialize it. * If user excluded this chip, do not initialize it.
...@@ -2019,17 +1981,8 @@ sym53c8xx_pci_init(struct pci_dev *pdev, struct sym_device *device) ...@@ -2019,17 +1981,8 @@ sym53c8xx_pci_init(struct pci_dev *pdev, struct sym_device *device)
if (io_port) { if (io_port) {
for (i = 0 ; i < 8 ; i++) { for (i = 0 ; i < 8 ; i++) {
if (sym_driver_setup.excludes[i] == io_port) if (sym_driver_setup.excludes[i] == io_port)
return -1; return -ENODEV;
}
} }
/*
* Check if the chip is supported.
*/
chip = sym_lookup_pci_chip_table(device_id, revision);
if (!chip) {
printf_info("%s: device not supported\n", sym_name(device));
return -1;
} }
/* /*
...@@ -2040,66 +1993,84 @@ sym53c8xx_pci_init(struct pci_dev *pdev, struct sym_device *device) ...@@ -2040,66 +1993,84 @@ sym53c8xx_pci_init(struct pci_dev *pdev, struct sym_device *device)
if (!io_port) { if (!io_port) {
printf_info("%s: IO base address disabled.\n", printf_info("%s: IO base address disabled.\n",
sym_name(device)); sym_name(device));
return -1; return -ENODEV;
} }
#else #else
if (!base) { if (!base) {
printf_info("%s: MMIO base address disabled.\n", printf_info("%s: MMIO base address disabled.\n",
sym_name(device)); sym_name(device));
return -1; return -ENODEV;
} }
#endif #endif
/* /*
* Check if the chip is supported. Then copy the chip description
* to our device structure so we can make it match the actual device
* and options.
*/
pci_read_config_byte(pdev, PCI_CLASS_REVISION, &revision);
chip = sym_lookup_pci_chip_table(pdev->device, revision);
if (!chip) {
printf_info("%s: device not supported\n", sym_name(device));
return -ENODEV;
}
memcpy(&device->chip, chip, sizeof(device->chip));
device->chip.revision_id = revision;
return 0;
}
/*
* Ignore Symbios chips controlled by various RAID controllers. * Ignore Symbios chips controlled by various RAID controllers.
* These controllers set value 0x52414944 at RAM end - 16. * These controllers set value 0x52414944 at RAM end - 16.
*/ */
#if defined(__i386__) static int __devinit sym_check_raid(struct sym_device *device)
if (base_2_c) { {
unsigned long base_2_c = device->s.base_2_c;
unsigned int ram_size, ram_val; unsigned int ram_size, ram_val;
void *ram_ptr; void *ram_ptr;
if (chip->features & FE_RAM8K) if (!base_2_c)
return 0;
if (device->chip.features & FE_RAM8K)
ram_size = 8192; ram_size = 8192;
else else
ram_size = 4096; ram_size = 4096;
ram_ptr = ioremap(base_2_c, ram_size); ram_ptr = ioremap(base_2_c, ram_size);
if (ram_ptr) { if (!ram_ptr)
ram_val = readl_raw(ram_ptr + ram_size - 16); return 0;
ram_val = readl(ram_ptr + ram_size - 16);
iounmap(ram_ptr); iounmap(ram_ptr);
if (ram_val == 0x52414944) { if (ram_val != 0x52414944)
printf_info("%s: not initializing, " return 0;
"driven by RAID controller.\n",
printf_info("%s: not initializing, driven by RAID controller.\n",
sym_name(device)); sym_name(device));
return -1; return -ENODEV;
} }
}
}
#endif /* i386 and PCI MEMORY accessible */
/* static int __devinit sym_set_workarounds(struct sym_device *device)
* Copy the chip description to our device structure, {
* so we can make it match the actual device and options. struct sym_pci_chip *chip = &device->chip;
*/ struct pci_dev *pdev = device->pdev;
memcpy(&device->chip, chip, sizeof(device->chip)); u_short status_reg;
device->chip.revision_id = revision;
/* /*
* Some features are required to be enabled in order to
* work around some chip problems. :) ;)
* (ITEM 12 of a DEL about the 896 I haven't yet). * (ITEM 12 of a DEL about the 896 I haven't yet).
* We must ensure the chip will use WRITE AND INVALIDATE. * We must ensure the chip will use WRITE AND INVALIDATE.
* The revision number limit is for now arbitrary. * The revision number limit is for now arbitrary.
*/ */
if (device_id == PCI_DEVICE_ID_NCR_53C896 && revision < 0x4) { if (pdev->device == PCI_DEVICE_ID_NCR_53C896 && chip->revision_id < 0x4) {
chip->features |= (FE_WRIE | FE_CLSE); chip->features |= (FE_WRIE | FE_CLSE);
} }
/* If the chip can do Memory Write Invalidate, enable it */ /* If the chip can do Memory Write Invalidate, enable it */
if (chip->features & FE_WRIE) { if (chip->features & FE_WRIE) {
if (pci_set_mwi(pdev)) if (pci_set_mwi(pdev))
return -1; return -ENODEV;
} }
/* /*
...@@ -2125,18 +2096,36 @@ sym53c8xx_pci_init(struct pci_dev *pdev, struct sym_device *device) ...@@ -2125,18 +2096,36 @@ sym53c8xx_pci_init(struct pci_dev *pdev, struct sym_device *device)
} }
} }
/* return 0;
* Initialise device structure with items required by sym_attach. }
/*
* Read and check the PCI configuration for any detected NCR
* boards and save data for attaching after all boards have
* been detected.
*/ */
static void __devinit
sym_init_device(struct pci_dev *pdev, struct sym_device *device)
{
unsigned long base, base_2;
int i;
device->pdev = pdev; device->pdev = pdev;
device->s.base = base;
device->s.base_2 = base_2;
device->s.base_c = base_c;
device->s.base_2_c = base_2_c;
device->s.io_port = io_port;
device->s.irq = pdev->irq; device->s.irq = pdev->irq;
return 0; /* Choose some short name for this device */
sprintf(device->s.inst_name, "sym.%d.%d.%d", pdev->bus->number,
PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn));
device->s.io_port = pdev->resource[0].start;
device->s.base_c = pdev->resource[1].start;
i = pci_get_base_address(pdev, 1, &base);
device->s.base = base & PCI_BASE_ADDRESS_MEM_MASK;
device->s.base_2_c = pdev->resource[i].start;
pci_get_base_address(pdev, i, &base_2);
device->s.base_2 = base_2 & PCI_BASE_ADDRESS_MEM_MASK;
} }
/* /*
...@@ -2215,7 +2204,7 @@ static int sym_detach(struct sym_hcb *np) ...@@ -2215,7 +2204,7 @@ static int sym_detach(struct sym_hcb *np)
return 1; return 1;
} }
MODULE_LICENSE("Dual BSD/GPL"); MODULE_LICENSE("GPL");
MODULE_VERSION(SYM_VERSION); MODULE_VERSION(SYM_VERSION);
/* /*
...@@ -2252,7 +2241,7 @@ static int __devinit sym2_probe(struct pci_dev *pdev, ...@@ -2252,7 +2241,7 @@ static int __devinit sym2_probe(struct pci_dev *pdev,
memset(&nvram, 0, sizeof(nvram)); memset(&nvram, 0, sizeof(nvram));
if (pci_enable_device(pdev)) if (pci_enable_device(pdev))
return -ENODEV; goto leave;
pci_set_master(pdev); pci_set_master(pdev);
...@@ -2260,7 +2249,15 @@ static int __devinit sym2_probe(struct pci_dev *pdev, ...@@ -2260,7 +2249,15 @@ static int __devinit sym2_probe(struct pci_dev *pdev,
goto disable; goto disable;
sym_dev.host_id = SYM_SETUP_HOST_ID; sym_dev.host_id = SYM_SETUP_HOST_ID;
if (sym53c8xx_pci_init(pdev, &sym_dev))
sym_init_device(pdev, &sym_dev);
if (sym_check_supported(&sym_dev))
goto free;
if (sym_check_raid(&sym_dev))
goto leave; /* Don't disable the device */
if (sym_set_workarounds(&sym_dev))
goto free; goto free;
sym_config_pqs(pdev, &sym_dev); sym_config_pqs(pdev, &sym_dev);
...@@ -2285,6 +2282,7 @@ static int __devinit sym2_probe(struct pci_dev *pdev, ...@@ -2285,6 +2282,7 @@ static int __devinit sym2_probe(struct pci_dev *pdev,
pci_release_regions(pdev); pci_release_regions(pdev);
disable: disable:
pci_disable_device(pdev); pci_disable_device(pdev);
leave:
return -ENODEV; return -ENODEV;
} }
......
...@@ -22,32 +22,19 @@ ...@@ -22,32 +22,19 @@
* *
*----------------------------------------------------------------------------- *-----------------------------------------------------------------------------
* *
* Redistribution and use in source and binary forms, with or without * This program is free software; you can redistribute it and/or modify
* modification, are permitted provided that the following conditions * it under the terms of the GNU General Public License as published by
* are met: * the Free Software Foundation; either version 2 of the License, or
* 1. Redistributions of source code must retain the above copyright * (at your option) any later version.
* notice, this list of conditions and the following disclaimer.
* 2. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
* *
* Where this Software is combined with software released under the terms of * This program is distributed in the hope that it will be useful,
* the GNU Public License ("GPL") and the terms of the GPL would require the * but WITHOUT ANY WARRANTY; without even the implied warranty of
* combined work to also be released under the terms of the GPL, the terms * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* and conditions of this License will apply in addition to those of the * GNU General Public License for more details.
* GPL with the exception of any terms or conditions of this License that
* conflict with, or are expressly prohibited by, the GPL.
* *
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND * You should have received a copy of the GNU General Public License
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * along with this program; if not, write to the Free Software
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/ */
#ifndef SYM_GLUE_H #ifndef SYM_GLUE_H
...@@ -89,7 +76,6 @@ ...@@ -89,7 +76,6 @@
#define SYM_OPT_HANDLE_DIR_UNKNOWN #define SYM_OPT_HANDLE_DIR_UNKNOWN
#define SYM_OPT_HANDLE_DEVICE_QUEUEING #define SYM_OPT_HANDLE_DEVICE_QUEUEING
#define SYM_OPT_NVRAM_PRE_READ
#define SYM_OPT_LIMIT_COMMAND_REORDERING #define SYM_OPT_LIMIT_COMMAND_REORDERING
#define SYM_OPT_ANNOUNCE_TRANSFER_RATE #define SYM_OPT_ANNOUNCE_TRANSFER_RATE
...@@ -107,10 +93,9 @@ ...@@ -107,10 +93,9 @@
#define printf(args...) printk(args) #define printf(args...) printk(args)
/* /*
* Insert a delay in micro-seconds and milli-seconds. * Insert a delay in micro-seconds
*/ */
#define sym_udelay(us) udelay(us) #define sym_udelay(us) udelay(us)
#define sym_mdelay(ms) mdelay(ms)
/* /*
* A 'read barrier' flushes any data that have been prefetched * A 'read barrier' flushes any data that have been prefetched
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
* of PCI-SCSI IO processors. * of PCI-SCSI IO processors.
* *
* Copyright (C) 1999-2001 Gerard Roudier <groudier@free.fr> * Copyright (C) 1999-2001 Gerard Roudier <groudier@free.fr>
* Copyright (c) 2003-2004 Matthew Wilcox <matthew@wil.cx>
* *
* This driver is derived from the Linux sym53c8xx driver. * This driver is derived from the Linux sym53c8xx driver.
* Copyright (C) 1998-2000 Gerard Roudier * Copyright (C) 1998-2000 Gerard Roudier
...@@ -22,32 +23,19 @@ ...@@ -22,32 +23,19 @@
* *
*----------------------------------------------------------------------------- *-----------------------------------------------------------------------------
* *
* Redistribution and use in source and binary forms, with or without * This program is free software; you can redistribute it and/or modify
* modification, are permitted provided that the following conditions * it under the terms of the GNU General Public License as published by
* are met: * the Free Software Foundation; either version 2 of the License, or
* 1. Redistributions of source code must retain the above copyright * (at your option) any later version.
* notice, this list of conditions and the following disclaimer.
* 2. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
* *
* Where this Software is combined with software released under the terms of * This program is distributed in the hope that it will be useful,
* the GNU Public License ("GPL") and the terms of the GPL would require the * but WITHOUT ANY WARRANTY; without even the implied warranty of
* combined work to also be released under the terms of the GPL, the terms * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* and conditions of this License will apply in addition to those of the * GNU General Public License for more details.
* GPL with the exception of any terms or conditions of this License that
* conflict with, or are expressly prohibited by, the GPL.
* *
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND * You should have received a copy of the GNU General Public License
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * along with this program; if not, write to the Free Software
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/ */
#include "sym_glue.h" #include "sym_glue.h"
#include "sym_nvram.h" #include "sym_nvram.h"
...@@ -299,7 +287,6 @@ int sym_reset_scsi_bus(hcb_p np, int enab_int) ...@@ -299,7 +287,6 @@ int sym_reset_scsi_bus(hcb_p np, int enab_int)
} }
out: out:
OUTB (nc_scntl1, 0); OUTB (nc_scntl1, 0);
/* MDELAY(100); */
return retv; return retv;
} }
...@@ -1955,7 +1942,7 @@ void sym_start_up (hcb_p np, int reason) ...@@ -1955,7 +1942,7 @@ void sym_start_up (hcb_p np, int reason)
if (np->features & (FE_ULTRA2|FE_ULTRA3)) { if (np->features & (FE_ULTRA2|FE_ULTRA3)) {
OUTONW (nc_sien, SBMC); OUTONW (nc_sien, SBMC);
if (reason == 0) { if (reason == 0) {
MDELAY(100); mdelay(100);
INW (nc_sist); INW (nc_sist);
} }
np->scsi_mode = INB (nc_stest4) & SMODE; np->scsi_mode = INB (nc_stest4) & SMODE;
...@@ -5518,7 +5505,6 @@ void sym_complete_error (hcb_p np, ccb_p cp) ...@@ -5518,7 +5505,6 @@ void sym_complete_error (hcb_p np, ccb_p cp)
printf ("CCB=%lx STAT=%x/%x/%x DEV=%d/%d\n", (unsigned long)cp, printf ("CCB=%lx STAT=%x/%x/%x DEV=%d/%d\n", (unsigned long)cp,
cp->host_status, cp->ssss_status, cp->host_flags, cp->host_status, cp->ssss_status, cp->host_flags,
cp->target, cp->lun); cp->target, cp->lun);
MDELAY(100);
} }
/* /*
...@@ -5746,15 +5732,8 @@ if (resid) ...@@ -5746,15 +5732,8 @@ if (resid)
/* /*
* Soft-attach the controller. * Soft-attach the controller.
*/ */
#ifdef SYM_OPT_NVRAM_PRE_READ
int sym_hcb_attach(hcb_p np, struct sym_fw *fw, struct sym_nvram *nvram) int sym_hcb_attach(hcb_p np, struct sym_fw *fw, struct sym_nvram *nvram)
#else
int sym_hcb_attach(hcb_p np, struct sym_fw *fw)
#endif
{ {
#ifndef SYM_OPT_NVRAM_PRE_READ
struct sym_nvram nvram_buf, *nvram = &nvram_buf;
#endif
int i; int i;
/* /*
...@@ -5780,13 +5759,6 @@ int sym_hcb_attach(hcb_p np, struct sym_fw *fw) ...@@ -5780,13 +5759,6 @@ int sym_hcb_attach(hcb_p np, struct sym_fw *fw)
*/ */
sym_chip_reset (np); sym_chip_reset (np);
/*
* Try to read the user set-up.
*/
#ifndef SYM_OPT_NVRAM_PRE_READ
(void) sym_read_nvram(np, nvram);
#endif
/* /*
* Prepare controller and devices settings, according * Prepare controller and devices settings, according
* to chip features, user set-up and driver set-up. * to chip features, user set-up and driver set-up.
......
...@@ -22,32 +22,19 @@ ...@@ -22,32 +22,19 @@
* *
*----------------------------------------------------------------------------- *-----------------------------------------------------------------------------
* *
* Redistribution and use in source and binary forms, with or without * This program is free software; you can redistribute it and/or modify
* modification, are permitted provided that the following conditions * it under the terms of the GNU General Public License as published by
* are met: * the Free Software Foundation; either version 2 of the License, or
* 1. Redistributions of source code must retain the above copyright * (at your option) any later version.
* notice, this list of conditions and the following disclaimer.
* 2. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
* *
* Where this Software is combined with software released under the terms of * This program is distributed in the hope that it will be useful,
* the GNU Public License ("GPL") and the terms of the GPL would require the * but WITHOUT ANY WARRANTY; without even the implied warranty of
* combined work to also be released under the terms of the GPL, the terms * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* and conditions of this License will apply in addition to those of the * GNU General Public License for more details.
* GPL with the exception of any terms or conditions of this License that
* conflict with, or are expressly prohibited by, the GPL.
* *
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND * You should have received a copy of the GNU General Public License
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * along with this program; if not, write to the Free Software
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/ */
#ifndef SYM_HIPD_H #ifndef SYM_HIPD_H
...@@ -1121,12 +1108,7 @@ int sym_abort_scsiio(hcb_p np, cam_ccb_p ccb, int timed_out); ...@@ -1121,12 +1108,7 @@ int sym_abort_scsiio(hcb_p np, cam_ccb_p ccb, int timed_out);
int sym_abort_ccb(hcb_p np, ccb_p cp, int timed_out); int sym_abort_ccb(hcb_p np, ccb_p cp, int timed_out);
int sym_reset_scsi_target(hcb_p np, int target); int sym_reset_scsi_target(hcb_p np, int target);
void sym_hcb_free(hcb_p np); void sym_hcb_free(hcb_p np);
#ifdef SYM_OPT_NVRAM_PRE_READ
int sym_hcb_attach(hcb_p np, struct sym_fw *fw, struct sym_nvram *nvram); int sym_hcb_attach(hcb_p np, struct sym_fw *fw, struct sym_nvram *nvram);
#else
int sym_hcb_attach(hcb_p np, struct sym_fw *fw);
#endif
/* /*
* Optionnaly, the driver may handle IO timeouts. * Optionnaly, the driver may handle IO timeouts.
...@@ -1350,7 +1332,6 @@ u32 __vtobus_unlocked(m_pool_ident_t dev_dmat, void *m); ...@@ -1350,7 +1332,6 @@ u32 __vtobus_unlocked(m_pool_ident_t dev_dmat, void *m);
#define PRINT_ADDR sym_print_addr #define PRINT_ADDR sym_print_addr
#define PRINT_TARGET sym_print_target #define PRINT_TARGET sym_print_target
#define PRINT_LUN sym_print_lun #define PRINT_LUN sym_print_lun
#define MDELAY sym_mdelay
#define UDELAY sym_udelay #define UDELAY sym_udelay
#endif /* SYM_HIPD_H */ #endif /* SYM_HIPD_H */
...@@ -22,32 +22,19 @@ ...@@ -22,32 +22,19 @@
* *
*----------------------------------------------------------------------------- *-----------------------------------------------------------------------------
* *
* Redistribution and use in source and binary forms, with or without * This program is free software; you can redistribute it and/or modify
* modification, are permitted provided that the following conditions * it under the terms of the GNU General Public License as published by
* are met: * the Free Software Foundation; either version 2 of the License, or
* 1. Redistributions of source code must retain the above copyright * (at your option) any later version.
* notice, this list of conditions and the following disclaimer.
* 2. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
* *
* Where this Software is combined with software released under the terms of * This program is distributed in the hope that it will be useful,
* the GNU Public License ("GPL") and the terms of the GPL would require the * but WITHOUT ANY WARRANTY; without even the implied warranty of
* combined work to also be released under the terms of the GPL, the terms * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* and conditions of this License will apply in addition to those of the * GNU General Public License for more details.
* GPL with the exception of any terms or conditions of this License that
* conflict with, or are expressly prohibited by, the GPL.
* *
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND * You should have received a copy of the GNU General Public License
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * along with this program; if not, write to the Free Software
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/ */
#ifdef __FreeBSD__ #ifdef __FreeBSD__
......
...@@ -22,32 +22,19 @@ ...@@ -22,32 +22,19 @@
* *
*----------------------------------------------------------------------------- *-----------------------------------------------------------------------------
* *
* Redistribution and use in source and binary forms, with or without * This program is free software; you can redistribute it and/or modify
* modification, are permitted provided that the following conditions * it under the terms of the GNU General Public License as published by
* are met: * the Free Software Foundation; either version 2 of the License, or
* 1. Redistributions of source code must retain the above copyright * (at your option) any later version.
* notice, this list of conditions and the following disclaimer.
* 2. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
* *
* Where this Software is combined with software released under the terms of * This program is distributed in the hope that it will be useful,
* the GNU Public License ("GPL") and the terms of the GPL would require the * but WITHOUT ANY WARRANTY; without even the implied warranty of
* combined work to also be released under the terms of the GPL, the terms * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* and conditions of this License will apply in addition to those of the * GNU General Public License for more details.
* GPL with the exception of any terms or conditions of this License that
* conflict with, or are expressly prohibited by, the GPL.
* *
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND * You should have received a copy of the GNU General Public License
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * along with this program; if not, write to the Free Software
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/ */
#ifdef __FreeBSD__ #ifdef __FreeBSD__
......
...@@ -22,32 +22,19 @@ ...@@ -22,32 +22,19 @@
* *
*----------------------------------------------------------------------------- *-----------------------------------------------------------------------------
* *
* Redistribution and use in source and binary forms, with or without * This program is free software; you can redistribute it and/or modify
* modification, are permitted provided that the following conditions * it under the terms of the GNU General Public License as published by
* are met: * the Free Software Foundation; either version 2 of the License, or
* 1. Redistributions of source code must retain the above copyright * (at your option) any later version.
* notice, this list of conditions and the following disclaimer.
* 2. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
* *
* Where this Software is combined with software released under the terms of * This program is distributed in the hope that it will be useful,
* the GNU Public License ("GPL") and the terms of the GPL would require the * but WITHOUT ANY WARRANTY; without even the implied warranty of
* combined work to also be released under the terms of the GPL, the terms * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* and conditions of this License will apply in addition to those of the * GNU General Public License for more details.
* GPL with the exception of any terms or conditions of this License that
* conflict with, or are expressly prohibited by, the GPL.
* *
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND * You should have received a copy of the GNU General Public License
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * along with this program; if not, write to the Free Software
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/ */
#ifndef SYM_MISC_H #ifndef SYM_MISC_H
......
...@@ -22,32 +22,19 @@ ...@@ -22,32 +22,19 @@
* *
*----------------------------------------------------------------------------- *-----------------------------------------------------------------------------
* *
* Redistribution and use in source and binary forms, with or without * This program is free software; you can redistribute it and/or modify
* modification, are permitted provided that the following conditions * it under the terms of the GNU General Public License as published by
* are met: * the Free Software Foundation; either version 2 of the License, or
* 1. Redistributions of source code must retain the above copyright * (at your option) any later version.
* notice, this list of conditions and the following disclaimer.
* 2. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
* *
* Where this Software is combined with software released under the terms of * This program is distributed in the hope that it will be useful,
* the GNU Public License ("GPL") and the terms of the GPL would require the * but WITHOUT ANY WARRANTY; without even the implied warranty of
* combined work to also be released under the terms of the GPL, the terms * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* and conditions of this License will apply in addition to those of the * GNU General Public License for more details.
* GPL with the exception of any terms or conditions of this License that
* conflict with, or are expressly prohibited by, the GPL.
* *
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND * You should have received a copy of the GNU General Public License
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * along with this program; if not, write to the Free Software
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/ */
#include "sym_glue.h" #include "sym_glue.h"
......
...@@ -22,32 +22,19 @@ ...@@ -22,32 +22,19 @@
* *
*----------------------------------------------------------------------------- *-----------------------------------------------------------------------------
* *
* Redistribution and use in source and binary forms, with or without * This program is free software; you can redistribute it and/or modify
* modification, are permitted provided that the following conditions * it under the terms of the GNU General Public License as published by
* are met: * the Free Software Foundation; either version 2 of the License, or
* 1. Redistributions of source code must retain the above copyright * (at your option) any later version.
* notice, this list of conditions and the following disclaimer.
* 2. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
* *
* Where this Software is combined with software released under the terms of * This program is distributed in the hope that it will be useful,
* the GNU Public License ("GPL") and the terms of the GPL would require the * but WITHOUT ANY WARRANTY; without even the implied warranty of
* combined work to also be released under the terms of the GPL, the terms * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* and conditions of this License will apply in addition to those of the * GNU General Public License for more details.
* GPL with the exception of any terms or conditions of this License that
* conflict with, or are expressly prohibited by, the GPL.
* *
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND * You should have received a copy of the GNU General Public License
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * along with this program; if not, write to the Free Software
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/ */
#ifndef SYM_NVRAM_H #ifndef SYM_NVRAM_H
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment