diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /drivers/scsi/nsp32.c | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'drivers/scsi/nsp32.c')
-rw-r--r-- | drivers/scsi/nsp32.c | 21 |
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 | ||
61 | static bool auto_param = 0; /* default: ON */ | 62 | static int auto_param = 0; /* default: ON */ |
62 | module_param (auto_param, bool, 0); | 63 | module_param (auto_param, bool, 0); |
63 | MODULE_PARM_DESC(auto_param, "AutoParameter mode (0: ON(default) 1: OFF)"); | 64 | MODULE_PARM_DESC(auto_param, "AutoParameter mode (0: ON(default) 1: OFF)"); |
64 | 65 | ||
65 | static bool disc_priv = 1; /* default: OFF */ | 66 | static int disc_priv = 1; /* default: OFF */ |
66 | module_param (disc_priv, bool, 0); | 67 | module_param (disc_priv, bool, 0); |
67 | MODULE_PARM_DESC(disc_priv, "disconnection privilege mode (0: ON 1: OFF(default))"); | 68 | MODULE_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 | */ |
79 | static struct pci_device_id nsp32_pci_table[] = { | 80 | static 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 */ |
189 | static int nsp32_probe (struct pci_dev *, const struct pci_device_id *); | 190 | static int __devinit nsp32_probe (struct pci_dev *, const struct pci_device_id *); |
190 | static void nsp32_remove(struct pci_dev *); | 191 | static void __devexit nsp32_remove(struct pci_dev *); |
191 | static int __init init_nsp32 (void); | 192 | static int __init init_nsp32 (void); |
192 | static void __exit exit_nsp32 (void); | 193 | static void __exit exit_nsp32 (void); |
193 | 194 | ||
194 | /* struct struct scsi_host_template */ | 195 | /* struct struct scsi_host_template */ |
195 | static int nsp32_proc_info (struct Scsi_Host *, char *, char **, off_t, int, int); | 196 | static 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 | */ |
3385 | static int nsp32_probe(struct pci_dev *pdev, const struct pci_device_id *id) | 3386 | static 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 | ||
3421 | static void nsp32_remove(struct pci_dev *pdev) | 3422 | static 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, |