aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/nsp32.c
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
commit8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch)
treea8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /drivers/scsi/nsp32.c
parent406089d01562f1e2bf9f089fd7637009ebaad589 (diff)
Patched in Tegra support.
Diffstat (limited to 'drivers/scsi/nsp32.c')
-rw-r--r--drivers/scsi/nsp32.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/drivers/scsi/nsp32.c b/drivers/scsi/nsp32.c
index 1cc0c1c69c8..f6a50c98c36 100644
--- a/drivers/scsi/nsp32.c
+++ b/drivers/scsi/nsp32.c
@@ -38,6 +38,7 @@
38#include <linux/dma-mapping.h> 38#include <linux/dma-mapping.h>
39 39
40#include <asm/dma.h> 40#include <asm/dma.h>
41#include <asm/system.h>
41#include <asm/io.h> 42#include <asm/io.h>
42 43
43#include <scsi/scsi.h> 44#include <scsi/scsi.h>
@@ -58,11 +59,11 @@ MODULE_PARM_DESC(trans_mode, "transfer mode (0: BIOS(default) 1: Async 2: Ultra2
58#define ASYNC_MODE 1 59#define ASYNC_MODE 1
59#define ULTRA20M_MODE 2 60#define ULTRA20M_MODE 2
60 61
61static bool auto_param = 0; /* default: ON */ 62static int auto_param = 0; /* default: ON */
62module_param (auto_param, bool, 0); 63module_param (auto_param, bool, 0);
63MODULE_PARM_DESC(auto_param, "AutoParameter mode (0: ON(default) 1: OFF)"); 64MODULE_PARM_DESC(auto_param, "AutoParameter mode (0: ON(default) 1: OFF)");
64 65
65static bool disc_priv = 1; /* default: OFF */ 66static int disc_priv = 1; /* default: OFF */
66module_param (disc_priv, bool, 0); 67module_param (disc_priv, bool, 0);
67MODULE_PARM_DESC(disc_priv, "disconnection privilege mode (0: ON 1: OFF(default))"); 68MODULE_PARM_DESC(disc_priv, "disconnection privilege mode (0: ON 1: OFF(default))");
68 69
@@ -76,7 +77,7 @@ static const char *nsp32_release_version = "1.2";
76/**************************************************************************** 77/****************************************************************************
77 * Supported hardware 78 * Supported hardware
78 */ 79 */
79static struct pci_device_id nsp32_pci_table[] = { 80static struct pci_device_id nsp32_pci_table[] __devinitdata = {
80 { 81 {
81 .vendor = PCI_VENDOR_ID_IODATA, 82 .vendor = PCI_VENDOR_ID_IODATA,
82 .device = PCI_DEVICE_ID_NINJASCSI_32BI_CBSC_II, 83 .device = PCI_DEVICE_ID_NINJASCSI_32BI_CBSC_II,
@@ -186,10 +187,10 @@ static nsp32_sync_table nsp32_sync_table_pci[] = {
186 * function declaration 187 * function declaration
187 */ 188 */
188/* module entry point */ 189/* module entry point */
189static int nsp32_probe (struct pci_dev *, const struct pci_device_id *); 190static int __devinit nsp32_probe (struct pci_dev *, const struct pci_device_id *);
190static void nsp32_remove(struct pci_dev *); 191static void __devexit nsp32_remove(struct pci_dev *);
191static int __init init_nsp32 (void); 192static int __init init_nsp32 (void);
192static void __exit exit_nsp32 (void); 193static void __exit exit_nsp32 (void);
193 194
194/* struct struct scsi_host_template */ 195/* struct struct scsi_host_template */
195static int nsp32_proc_info (struct Scsi_Host *, char *, char **, off_t, int, int); 196static int nsp32_proc_info (struct Scsi_Host *, char *, char **, off_t, int, int);
@@ -3382,7 +3383,7 @@ static int nsp32_resume(struct pci_dev *pdev)
3382/************************************************************************ 3383/************************************************************************
3383 * PCI/Cardbus probe/remove routine 3384 * PCI/Cardbus probe/remove routine
3384 */ 3385 */
3385static int nsp32_probe(struct pci_dev *pdev, const struct pci_device_id *id) 3386static int __devinit nsp32_probe(struct pci_dev *pdev, const struct pci_device_id *id)
3386{ 3387{
3387 int ret; 3388 int ret;
3388 nsp32_hw_data *data = &nsp32_data_base; 3389 nsp32_hw_data *data = &nsp32_data_base;
@@ -3418,7 +3419,7 @@ static int nsp32_probe(struct pci_dev *pdev, const struct pci_device_id *id)
3418 return ret; 3419 return ret;
3419} 3420}
3420 3421
3421static void nsp32_remove(struct pci_dev *pdev) 3422static void __devexit nsp32_remove(struct pci_dev *pdev)
3422{ 3423{
3423 struct Scsi_Host *host = pci_get_drvdata(pdev); 3424 struct Scsi_Host *host = pci_get_drvdata(pdev);
3424 3425
@@ -3435,7 +3436,7 @@ static struct pci_driver nsp32_driver = {
3435 .name = "nsp32", 3436 .name = "nsp32",
3436 .id_table = nsp32_pci_table, 3437 .id_table = nsp32_pci_table,
3437 .probe = nsp32_probe, 3438 .probe = nsp32_probe,
3438 .remove = nsp32_remove, 3439 .remove = __devexit_p(nsp32_remove),
3439#ifdef CONFIG_PM 3440#ifdef CONFIG_PM
3440 .suspend = nsp32_suspend, 3441 .suspend = nsp32_suspend,
3441 .resume = nsp32_resume, 3442 .resume = nsp32_resume,