aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-11-28 21:26:47 -0500
committerTejun Heo <htejun@gmail.com>2006-11-29 00:57:58 -0500
commitafdfe899e6420eac6c5eb3bc8c89456dff38d40e (patch)
tree207fe02b2950d4c915d8ad0ff3cb4c50d13e5440
parent41669553353554211310cdb23079d58af1fda41e (diff)
[PATCH] libata: add missing sht->slave_destroy
Many LLDs are missing sht->slave_destroy. The method is mandatory to support device warm unplugging (echo 1 > /sys/.../delete). Without it, libata might access released scsi device. Signed-off-by: Tejun Heo <htejun@gmail.com>
-rw-r--r--drivers/ata/ata_generic.c1
-rw-r--r--drivers/ata/pata_ali.c1
-rw-r--r--drivers/ata/pata_amd.c1
-rw-r--r--drivers/ata/pata_artop.c1
-rw-r--r--drivers/ata/pata_atiixp.c1
-rw-r--r--drivers/ata/pata_cmd64x.c1
-rw-r--r--drivers/ata/pata_cs5520.c1
-rw-r--r--drivers/ata/pata_cs5530.c1
-rw-r--r--drivers/ata/pata_cs5535.c1
-rw-r--r--drivers/ata/pata_cypress.c1
-rw-r--r--drivers/ata/pata_efar.c1
-rw-r--r--drivers/ata/pata_hpt366.c1
-rw-r--r--drivers/ata/pata_hpt37x.c1
-rw-r--r--drivers/ata/pata_hpt3x2n.c1
-rw-r--r--drivers/ata/pata_hpt3x3.c1
-rw-r--r--drivers/ata/pata_isapnp.c1
-rw-r--r--drivers/ata/pata_it821x.c1
-rw-r--r--drivers/ata/pata_jmicron.c1
-rw-r--r--drivers/ata/pata_legacy.c1
-rw-r--r--drivers/ata/pata_mpiix.c1
-rw-r--r--drivers/ata/pata_netcell.c1
-rw-r--r--drivers/ata/pata_ns87410.c1
-rw-r--r--drivers/ata/pata_oldpiix.c1
-rw-r--r--drivers/ata/pata_opti.c1
-rw-r--r--drivers/ata/pata_optidma.c1
-rw-r--r--drivers/ata/pata_pcmcia.c1
-rw-r--r--drivers/ata/pata_pdc2027x.c1
-rw-r--r--drivers/ata/pata_pdc202xx_old.c1
-rw-r--r--drivers/ata/pata_qdi.c1
-rw-r--r--drivers/ata/pata_radisys.c1
-rw-r--r--drivers/ata/pata_rz1000.c1
-rw-r--r--drivers/ata/pata_sc1200.c1
-rw-r--r--drivers/ata/pata_serverworks.c1
-rw-r--r--drivers/ata/pata_sil680.c1
-rw-r--r--drivers/ata/pata_sis.c1
-rw-r--r--drivers/ata/pata_sl82c105.c1
-rw-r--r--drivers/ata/pata_triflex.c1
-rw-r--r--drivers/ata/pata_via.c1
38 files changed, 38 insertions, 0 deletions
diff --git a/drivers/ata/ata_generic.c b/drivers/ata/ata_generic.c
index 377425e71391..4a80ff9312b8 100644
--- a/drivers/ata/ata_generic.c
+++ b/drivers/ata/ata_generic.c
@@ -116,6 +116,7 @@ static struct scsi_host_template generic_sht = {
116 .proc_name = DRV_NAME, 116 .proc_name = DRV_NAME,
117 .dma_boundary = ATA_DMA_BOUNDARY, 117 .dma_boundary = ATA_DMA_BOUNDARY,
118 .slave_configure = ata_scsi_slave_config, 118 .slave_configure = ata_scsi_slave_config,
119 .slave_destroy = ata_scsi_slave_destroy,
119 .bios_param = ata_std_bios_param, 120 .bios_param = ata_std_bios_param,
120}; 121};
121 122
diff --git a/drivers/ata/pata_ali.c b/drivers/ata/pata_ali.c
index 1d695df5860a..64eed99f6814 100644
--- a/drivers/ata/pata_ali.c
+++ b/drivers/ata/pata_ali.c
@@ -346,6 +346,7 @@ static struct scsi_host_template ali_sht = {
346 .proc_name = DRV_NAME, 346 .proc_name = DRV_NAME,
347 .dma_boundary = ATA_DMA_BOUNDARY, 347 .dma_boundary = ATA_DMA_BOUNDARY,
348 .slave_configure = ata_scsi_slave_config, 348 .slave_configure = ata_scsi_slave_config,
349 .slave_destroy = ata_scsi_slave_destroy,
349 .bios_param = ata_std_bios_param, 350 .bios_param = ata_std_bios_param,
350}; 351};
351 352
diff --git a/drivers/ata/pata_amd.c b/drivers/ata/pata_amd.c
index 5c47a9e0e0ca..8be46a63af74 100644
--- a/drivers/ata/pata_amd.c
+++ b/drivers/ata/pata_amd.c
@@ -333,6 +333,7 @@ static struct scsi_host_template amd_sht = {
333 .proc_name = DRV_NAME, 333 .proc_name = DRV_NAME,
334 .dma_boundary = ATA_DMA_BOUNDARY, 334 .dma_boundary = ATA_DMA_BOUNDARY,
335 .slave_configure = ata_scsi_slave_config, 335 .slave_configure = ata_scsi_slave_config,
336 .slave_destroy = ata_scsi_slave_destroy,
336 .bios_param = ata_std_bios_param, 337 .bios_param = ata_std_bios_param,
337}; 338};
338 339
diff --git a/drivers/ata/pata_artop.c b/drivers/ata/pata_artop.c
index 96a098020a8f..2cd30761ca1f 100644
--- a/drivers/ata/pata_artop.c
+++ b/drivers/ata/pata_artop.c
@@ -314,6 +314,7 @@ static struct scsi_host_template artop_sht = {
314 .proc_name = DRV_NAME, 314 .proc_name = DRV_NAME,
315 .dma_boundary = ATA_DMA_BOUNDARY, 315 .dma_boundary = ATA_DMA_BOUNDARY,
316 .slave_configure = ata_scsi_slave_config, 316 .slave_configure = ata_scsi_slave_config,
317 .slave_destroy = ata_scsi_slave_destroy,
317 .bios_param = ata_std_bios_param, 318 .bios_param = ata_std_bios_param,
318}; 319};
319 320
diff --git a/drivers/ata/pata_atiixp.c b/drivers/ata/pata_atiixp.c
index 1ce28d2125f4..4e1d3b59adbb 100644
--- a/drivers/ata/pata_atiixp.c
+++ b/drivers/ata/pata_atiixp.c
@@ -216,6 +216,7 @@ static struct scsi_host_template atiixp_sht = {
216 .proc_name = DRV_NAME, 216 .proc_name = DRV_NAME,
217 .dma_boundary = ATA_DMA_BOUNDARY, 217 .dma_boundary = ATA_DMA_BOUNDARY,
218 .slave_configure = ata_scsi_slave_config, 218 .slave_configure = ata_scsi_slave_config,
219 .slave_destroy = ata_scsi_slave_destroy,
219 .bios_param = ata_std_bios_param, 220 .bios_param = ata_std_bios_param,
220}; 221};
221 222
diff --git a/drivers/ata/pata_cmd64x.c b/drivers/ata/pata_cmd64x.c
index b9bbd1d454bf..29a60df465da 100644
--- a/drivers/ata/pata_cmd64x.c
+++ b/drivers/ata/pata_cmd64x.c
@@ -275,6 +275,7 @@ static struct scsi_host_template cmd64x_sht = {
275 .proc_name = DRV_NAME, 275 .proc_name = DRV_NAME,
276 .dma_boundary = ATA_DMA_BOUNDARY, 276 .dma_boundary = ATA_DMA_BOUNDARY,
277 .slave_configure = ata_scsi_slave_config, 277 .slave_configure = ata_scsi_slave_config,
278 .slave_destroy = ata_scsi_slave_destroy,
278 .bios_param = ata_std_bios_param, 279 .bios_param = ata_std_bios_param,
279}; 280};
280 281
diff --git a/drivers/ata/pata_cs5520.c b/drivers/ata/pata_cs5520.c
index 2cd3c0ff76df..33d2b88f9c79 100644
--- a/drivers/ata/pata_cs5520.c
+++ b/drivers/ata/pata_cs5520.c
@@ -166,6 +166,7 @@ static struct scsi_host_template cs5520_sht = {
166 .proc_name = DRV_NAME, 166 .proc_name = DRV_NAME,
167 .dma_boundary = ATA_DMA_BOUNDARY, 167 .dma_boundary = ATA_DMA_BOUNDARY,
168 .slave_configure = ata_scsi_slave_config, 168 .slave_configure = ata_scsi_slave_config,
169 .slave_destroy = ata_scsi_slave_destroy,
169 .bios_param = ata_std_bios_param, 170 .bios_param = ata_std_bios_param,
170}; 171};
171 172
diff --git a/drivers/ata/pata_cs5530.c b/drivers/ata/pata_cs5530.c
index a07cc81ef791..981f49223469 100644
--- a/drivers/ata/pata_cs5530.c
+++ b/drivers/ata/pata_cs5530.c
@@ -180,6 +180,7 @@ static struct scsi_host_template cs5530_sht = {
180 .proc_name = DRV_NAME, 180 .proc_name = DRV_NAME,
181 .dma_boundary = ATA_DMA_BOUNDARY, 181 .dma_boundary = ATA_DMA_BOUNDARY,
182 .slave_configure = ata_scsi_slave_config, 182 .slave_configure = ata_scsi_slave_config,
183 .slave_destroy = ata_scsi_slave_destroy,
183 .bios_param = ata_std_bios_param, 184 .bios_param = ata_std_bios_param,
184}; 185};
185 186
diff --git a/drivers/ata/pata_cs5535.c b/drivers/ata/pata_cs5535.c
index f8def3f9c618..8dafa4a49fdc 100644
--- a/drivers/ata/pata_cs5535.c
+++ b/drivers/ata/pata_cs5535.c
@@ -184,6 +184,7 @@ static struct scsi_host_template cs5535_sht = {
184 .proc_name = DRV_NAME, 184 .proc_name = DRV_NAME,
185 .dma_boundary = ATA_DMA_BOUNDARY, 185 .dma_boundary = ATA_DMA_BOUNDARY,
186 .slave_configure = ata_scsi_slave_config, 186 .slave_configure = ata_scsi_slave_config,
187 .slave_destroy = ata_scsi_slave_destroy,
187 .bios_param = ata_std_bios_param, 188 .bios_param = ata_std_bios_param,
188}; 189};
189 190
diff --git a/drivers/ata/pata_cypress.c b/drivers/ata/pata_cypress.c
index 247b43608b14..5a0b811907ee 100644
--- a/drivers/ata/pata_cypress.c
+++ b/drivers/ata/pata_cypress.c
@@ -135,6 +135,7 @@ static struct scsi_host_template cy82c693_sht = {
135 .proc_name = DRV_NAME, 135 .proc_name = DRV_NAME,
136 .dma_boundary = ATA_DMA_BOUNDARY, 136 .dma_boundary = ATA_DMA_BOUNDARY,
137 .slave_configure = ata_scsi_slave_config, 137 .slave_configure = ata_scsi_slave_config,
138 .slave_destroy = ata_scsi_slave_destroy,
138 .bios_param = ata_std_bios_param, 139 .bios_param = ata_std_bios_param,
139}; 140};
140 141
diff --git a/drivers/ata/pata_efar.c b/drivers/ata/pata_efar.c
index ef18c60fe140..755f79279de3 100644
--- a/drivers/ata/pata_efar.c
+++ b/drivers/ata/pata_efar.c
@@ -233,6 +233,7 @@ static struct scsi_host_template efar_sht = {
233 .proc_name = DRV_NAME, 233 .proc_name = DRV_NAME,
234 .dma_boundary = ATA_DMA_BOUNDARY, 234 .dma_boundary = ATA_DMA_BOUNDARY,
235 .slave_configure = ata_scsi_slave_config, 235 .slave_configure = ata_scsi_slave_config,
236 .slave_destroy = ata_scsi_slave_destroy,
236 .bios_param = ata_std_bios_param, 237 .bios_param = ata_std_bios_param,
237}; 238};
238 239
diff --git a/drivers/ata/pata_hpt366.c b/drivers/ata/pata_hpt366.c
index 6d3e4c0f15fe..c0e150a9586b 100644
--- a/drivers/ata/pata_hpt366.c
+++ b/drivers/ata/pata_hpt366.c
@@ -329,6 +329,7 @@ static struct scsi_host_template hpt36x_sht = {
329 .proc_name = DRV_NAME, 329 .proc_name = DRV_NAME,
330 .dma_boundary = ATA_DMA_BOUNDARY, 330 .dma_boundary = ATA_DMA_BOUNDARY,
331 .slave_configure = ata_scsi_slave_config, 331 .slave_configure = ata_scsi_slave_config,
332 .slave_destroy = ata_scsi_slave_destroy,
332 .bios_param = ata_std_bios_param, 333 .bios_param = ata_std_bios_param,
333}; 334};
334 335
diff --git a/drivers/ata/pata_hpt37x.c b/drivers/ata/pata_hpt37x.c
index fce3fcdc7e79..1eeb16f0fb02 100644
--- a/drivers/ata/pata_hpt37x.c
+++ b/drivers/ata/pata_hpt37x.c
@@ -775,6 +775,7 @@ static struct scsi_host_template hpt37x_sht = {
775 .proc_name = DRV_NAME, 775 .proc_name = DRV_NAME,
776 .dma_boundary = ATA_DMA_BOUNDARY, 776 .dma_boundary = ATA_DMA_BOUNDARY,
777 .slave_configure = ata_scsi_slave_config, 777 .slave_configure = ata_scsi_slave_config,
778 .slave_destroy = ata_scsi_slave_destroy,
778 .bios_param = ata_std_bios_param, 779 .bios_param = ata_std_bios_param,
779}; 780};
780 781
diff --git a/drivers/ata/pata_hpt3x2n.c b/drivers/ata/pata_hpt3x2n.c
index 58cfb2bc8098..47d7664e9eee 100644
--- a/drivers/ata/pata_hpt3x2n.c
+++ b/drivers/ata/pata_hpt3x2n.c
@@ -341,6 +341,7 @@ static struct scsi_host_template hpt3x2n_sht = {
341 .proc_name = DRV_NAME, 341 .proc_name = DRV_NAME,
342 .dma_boundary = ATA_DMA_BOUNDARY, 342 .dma_boundary = ATA_DMA_BOUNDARY,
343 .slave_configure = ata_scsi_slave_config, 343 .slave_configure = ata_scsi_slave_config,
344 .slave_destroy = ata_scsi_slave_destroy,
344 .bios_param = ata_std_bios_param, 345 .bios_param = ata_std_bios_param,
345}; 346};
346 347
diff --git a/drivers/ata/pata_hpt3x3.c b/drivers/ata/pata_hpt3x3.c
index 3334d72e251b..d216cc564b56 100644
--- a/drivers/ata/pata_hpt3x3.c
+++ b/drivers/ata/pata_hpt3x3.c
@@ -118,6 +118,7 @@ static struct scsi_host_template hpt3x3_sht = {
118 .proc_name = DRV_NAME, 118 .proc_name = DRV_NAME,
119 .dma_boundary = ATA_DMA_BOUNDARY, 119 .dma_boundary = ATA_DMA_BOUNDARY,
120 .slave_configure = ata_scsi_slave_config, 120 .slave_configure = ata_scsi_slave_config,
121 .slave_destroy = ata_scsi_slave_destroy,
121 .bios_param = ata_std_bios_param, 122 .bios_param = ata_std_bios_param,
122}; 123};
123 124
diff --git a/drivers/ata/pata_isapnp.c b/drivers/ata/pata_isapnp.c
index 640b8b0954f5..40ca2b82b7fc 100644
--- a/drivers/ata/pata_isapnp.c
+++ b/drivers/ata/pata_isapnp.c
@@ -34,6 +34,7 @@ static struct scsi_host_template isapnp_sht = {
34 .proc_name = DRV_NAME, 34 .proc_name = DRV_NAME,
35 .dma_boundary = ATA_DMA_BOUNDARY, 35 .dma_boundary = ATA_DMA_BOUNDARY,
36 .slave_configure = ata_scsi_slave_config, 36 .slave_configure = ata_scsi_slave_config,
37 .slave_destroy = ata_scsi_slave_destroy,
37 .bios_param = ata_std_bios_param, 38 .bios_param = ata_std_bios_param,
38}; 39};
39 40
diff --git a/drivers/ata/pata_it821x.c b/drivers/ata/pata_it821x.c
index 18ff3e59a89b..7f68f14be6fd 100644
--- a/drivers/ata/pata_it821x.c
+++ b/drivers/ata/pata_it821x.c
@@ -675,6 +675,7 @@ static struct scsi_host_template it821x_sht = {
675 .proc_name = DRV_NAME, 675 .proc_name = DRV_NAME,
676 .dma_boundary = ATA_DMA_BOUNDARY, 676 .dma_boundary = ATA_DMA_BOUNDARY,
677 .slave_configure = ata_scsi_slave_config, 677 .slave_configure = ata_scsi_slave_config,
678 .slave_destroy = ata_scsi_slave_destroy,
678 .bios_param = ata_std_bios_param, 679 .bios_param = ata_std_bios_param,
679}; 680};
680 681
diff --git a/drivers/ata/pata_jmicron.c b/drivers/ata/pata_jmicron.c
index 52a2bdf3c38d..0210b10d49cd 100644
--- a/drivers/ata/pata_jmicron.c
+++ b/drivers/ata/pata_jmicron.c
@@ -136,6 +136,7 @@ static struct scsi_host_template jmicron_sht = {
136 .proc_name = DRV_NAME, 136 .proc_name = DRV_NAME,
137 .dma_boundary = ATA_DMA_BOUNDARY, 137 .dma_boundary = ATA_DMA_BOUNDARY,
138 .slave_configure = ata_scsi_slave_config, 138 .slave_configure = ata_scsi_slave_config,
139 .slave_destroy = ata_scsi_slave_destroy,
139 /* Use standard CHS mapping rules */ 140 /* Use standard CHS mapping rules */
140 .bios_param = ata_std_bios_param, 141 .bios_param = ata_std_bios_param,
141}; 142};
diff --git a/drivers/ata/pata_legacy.c b/drivers/ata/pata_legacy.c
index 10231ef731d1..b39078b2a47b 100644
--- a/drivers/ata/pata_legacy.c
+++ b/drivers/ata/pata_legacy.c
@@ -135,6 +135,7 @@ static struct scsi_host_template legacy_sht = {
135 .proc_name = DRV_NAME, 135 .proc_name = DRV_NAME,
136 .dma_boundary = ATA_DMA_BOUNDARY, 136 .dma_boundary = ATA_DMA_BOUNDARY,
137 .slave_configure = ata_scsi_slave_config, 137 .slave_configure = ata_scsi_slave_config,
138 .slave_destroy = ata_scsi_slave_destroy,
138 .bios_param = ata_std_bios_param, 139 .bios_param = ata_std_bios_param,
139}; 140};
140 141
diff --git a/drivers/ata/pata_mpiix.c b/drivers/ata/pata_mpiix.c
index 9dfe3e9abea3..e00d406bfdf5 100644
--- a/drivers/ata/pata_mpiix.c
+++ b/drivers/ata/pata_mpiix.c
@@ -166,6 +166,7 @@ static struct scsi_host_template mpiix_sht = {
166 .proc_name = DRV_NAME, 166 .proc_name = DRV_NAME,
167 .dma_boundary = ATA_DMA_BOUNDARY, 167 .dma_boundary = ATA_DMA_BOUNDARY,
168 .slave_configure = ata_scsi_slave_config, 168 .slave_configure = ata_scsi_slave_config,
169 .slave_destroy = ata_scsi_slave_destroy,
169 .bios_param = ata_std_bios_param, 170 .bios_param = ata_std_bios_param,
170}; 171};
171 172
diff --git a/drivers/ata/pata_netcell.c b/drivers/ata/pata_netcell.c
index f5672de99c22..1963a4d35873 100644
--- a/drivers/ata/pata_netcell.c
+++ b/drivers/ata/pata_netcell.c
@@ -62,6 +62,7 @@ static struct scsi_host_template netcell_sht = {
62 .proc_name = DRV_NAME, 62 .proc_name = DRV_NAME,
63 .dma_boundary = ATA_DMA_BOUNDARY, 63 .dma_boundary = ATA_DMA_BOUNDARY,
64 .slave_configure = ata_scsi_slave_config, 64 .slave_configure = ata_scsi_slave_config,
65 .slave_destroy = ata_scsi_slave_destroy,
65 /* Use standard CHS mapping rules */ 66 /* Use standard CHS mapping rules */
66 .bios_param = ata_std_bios_param, 67 .bios_param = ata_std_bios_param,
67}; 68};
diff --git a/drivers/ata/pata_ns87410.c b/drivers/ata/pata_ns87410.c
index 2a3dbeed89b4..7ec800f00ec8 100644
--- a/drivers/ata/pata_ns87410.c
+++ b/drivers/ata/pata_ns87410.c
@@ -156,6 +156,7 @@ static struct scsi_host_template ns87410_sht = {
156 .proc_name = DRV_NAME, 156 .proc_name = DRV_NAME,
157 .dma_boundary = ATA_DMA_BOUNDARY, 157 .dma_boundary = ATA_DMA_BOUNDARY,
158 .slave_configure = ata_scsi_slave_config, 158 .slave_configure = ata_scsi_slave_config,
159 .slave_destroy = ata_scsi_slave_destroy,
159 .bios_param = ata_std_bios_param, 160 .bios_param = ata_std_bios_param,
160}; 161};
161 162
diff --git a/drivers/ata/pata_oldpiix.c b/drivers/ata/pata_oldpiix.c
index fc947dfecd73..8837256632e9 100644
--- a/drivers/ata/pata_oldpiix.c
+++ b/drivers/ata/pata_oldpiix.c
@@ -231,6 +231,7 @@ static struct scsi_host_template oldpiix_sht = {
231 .proc_name = DRV_NAME, 231 .proc_name = DRV_NAME,
232 .dma_boundary = ATA_DMA_BOUNDARY, 232 .dma_boundary = ATA_DMA_BOUNDARY,
233 .slave_configure = ata_scsi_slave_config, 233 .slave_configure = ata_scsi_slave_config,
234 .slave_destroy = ata_scsi_slave_destroy,
234 .bios_param = ata_std_bios_param, 235 .bios_param = ata_std_bios_param,
235}; 236};
236 237
diff --git a/drivers/ata/pata_opti.c b/drivers/ata/pata_opti.c
index a7320ba15575..c6319cf50de4 100644
--- a/drivers/ata/pata_opti.c
+++ b/drivers/ata/pata_opti.c
@@ -202,6 +202,7 @@ static struct scsi_host_template opti_sht = {
202 .proc_name = DRV_NAME, 202 .proc_name = DRV_NAME,
203 .dma_boundary = ATA_DMA_BOUNDARY, 203 .dma_boundary = ATA_DMA_BOUNDARY,
204 .slave_configure = ata_scsi_slave_config, 204 .slave_configure = ata_scsi_slave_config,
205 .slave_destroy = ata_scsi_slave_destroy,
205 .bios_param = ata_std_bios_param, 206 .bios_param = ata_std_bios_param,
206}; 207};
207 208
diff --git a/drivers/ata/pata_optidma.c b/drivers/ata/pata_optidma.c
index c6906b4215de..2f4770cce04e 100644
--- a/drivers/ata/pata_optidma.c
+++ b/drivers/ata/pata_optidma.c
@@ -359,6 +359,7 @@ static struct scsi_host_template optidma_sht = {
359 .proc_name = DRV_NAME, 359 .proc_name = DRV_NAME,
360 .dma_boundary = ATA_DMA_BOUNDARY, 360 .dma_boundary = ATA_DMA_BOUNDARY,
361 .slave_configure = ata_scsi_slave_config, 361 .slave_configure = ata_scsi_slave_config,
362 .slave_destroy = ata_scsi_slave_destroy,
362 .bios_param = ata_std_bios_param, 363 .bios_param = ata_std_bios_param,
363}; 364};
364 365
diff --git a/drivers/ata/pata_pcmcia.c b/drivers/ata/pata_pcmcia.c
index e93ea2702c73..999922de476e 100644
--- a/drivers/ata/pata_pcmcia.c
+++ b/drivers/ata/pata_pcmcia.c
@@ -69,6 +69,7 @@ static struct scsi_host_template pcmcia_sht = {
69 .proc_name = DRV_NAME, 69 .proc_name = DRV_NAME,
70 .dma_boundary = ATA_DMA_BOUNDARY, 70 .dma_boundary = ATA_DMA_BOUNDARY,
71 .slave_configure = ata_scsi_slave_config, 71 .slave_configure = ata_scsi_slave_config,
72 .slave_destroy = ata_scsi_slave_destroy,
72 .bios_param = ata_std_bios_param, 73 .bios_param = ata_std_bios_param,
73}; 74};
74 75
diff --git a/drivers/ata/pata_pdc2027x.c b/drivers/ata/pata_pdc2027x.c
index d894d9918b1d..beb6d10a234b 100644
--- a/drivers/ata/pata_pdc2027x.c
+++ b/drivers/ata/pata_pdc2027x.c
@@ -141,6 +141,7 @@ static struct scsi_host_template pdc2027x_sht = {
141 .proc_name = DRV_NAME, 141 .proc_name = DRV_NAME,
142 .dma_boundary = ATA_DMA_BOUNDARY, 142 .dma_boundary = ATA_DMA_BOUNDARY,
143 .slave_configure = ata_scsi_slave_config, 143 .slave_configure = ata_scsi_slave_config,
144 .slave_destroy = ata_scsi_slave_destroy,
144 .bios_param = ata_std_bios_param, 145 .bios_param = ata_std_bios_param,
145}; 146};
146 147
diff --git a/drivers/ata/pata_pdc202xx_old.c b/drivers/ata/pata_pdc202xx_old.c
index 5ba9eb20a6c2..6baf51b2fda1 100644
--- a/drivers/ata/pata_pdc202xx_old.c
+++ b/drivers/ata/pata_pdc202xx_old.c
@@ -269,6 +269,7 @@ static struct scsi_host_template pdc_sht = {
269 .proc_name = DRV_NAME, 269 .proc_name = DRV_NAME,
270 .dma_boundary = ATA_DMA_BOUNDARY, 270 .dma_boundary = ATA_DMA_BOUNDARY,
271 .slave_configure = ata_scsi_slave_config, 271 .slave_configure = ata_scsi_slave_config,
272 .slave_destroy = ata_scsi_slave_destroy,
272 .bios_param = ata_std_bios_param, 273 .bios_param = ata_std_bios_param,
273}; 274};
274 275
diff --git a/drivers/ata/pata_qdi.c b/drivers/ata/pata_qdi.c
index 2c3cc0ccc606..314938dea1fc 100644
--- a/drivers/ata/pata_qdi.c
+++ b/drivers/ata/pata_qdi.c
@@ -164,6 +164,7 @@ static struct scsi_host_template qdi_sht = {
164 .proc_name = DRV_NAME, 164 .proc_name = DRV_NAME,
165 .dma_boundary = ATA_DMA_BOUNDARY, 165 .dma_boundary = ATA_DMA_BOUNDARY,
166 .slave_configure = ata_scsi_slave_config, 166 .slave_configure = ata_scsi_slave_config,
167 .slave_destroy = ata_scsi_slave_destroy,
167 .bios_param = ata_std_bios_param, 168 .bios_param = ata_std_bios_param,
168}; 169};
169 170
diff --git a/drivers/ata/pata_radisys.c b/drivers/ata/pata_radisys.c
index 1af83d7694d5..048c2bb21ef1 100644
--- a/drivers/ata/pata_radisys.c
+++ b/drivers/ata/pata_radisys.c
@@ -227,6 +227,7 @@ static struct scsi_host_template radisys_sht = {
227 .proc_name = DRV_NAME, 227 .proc_name = DRV_NAME,
228 .dma_boundary = ATA_DMA_BOUNDARY, 228 .dma_boundary = ATA_DMA_BOUNDARY,
229 .slave_configure = ata_scsi_slave_config, 229 .slave_configure = ata_scsi_slave_config,
230 .slave_destroy = ata_scsi_slave_destroy,
230 .bios_param = ata_std_bios_param, 231 .bios_param = ata_std_bios_param,
231}; 232};
232 233
diff --git a/drivers/ata/pata_rz1000.c b/drivers/ata/pata_rz1000.c
index 4533b6357d99..e4e5ea423fef 100644
--- a/drivers/ata/pata_rz1000.c
+++ b/drivers/ata/pata_rz1000.c
@@ -90,6 +90,7 @@ static struct scsi_host_template rz1000_sht = {
90 .proc_name = DRV_NAME, 90 .proc_name = DRV_NAME,
91 .dma_boundary = ATA_DMA_BOUNDARY, 91 .dma_boundary = ATA_DMA_BOUNDARY,
92 .slave_configure = ata_scsi_slave_config, 92 .slave_configure = ata_scsi_slave_config,
93 .slave_destroy = ata_scsi_slave_destroy,
93 .bios_param = ata_std_bios_param, 94 .bios_param = ata_std_bios_param,
94}; 95};
95 96
diff --git a/drivers/ata/pata_sc1200.c b/drivers/ata/pata_sc1200.c
index 067d9d223e35..0c75dae74764 100644
--- a/drivers/ata/pata_sc1200.c
+++ b/drivers/ata/pata_sc1200.c
@@ -193,6 +193,7 @@ static struct scsi_host_template sc1200_sht = {
193 .proc_name = DRV_NAME, 193 .proc_name = DRV_NAME,
194 .dma_boundary = ATA_DMA_BOUNDARY, 194 .dma_boundary = ATA_DMA_BOUNDARY,
195 .slave_configure = ata_scsi_slave_config, 195 .slave_configure = ata_scsi_slave_config,
196 .slave_destroy = ata_scsi_slave_destroy,
196 .bios_param = ata_std_bios_param, 197 .bios_param = ata_std_bios_param,
197}; 198};
198 199
diff --git a/drivers/ata/pata_serverworks.c b/drivers/ata/pata_serverworks.c
index 5bbf76ec14a4..be7f60efcb61 100644
--- a/drivers/ata/pata_serverworks.c
+++ b/drivers/ata/pata_serverworks.c
@@ -325,6 +325,7 @@ static struct scsi_host_template serverworks_sht = {
325 .proc_name = DRV_NAME, 325 .proc_name = DRV_NAME,
326 .dma_boundary = ATA_DMA_BOUNDARY, 326 .dma_boundary = ATA_DMA_BOUNDARY,
327 .slave_configure = ata_scsi_slave_config, 327 .slave_configure = ata_scsi_slave_config,
328 .slave_destroy = ata_scsi_slave_destroy,
328 .bios_param = ata_std_bios_param, 329 .bios_param = ata_std_bios_param,
329}; 330};
330 331
diff --git a/drivers/ata/pata_sil680.c b/drivers/ata/pata_sil680.c
index 4a2b72b4be8a..11942fd03b55 100644
--- a/drivers/ata/pata_sil680.c
+++ b/drivers/ata/pata_sil680.c
@@ -225,6 +225,7 @@ static struct scsi_host_template sil680_sht = {
225 .proc_name = DRV_NAME, 225 .proc_name = DRV_NAME,
226 .dma_boundary = ATA_DMA_BOUNDARY, 226 .dma_boundary = ATA_DMA_BOUNDARY,
227 .slave_configure = ata_scsi_slave_config, 227 .slave_configure = ata_scsi_slave_config,
228 .slave_destroy = ata_scsi_slave_destroy,
228 .bios_param = ata_std_bios_param, 229 .bios_param = ata_std_bios_param,
229}; 230};
230 231
diff --git a/drivers/ata/pata_sis.c b/drivers/ata/pata_sis.c
index b9ffafb4198c..91e85f90941d 100644
--- a/drivers/ata/pata_sis.c
+++ b/drivers/ata/pata_sis.c
@@ -545,6 +545,7 @@ static struct scsi_host_template sis_sht = {
545 .proc_name = DRV_NAME, 545 .proc_name = DRV_NAME,
546 .dma_boundary = ATA_DMA_BOUNDARY, 546 .dma_boundary = ATA_DMA_BOUNDARY,
547 .slave_configure = ata_scsi_slave_config, 547 .slave_configure = ata_scsi_slave_config,
548 .slave_destroy = ata_scsi_slave_destroy,
548 .bios_param = ata_std_bios_param, 549 .bios_param = ata_std_bios_param,
549}; 550};
550 551
diff --git a/drivers/ata/pata_sl82c105.c b/drivers/ata/pata_sl82c105.c
index 08a6dc88676f..dc1cfc6d805b 100644
--- a/drivers/ata/pata_sl82c105.c
+++ b/drivers/ata/pata_sl82c105.c
@@ -237,6 +237,7 @@ static struct scsi_host_template sl82c105_sht = {
237 .proc_name = DRV_NAME, 237 .proc_name = DRV_NAME,
238 .dma_boundary = ATA_DMA_BOUNDARY, 238 .dma_boundary = ATA_DMA_BOUNDARY,
239 .slave_configure = ata_scsi_slave_config, 239 .slave_configure = ata_scsi_slave_config,
240 .slave_destroy = ata_scsi_slave_destroy,
240 .bios_param = ata_std_bios_param, 241 .bios_param = ata_std_bios_param,
241}; 242};
242 243
diff --git a/drivers/ata/pata_triflex.c b/drivers/ata/pata_triflex.c
index 9640f80e8b0d..bfda1f7e760a 100644
--- a/drivers/ata/pata_triflex.c
+++ b/drivers/ata/pata_triflex.c
@@ -192,6 +192,7 @@ static struct scsi_host_template triflex_sht = {
192 .proc_name = DRV_NAME, 192 .proc_name = DRV_NAME,
193 .dma_boundary = ATA_DMA_BOUNDARY, 193 .dma_boundary = ATA_DMA_BOUNDARY,
194 .slave_configure = ata_scsi_slave_config, 194 .slave_configure = ata_scsi_slave_config,
195 .slave_destroy = ata_scsi_slave_destroy,
195 .bios_param = ata_std_bios_param, 196 .bios_param = ata_std_bios_param,
196}; 197};
197 198
diff --git a/drivers/ata/pata_via.c b/drivers/ata/pata_via.c
index 1e7be9eee9c3..c5f1616d224d 100644
--- a/drivers/ata/pata_via.c
+++ b/drivers/ata/pata_via.c
@@ -295,6 +295,7 @@ static struct scsi_host_template via_sht = {
295 .proc_name = DRV_NAME, 295 .proc_name = DRV_NAME,
296 .dma_boundary = ATA_DMA_BOUNDARY, 296 .dma_boundary = ATA_DMA_BOUNDARY,
297 .slave_configure = ata_scsi_slave_config, 297 .slave_configure = ata_scsi_slave_config,
298 .slave_destroy = ata_scsi_slave_destroy,
298 .bios_param = ata_std_bios_param, 299 .bios_param = ata_std_bios_param,
299}; 300};
300 301
Torvalds <torvalds@g5.osdl.org> 2005-09-07 19:57:20 -0400 [PATCH] Clean up the old digi support and rescue it' href='/cgit/cgit.cgi/litmus-rt.git/commit/drivers/char/epca.c?h=v2.6.32-rc5&id=f2cf8e25ba4cf4e0881e612125858b4eed563ee4'>f2cf8e25ba4c
1da177e4c3f4
1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4
1da177e4c3f4
1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4

ae0b78d09dc1





191260a01257

1da177e4c3f4
f2cf8e25ba4c
ae0b78d09dc1



191260a01257


f2cf8e25ba4c
1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4
6ed1dbaeadd6
ae0b78d09dc1
6ed1dbaeadd6


1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4
fcc8ac1825d3
6ed1dbaeadd6


191260a01257
ae0b78d09dc1
1da177e4c3f4
d1c815e549ff
1da177e4c3f4

bc9a5154a24d
f2cf8e25ba4c
1da177e4c3f4

f2cf8e25ba4c

1da177e4c3f4

d1c815e549ff
1da177e4c3f4



ae0b78d09dc1
0211a9c8508b
ae0b78d09dc1


f2cf8e25ba4c
1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4


ae0b78d09dc1
11fb09bfabd6

1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4

d1c815e549ff
ae0b78d09dc1




d1c815e549ff
ae0b78d09dc1



1da177e4c3f4
d1c815e549ff
ae0b78d09dc1



d1c815e549ff
1da177e4c3f4



bc9a5154a24d
1da177e4c3f4
ae0b78d09dc1



f2cf8e25ba4c

1da177e4c3f4

1da177e4c3f4
ae0b78d09dc1



191260a01257
1da177e4c3f4
d1c815e549ff


1da177e4c3f4
6ed1dbaeadd6
1da177e4c3f4
1da177e4c3f4
ae0b78d09dc1



d1c815e549ff


1da177e4c3f4
1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4
d1c815e549ff

1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4
1da177e4c3f4
ae0b78d09dc1
f2cf8e25ba4c
1da177e4c3f4
1da177e4c3f4
1da177e4c3f4
1da177e4c3f4
1da177e4c3f4


1da177e4c3f4


1da177e4c3f4


191260a01257

f2cf8e25ba4c
1da177e4c3f4




ae0b78d09dc1
1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4

ae0b78d09dc1
f2cf8e25ba4c
ae0b78d09dc1
3969ffba71d3




ae0b78d09dc1


1da177e4c3f4

1da177e4c3f4
b68e31d0ebbc
1da177e4c3f4






1da177e4c3f4






dcbf1280796b
1da177e4c3f4

6ed1dbaeadd6

fcc8ac1825d3
6ed1dbaeadd6

191260a01257
1da177e4c3f4








f2cf8e25ba4c
ae0b78d09dc1
1da177e4c3f4


dabad0568a59
1da177e4c3f4
1da177e4c3f4


1da177e4c3f4


dabad0568a59
1da177e4c3f4

dabad0568a59

1da177e4c3f4
ae0b78d09dc1








1da177e4c3f4

ae0b78d09dc1


1da177e4c3f4
ae0b78d09dc1





1da177e4c3f4
ae0b78d09dc1



191260a01257
1da177e4c3f4
ae0b78d09dc1














1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4


1da177e4c3f4
ae0b78d09dc1

1da177e4c3f4







606d099cdd10

dcbf1280796b
1da177e4c3f4












606d099cdd10

1da177e4c3f4



ae0b78d09dc1





1da177e4c3f4



ae0b78d09dc1










1da177e4c3f4

ae0b78d09dc1











1da177e4c3f4
ae0b78d09dc1










1da177e4c3f4
ae0b78d09dc1










1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4
ae0b78d09dc1












1da177e4c3f4
ae0b78d09dc1



















191260a01257
ae0b78d09dc1


1da177e4c3f4
dabad0568a59




1da177e4c3f4
dabad0568a59




1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4


1da177e4c3f4

dabad0568a59







ae0b78d09dc1
1da177e4c3f4

ae0b78d09dc1
1da177e4c3f4
bc9a5154a24d

1da177e4c3f4
bc9a5154a24d
ae0b78d09dc1

1da177e4c3f4
ae0b78d09dc1




1da177e4c3f4
ae0b78d09dc1







f2cf8e25ba4c
ae0b78d09dc1













f2cf8e25ba4c

191260a01257
1da177e4c3f4
f2cf8e25ba4c


191260a01257
f2cf8e25ba4c
1da177e4c3f4






1da177e4c3f4

f2cf8e25ba4c
1da177e4c3f4
ae0b78d09dc1




bc9a5154a24d
1da177e4c3f4
ae0b78d09dc1




bc9a5154a24d
1da177e4c3f4
ae0b78d09dc1



191260a01257

1da177e4c3f4


ae0b78d09dc1
1da177e4c3f4

ae0b78d09dc1




f2cf8e25ba4c
bc9a5154a24d
1da177e4c3f4
9ae7b08ad5c9
c1314a49d790
ae0b78d09dc1

c4028958b6ec
ae0b78d09dc1
1da177e4c3f4
f2cf8e25ba4c

ae0b78d09dc1






























1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4


ae0b78d09dc1
1da177e4c3f4


ae0b78d09dc1
1da177e4c3f4


3969ffba71d3
1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4



bc9a5154a24d


f2cf8e25ba4c
ae0b78d09dc1


















1da177e4c3f4
ae0b78d09dc1

191260a01257

ae0b78d09dc1
191260a01257


ae0b78d09dc1








1da177e4c3f4

bc9a5154a24d
ae0b78d09dc1
1da177e4c3f4
bc9a5154a24d
ae0b78d09dc1
1da177e4c3f4





1da177e4c3f4


1da177e4c3f4

f2cf8e25ba4c

ae0b78d09dc1
f2cf8e25ba4c



ae0b78d09dc1
1da177e4c3f4






ae0b78d09dc1
6ed1dbaeadd6
f2cf8e25ba4c

ae0b78d09dc1
1da177e4c3f4
ae0b78d09dc1
191260a01257


1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4

ae0b78d09dc1
1da177e4c3f4

191260a01257
1da177e4c3f4


ae0b78d09dc1







1da177e4c3f4



ae0b78d09dc1
1da177e4c3f4
ae0b78d09dc1




f2cf8e25ba4c

1da177e4c3f4



ae0b78d09dc1



f2cf8e25ba4c

1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4

1da177e4c3f4

f2cf8e25ba4c
f2cf8e25ba4c
1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4

ae0b78d09dc1
bc9a5154a24d
1da177e4c3f4

f2cf8e25ba4c
bc9a5154a24d
f2cf8e25ba4c


1da177e4c3f4
ae0b78d09dc1



1da177e4c3f4



1da177e4c3f4
191260a01257


1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4
f2cf8e25ba4c
ae0b78d09dc1





f2cf8e25ba4c

1da177e4c3f4

f2cf8e25ba4c
1da177e4c3f4





191260a01257

1da177e4c3f4

3969ffba71d3
f2cf8e25ba4c
3969ffba71d3
1da177e4c3f4
1da177e4c3f4

ae0b78d09dc1
1da177e4c3f4
1da177e4c3f4
c3301a5c0480
191260a01257

52d417388d15
191260a01257

1da177e4c3f4
ae0b78d09dc1
ae0b78d09dc1

1da177e4c3f4
33f0f88f1c51
ae0b78d09dc1


1da177e4c3f4

ae0b78d09dc1

191260a01257

1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4

ae0b78d09dc1

3969ffba71d3
ae0b78d09dc1
191260a01257
1da177e4c3f4
f2cf8e25ba4c


1da177e4c3f4
1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4

191260a01257
ae0b78d09dc1
bc9a5154a24d
1da177e4c3f4






1da177e4c3f4
1da177e4c3f4
1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4
f2cf8e25ba4c
ae0b78d09dc1




f2cf8e25ba4c
1da177e4c3f4

f2cf8e25ba4c
191260a01257



1da177e4c3f4

f2cf8e25ba4c


1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4
f2cf8e25ba4c




1da177e4c3f4
1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4

ae0b78d09dc1
1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4


f2cf8e25ba4c

1da177e4c3f4
ae0b78d09dc1



1da177e4c3f4
ae0b78d09dc1


1da177e4c3f4
ae0b78d09dc1





1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4

f2cf8e25ba4c
1da177e4c3f4

























ae0b78d09dc1
1da177e4c3f4
1da177e4c3f4
ae0b78d09dc1

191260a01257
1da177e4c3f4


ae0b78d09dc1
1da177e4c3f4

ae0b78d09dc1
1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4
ae0b78d09dc1



1da177e4c3f4
ae0b78d09dc1







1da177e4c3f4
ae0b78d09dc1

8dfba4d71b77
ae0b78d09dc1
















f2cf8e25ba4c
ae0b78d09dc1






1da177e4c3f4
1da177e4c3f4
1da177e4c3f4
1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4
606d099cdd10
bc9a5154a24d
1da177e4c3f4


11fb09bfabd6
1da177e4c3f4

1da177e4c3f4
f2cf8e25ba4c

bc9a5154a24d
f2cf8e25ba4c
1da177e4c3f4
ae0b78d09dc1




1da177e4c3f4

ae0b78d09dc1




1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4



ae0b78d09dc1




1da177e4c3f4
c3301a5c0480
1da177e4c3f4
c3301a5c0480
1da177e4c3f4
1da177e4c3f4
1da177e4c3f4
1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4
ae0b78d09dc1



191260a01257


ae0b78d09dc1
1da177e4c3f4

ae0b78d09dc1




f2cf8e25ba4c
1da177e4c3f4

f2cf8e25ba4c

1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4
ae0b78d09dc1



1da177e4c3f4

1da177e4c3f4

f2cf8e25ba4c
1da177e4c3f4
ae0b78d09dc1






1da177e4c3f4



1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4

ae0b78d09dc1



1da177e4c3f4

f2cf8e25ba4c
1da177e4c3f4

ae0b78d09dc1



1da177e4c3f4

ae0b78d09dc1
1da177e4c3f4
f2cf8e25ba4c
3969ffba71d3
ae0b78d09dc1
1da177e4c3f4
606d099cdd10
bc9a5154a24d
f2cf8e25ba4c

1da177e4c3f4
1da177e4c3f4
ae0b78d09dc1



1da177e4c3f4
1da177e4c3f4

1da177e4c3f4

1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4

ae0b78d09dc1



f2cf8e25ba4c
1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4

1da177e4c3f4


ae0b78d09dc1
191260a01257
bc9a5154a24d
1da177e4c3f4


33f0f88f1c51
1da177e4c3f4

f2cf8e25ba4c

191260a01257

33f0f88f1c51
1da177e4c3f4
1da177e4c3f4
191260a01257

1da177e4c3f4
ae0b78d09dc1




191260a01257

ae0b78d09dc1
33f0f88f1c51
1da177e4c3f4

ae0b78d09dc1



f2cf8e25ba4c
1da177e4c3f4

1da177e4c3f4
1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4
3969ffba71d3
ae0b78d09dc1
1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4

ae0b78d09dc1



1da177e4c3f4

ae0b78d09dc1
f2cf8e25ba4c


1da177e4c3f4


ae0b78d09dc1
1da177e4c3f4


f2cf8e25ba4c


1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4


ae0b78d09dc1
1da177e4c3f4
ae0b78d09dc1



1da177e4c3f4
f2cf8e25ba4c

ae0b78d09dc1
1da177e4c3f4
ae0b78d09dc1







8dfba4d71b77
ae0b78d09dc1












1da177e4c3f4
1da177e4c3f4


c9f19e96a2f3
bc9a5154a24d
1da177e4c3f4





f2cf8e25ba4c
1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4


1da177e4c3f4

1da177e4c3f4

1da177e4c3f4

1da177e4c3f4

1da177e4c3f4

1da177e4c3f4





c9f19e96a2f3
1da177e4c3f4

f2cf8e25ba4c

1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4
ae0b78d09dc1


1da177e4c3f4
















1da177e4c3f4
ae0b78d09dc1



191260a01257
1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4


191260a01257

ae0b78d09dc1
1da177e4c3f4
1da177e4c3f4


bc9a5154a24d
c9f19e96a2f3
1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4

ae0b78d09dc1
f2cf8e25ba4c
ae0b78d09dc1
ae0b78d09dc1
















1da177e4c3f4
ae0b78d09dc1













37925e050379
ae0b78d09dc1
191260a01257

f2cf8e25ba4c
191260a01257
f2cf8e25ba4c
ae0b78d09dc1


c65c9bc3efa5

ae0b78d09dc1
37925e050379
ae0b78d09dc1










1da177e4c3f4
1da177e4c3f4
ae0b78d09dc1

1da177e4c3f4
ae0b78d09dc1




191260a01257
ae0b78d09dc1






























1da177e4c3f4
ae0b78d09dc1


191260a01257

f2cf8e25ba4c
1da177e4c3f4
1da177e4c3f4
f2cf8e25ba4c
ae0b78d09dc1

191260a01257

f2cf8e25ba4c
ae0b78d09dc1

191260a01257

1da177e4c3f4

ae0b78d09dc1

1da177e4c3f4
ae0b78d09dc1






1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4
606d099cdd10
ae0b78d09dc1
1da177e4c3f4

ae0b78d09dc1



191260a01257


f2cf8e25ba4c
1da177e4c3f4


f2cf8e25ba4c
1da177e4c3f4






52d417388d15
1da177e4c3f4
1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4
c4028958b6ec
ae0b78d09dc1
c4028958b6ec
1da177e4c3f4
ae0b78d09dc1
a419aef8b858
1da177e4c3f4
f2cf8e25ba4c
ae0b78d09dc1
191260a01257
52d417388d15
c3301a5c0480

ae0b78d09dc1
1da177e4c3f4
3969ffba71d3
ae0b78d09dc1

1da177e4c3f4
ae0b78d09dc1



1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4

ae0b78d09dc1



191260a01257

f2cf8e25ba4c
191260a01257

1da177e4c3f4
1da177e4c3f4
1da177e4c3f4
1da177e4c3f4

1da177e4c3f4
f2cf8e25ba4c
ae0b78d09dc1

1da177e4c3f4

ae0b78d09dc1
1da177e4c3f4
ae0b78d09dc1



191260a01257

1da177e4c3f4
f2cf8e25ba4c
191260a01257



bc9a5154a24d
1da177e4c3f4


f2cf8e25ba4c
1da177e4c3f4
1da177e4c3f4
1da177e4c3f4

1da177e4c3f4
f2cf8e25ba4c
ae0b78d09dc1











1da177e4c3f4

ae0b78d09dc1



191260a01257

f2cf8e25ba4c

1da177e4c3f4

1da177e4c3f4


f2cf8e25ba4c
ae0b78d09dc1

1da177e4c3f4

ae0b78d09dc1
1da177e4c3f4

ae0b78d09dc1



191260a01257



f2cf8e25ba4c

1da177e4c3f4
1da177e4c3f4
1da177e4c3f4


f2cf8e25ba4c
ae0b78d09dc1

1da177e4c3f4
dcbf1280796b
ae0b78d09dc1
c9f19e96a2f3
1da177e4c3f4

dcbf1280796b
252883e512c6




dcbf1280796b
f2cf8e25ba4c
1da177e4c3f4
ae0b78d09dc1






1da177e4c3f4

f2cf8e25ba4c
dcbf1280796b
ae0b78d09dc1
1da177e4c3f4
f2cf8e25ba4c
1da177e4c3f4
ae0b78d09dc1
bc9a5154a24d
1da177e4c3f4
1da177e4c3f4

ae0b78d09dc1



f2cf8e25ba4c
1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4
88e882497d15

ae0b78d09dc1
1da177e4c3f4




ae0b78d09dc1







1da177e4c3f4





ae0b78d09dc1







191260a01257

ae0b78d09dc1





191260a01257

ae0b78d09dc1





































1da177e4c3f4
ae0b78d09dc1





1da177e4c3f4
ae0b78d09dc1






191260a01257

ae0b78d09dc1









1da177e4c3f4


f2cf8e25ba4c
1da177e4c3f4

1da177e4c3f4


1da177e4c3f4



1da177e4c3f4


ae0b78d09dc1














1da177e4c3f4
ae0b78d09dc1
































1da177e4c3f4
ae0b78d09dc1



1da177e4c3f4
ae0b78d09dc1





1da177e4c3f4
ae0b78d09dc1









































191260a01257
ae0b78d09dc1

1da177e4c3f4
ae0b78d09dc1






1da177e4c3f4

1da177e4c3f4

f2cf8e25ba4c

1da177e4c3f4

ae0b78d09dc1
1da177e4c3f4
1da177e4c3f4
191260a01257
1da177e4c3f4
ae0b78d09dc1

1da177e4c3f4
1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4
88e882497d15










1da177e4c3f4






1da177e4c3f4










ae0b78d09dc1
1da177e4c3f4












ae0b78d09dc1
191260a01257
1da177e4c3f4
191260a01257
1da177e4c3f4






f2cf8e25ba4c

1da177e4c3f4
191260a01257

1da177e4c3f4



191260a01257

1da177e4c3f4
191260a01257
1da177e4c3f4



191260a01257

1da177e4c3f4



191260a01257
1da177e4c3f4
191260a01257
1da177e4c3f4



ae0b78d09dc1



1da177e4c3f4
ae0b78d09dc1
1da177e4c3f4

ae0b78d09dc1
1da177e4c3f4


191260a01257
1da177e4c3f4
191260a01257
1da177e4c3f4
191260a01257
1da177e4c3f4














11fb09bfabd6
ae0b78d09dc1
191260a01257
1da177e4c3f4




f2cf8e25ba4c
1da177e4c3f4

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
  
                                               
 


                                                                

                                                        







                                                                            
 









                                                                         
 



                         
                        





                           
                           

                            

                          
                           

                      
 





                       
                                          

                                                                       
                                                             






                                                               





                                         

                                                                               


                                                                            
   
                                  
 

                                                                   

                                           




                                                                            






                                                                               

                                               




                                                                               



                                          



                                                                           







                                                              


                                                                          





                                                                    


                                                                        





                                                                   



                                                                              





                                                                   


                                                                            







                                                                    
 

                                                          

                                                         
                                                               
                                           



                                                   








                                                              
                                                                   
                                                       
                                                     
                                                         
                                                     
                                                                   
                                                 

                                          
                                                
                                                  
                                                           
                                                                          
 
                                                                     
                         
                          
 








                                                                               
                                                            
 
                            

 
                                                             
 
                             

 
                                           
 
                                   

 
                                       
 
                               

 
                                       
 
                               

 
                                      
 
                              
 
                                            
 
                                    

 
                                            
 
                                    

 
                                                                               
                                                                  
 
                                          

 
                                                                   
 
                               

 
                                                 
 
                                                 

 
                                             



                                                    
                                             



                                                    
                                            




                                                                         
                                                                 
 
                                          

 
                                                                  
 
                                                    
                               

 
                                                
 
                                                 

 
                                            
 
                                                    

 
                                            
 
                                                    

 
                                           





                                                                            
                                                                 
 
                                               

 
                                                                  
 
                                                

 
                                                
 
                                        

 
                                            
 
                                        

 
                                            
 
                                        

 
                                           
 
                                   

 
                                                 
 
                                                                       

 
                                                 
 
                                                                  

 






                                                                               
                                                                  


 
                                                                   


 
                                                 


 
                                             


 
                                             


 
                                            


 
                                                  


 
                                                  


 
                                                            






                                                                              
                  
                                                      
                                                                             


                                                    
         
                    
 
 

                                                         



                                                                               

                                   
 

                                           
 
                                                                        
 
 
                                                               
 
                           
                              



                                                                         
                                


                         
 
                                                       
                       
 
                             

                          

                                                             
                                     
 
 
                                                                
 
                            
                                      
                                          
 
                                               

                       
                                             
 
                        

                         




                                                                           
               
                                      
 
                                                                              
                                             


                                                                      

                   



                                                                               
                                                                          
                                          
                                                  
 

                                             
 
                           
 



                                                                         

                                
                                     
                                     

                                  
                                                                        
                                           

         
 
                                           
                                                                     
 



                                


                            
                                      
 







                                                                               
 



                                                                         

                                


                                                                              

                             
                         
 
                                             

                        

                                            
 

                                        

                           









                                                                               

                                                  

                                             

                                         




                                                                               
                                                     
                    

                                                     
 



                                                                             
                                                       
                                                            




                                          
                                   


                                       
         

                                  
                               
 
                                                
                                           
                                     

                   
                                                  

                            
 
                                                
 
                       


                                
                                      



                                                                         

                                
                                                     


                                   

                                                             
 

                                                

                                            

                                         

                                                
                                                                 
                                                   
                                             

                           
                                                          
         

                                                  
 

                                                     
 




                                       
                                      



                                                                         

                                
                         
 
                                             


                         


                                          
 

                                                                       
                          

                                                                   
                                            




                                                                               

                                         
                                                
                                                      






                                                                            
                                                   
                                                   
                                                           
                   
                                                  
                                                           

                     

                                                   
 


                            
                                      



                                                                         

                                

                       
                                             
                        
                           
                                
                                                                              
                                                    
                   
                                                  
                        
 

                                                  





                                                                         

                                
                                    
                                                     



                                                                          


                                                               
                                                          
         
 
 
                                                     
 


                                                                      
                 
 
 
                                                          


 
                                                             
 
                           
                              

                                   
                                      
                          

                          

                                       

                                  
                         



                                                          
          
                                                                             


                                                                             
                                  
                                                          
                                                                                                            
                                                         
                                                                                                                 
                                                        
                                                                                                                      
                                                         
                                                                                                                    
                                                            
                                                                                                              
                                                      
                                                                                                              
                                                                           
                               
         
                                                                            


                                                                           
 

                         
                                        
                               

         
                                              




                                                                             
                      



                                                                               
                              
                        



                                                                            
                              



                                              
                                       
 



                                                                               

                                

                                                       
 



                                                                         
                           
                   


                                                   
 
                                                           
                   
                              



                                                                               


                                              
                        
                                     
                              
                   

                                                   
                 
 
 
                                        
 
                         
 
                              
 
                                     


                                         


                                     


                                    

                                                                 
                                                                                               




                                  
                                               
                                  
                                             

                                                                                    
                 
                                   
                                                                      




                                                                             


                                            

                              
 
                                             






                                              






                                      
                                  

  

                                                         
                                

  
                                                               








                                         
                               
 


                                   
                          
 


                                        


                                                
                          

                                              

                          
 








                                                                               

                                     


                                                             
 





                                                                               
 



                                                                     
                                                                           
 














                                                                               
                             
                                  


                                               
                                       

                                      







                                                                               

                                                
                                                                           












                                                                    

                                              



                                               





                                                                               



                                             










                                                              

                              











                                                              
 










                                                              
 










                                                             
 
                        
                              
                 
 












                                                                               
 



















                                                                
                                                                                                                   


                              
 




                                                                     
 




                                                                    
 
                                                                           


                                                

                 







                                         
 

                                           
 
              

                                       
                              
                                      

                                    
 




                                                                             
 







                                                                               
                                                                     













                                                                               

                                                                              
                                                                                         
                                         


                                                          
                                                                           
         






                                                                             

                                                                        
                                     
 




                                                                              
                                  
 




                                                                              
                              
 



                                                                            

                                                                       


                                                                            
                               

                        




                                                                              
                                    
                               
 
                                         
                                              

                                 
                                                   
                                         
 

                                                     






























                                                                     
 
                                         


                                                              
                        


                                            
 


                                            
                                                  
 
                                



                                                           


                                        
                                   


















                                                                       
 

                            

                                                                             
                                                                            


                                                                             








                                                                             

                                  
                                                     
 
                                  
                                                     
 





                                                                              


                                                                     

                                                                         

                                         
 



                                                  
 






                                   
 
                                          

                                                          
         
 
                        


                                                                              
                         
 

                                           
 

                            
                                


                              







                                                                             



                                                                      
                                 
 




                                                                              

                                                     



                                 



                                                                               

                                                 
 
                                                                  

                                     

                           
                                                          
                                 
                                                    
 

                            
 
                               

                                      
                              
                                      


                                
 



                                                                          



                                                                           
                            


                                                               
                                    
                                                              
                                                           
                                          
                                                             
                                            





                                                                           

                                            

                                     
                                                                





                                                    

                                 

                                  
                                                  
                                                             
                                              
                                         

                                                                 
                                           
                                                                      
                                           
                                                                         

                                                              
                                                                                   

                                                                              
                         
                 

                                                
                                                                
                                                                        


                                                                

                                                                    

                                                         

                                                             
                                                           
                                                                  

                                                                      

                                 
                                          
                 
     
                                


                                                                                
                                   
                                                  
 

                                                                 
                                                                          
 
                                






                                                                              
                       
                         
                                                                              
                                        
                                        
                                               




                                                                         
                                                            

                                            
                                                          



                                                                                      

                       


                                                                       
                                                       
                                                                     
                                                  




                                                                       
         
                                                    
                                        

                           
                  
                        
                                  


                                                                                      

                                                    
                                                               



                                                                             
                                                     


                              
 





                                                                              
                                                                  
 

                         
                              

























                                                              
 
 
                                                                  

                                                                   
                                                                               


                                                
 

                                                                  
 
                         
                              
                                                    



                                                                             
                                 







                                                                          
                                                                              

                                                                      
                                                                              
















                                                                               
                              






                                                                              
                                                              
                                 
         
                   
 
 
                                
                                                                 
 
                             
                            
                                      


                                           
                                                  

                         
                          

                                                                     
                                           
                                          
                                                                               




                                                                           

                                                               




                                                                               
                                                        
                                             



                                                                            




                                                                               
                                         
                                                                    
                    
                                                                  
                                             
                                      
                                                
                                    
                                     
                                     



                                                                           


                                                                    
                   

                                                                            




                                                                              
                                   

                                                                               

                                             
                                                
                                  
                                  



                                                                           

                                                        

                                                   
                                 
                                  






                                                                               



                                                                         
         
                                                                        

                                           



                                                                          

                                                                       
                                                                            

                                             



                                                                                

                                                                            
 
 
                       
                                                                    
 
                     
                                   
                                      

                                                
                              
 



                                                                              
                        

                                        

                                  
                         
                    

                                     



                                                                              
                               
                         
                                           

                                                  


                                
                                                                         
                                                    
                                        


                       
                                                                  

                       

                                     

                                                                           
                                                          
         
                    

                                                           
                                                                              




                                                                             

                                                                         
                                                            
                                                                             

                                    



                                                                         
                                                                  

                                                      
                                                   
                        
                                
                                             
                               
 
 
                                                                

                                                        



                                            

                                
                                                                      


                                                                          


                                                   
                                       


                                                            


                                                                            
 
                                                                              


                                               
                 
 



                                                         
 

                                                                                        
                                               
                         







                                                                        
                                                                          












                                                                              
 


                                                                 
                                              
                                      





                                      
                               
 
                                             
                        
                                  
                   
                                                  


                                   

                                   

                                   

                                   

                                  

                                  





                                                                 
                                              

                            

                               
 
                                             
          


                                                                               
















                                           
                        



                                                                         
                           
                   
                                                  


                 

                                                                            
 
                         


                                    
                                      
                                              
                                               
 

                                 
            
                               
                      
















                                                                  
 













                                                                     
                              
                                        

                                                                       
                                                             
                                                   
                                                                  


                                                              

                                                                   
                 
                                










                                                                       
                         
 

                                                     
 




                                                                           
                                   






























                                                              
 


                                                                

                                                                     
                                                             
                                        
 
                                                  

                                                                          

                                                                    
                                

                                                                            

                                                                      

                         

                                                        
 






                                                                  
                 
 
 
                                                                                
 

                            



                                                                         


                                                       
                                                     


                                   
                                                          






                                                                  
                                                                   
 
                                    
 
 
                                                
 
                                                                        
                                                        
                                            
                                                                     
 
                                              
                                                                                
                                                
                                                                           

                                                                 
                         
                 
                                  

         
 



                                                                            
                                           
 

                            



                                                                         

                                
                                                     

                                                              
                                        
                                                      
                                                        

                                                     
                                                      
                                                          

         

                                            
 
                           



                                                                         

                                
                                    
                                                     



                                                                      
                                                      


                                                      
                                                     
                                                                       
                                                         

                                                      
                                                     
                                                          











                                                                              

                            



                                                                         

                                

                                                         

                                                        


                                                     
                                                          

         

                                                 
 

                            



                                                                         



                                                                      

                                                     
                                        
                                                         


                                                      
                                                          

         
 
                                                          
 
                                              

                            
                       




                               
 
                                             
                        






                                                                               

                                              
                                                  
                 
 
 
                               
                                                                         
 
                                                    
 

                                     



                                                                            
                               
                   
 
 

                                                   
 




                                            







                                                                           





                                                                            







                                                                               

                                                                              





                                                                              

                                                                                          





































                                                                                                             
 





                                                                                                                
                                       






                                                    

                                                                                         









                                                                                          


                                        
                                                                      

                                                       


                                                                             



                                    


                                                         














                                                                                        
 
































                                                                                             
 



                                            
 





                                                                                            
 









































                                                                                             
                                                                                             

                                                                     
                                       






                                                                         

                           

                                               

                                                                        

                       
 
                                                     
                                                        
                                                                          
                                                               

                                                                                        
                                                                               
                    
 
 










                                                     






                       










                                                                     
                                                        












                                                                 
 
                                                                         
                    
                                                                              






                                                                    

                                                      
 

                                                                          



                                                        

                                                                             
                                             
                                                                



                                                        

                                                                          



                                          
                                                                           
                                                
                                                                



                                                        



                                                                          
                                  
                                                     

                                                     
 


                       
                                           
                     
                                               
                   
                                                           














                                                                                   
                                
 
                                                     




                                                 
 

                      
/*
	Copyright (C) 1996  Digi International.

	For technical support please email digiLinux@dgii.com or
	call Digi tech support at (612) 912-3456

	** This driver is no longer supported by Digi **

	Much of this design and code came from epca.c which was
	copyright (C) 1994, 1995 Troy De Jongh, and subsquently
	modified by David Nugent, Christoph Lameter, Mike McLagan.

	This program is free software; you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation; either version 2 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program; if not, write to the Free Software
	Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* See README.epca for change history --DAT*/

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/serial.h>
#include <linux/delay.h>
#include <linux/ctype.h>
#include <linux/tty.h>
#include <linux/tty_flip.h>
#include <linux/slab.h>
#include <linux/smp_lock.h>
#include <linux/ioport.h>
#include <linux/interrupt.h>
#include <linux/uaccess.h>
#include <linux/io.h>
#include <linux/spinlock.h>
#include <linux/pci.h>
#include "digiPCI.h"


#include "digi1.h"
#include "digiFep1.h"
#include "epca.h"
#include "epcaconfig.h"

#define VERSION            "1.3.0.1-LK2.6"

/* This major needs to be submitted to Linux to join the majors list */
#define DIGIINFOMAJOR       35  /* For Digi specific ioctl */


#define MAXCARDS 7
#define epcaassert(x, msg)  if (!(x)) epca_error(__LINE__, msg)

#define PFX "epca: "

static int nbdevs, num_cards, liloconfig;
static int digi_poller_inhibited = 1 ;

static int setup_error_code;
static int invalid_lilo_config;

/*
 * The ISA boards do window flipping into the same spaces so its only sane with
 * a single lock. It's still pretty efficient. This lock guards the hardware
 * and the tty_port lock guards the kernel side stuff like use counts. Take
 * this lock inside the port lock if you must take both.
 */
static DEFINE_SPINLOCK(epca_lock);

/* MAXBOARDS is typically 12, but ISA and EISA cards are restricted
   to 7 below. */
static struct board_info boards[MAXBOARDS];

static struct tty_driver *pc_driver;
static struct tty_driver *pc_info;

/* ------------------ Begin Digi specific structures -------------------- */

/*
 * digi_channels represents an array of structures that keep track of each
 * channel of the Digi product. Information such as transmit and receive
 * pointers, termio data, and signal definitions (DTR, CTS, etc ...) are stored
 * here. This structure is NOT used to overlay the cards physical channel
 * structure.
 */
static struct channel digi_channels[MAX_ALLOC];

/*
 * card_ptr is an array used to hold the address of the first channel structure
 * of each card. This array will hold the addresses of various channels located
 * in digi_channels.
 */
static struct channel *card_ptr[MAXCARDS];

static struct timer_list epca_timer;

/*
 * Begin generic memory functions. These functions will be alias (point at)
 * more specific functions dependent on the board being configured.
 */
static void memwinon(struct board_info *b, unsigned int win);
static void memwinoff(struct board_info *b, unsigned int win);
static void globalwinon(struct channel *ch);
static void rxwinon(struct channel *ch);
static void txwinon(struct channel *ch);
static void memoff(struct channel *ch);
static void assertgwinon(struct channel *ch);
static void assertmemoff(struct channel *ch);

/* ---- Begin more 'specific' memory functions for cx_like products --- */

static void pcxem_memwinon(struct board_info *b, unsigned int win);
static void pcxem_memwinoff(struct board_info *b, unsigned int win);
static void pcxem_globalwinon(struct channel *ch);
static void pcxem_rxwinon(struct channel *ch);
static void pcxem_txwinon(struct channel *ch);
static void pcxem_memoff(struct channel *ch);

/* ------ Begin more 'specific' memory functions for the pcxe ------- */

static void pcxe_memwinon(struct board_info *b, unsigned int win);
static void pcxe_memwinoff(struct board_info *b, unsigned int win);
static void pcxe_globalwinon(struct channel *ch);
static void pcxe_rxwinon(struct channel *ch);
static void pcxe_txwinon(struct channel *ch);
static void pcxe_memoff(struct channel *ch);

/* ---- Begin more 'specific' memory functions for the pc64xe and pcxi ---- */
/* Note : pc64xe and pcxi share the same windowing routines */

static void pcxi_memwinon(struct board_info *b, unsigned int win);
static void pcxi_memwinoff(struct board_info *b, unsigned int win);
static void pcxi_globalwinon(struct channel *ch);
static void pcxi_rxwinon(struct channel *ch);
static void pcxi_txwinon(struct channel *ch);
static void pcxi_memoff(struct channel *ch);

/* - Begin 'specific' do nothing memory functions needed for some cards - */

static void dummy_memwinon(struct board_info *b, unsigned int win);
static void dummy_memwinoff(struct board_info *b, unsigned int win);
static void dummy_globalwinon(struct channel *ch);
static void dummy_rxwinon(struct channel *ch);
static void dummy_txwinon(struct channel *ch);
static void dummy_memoff(struct channel *ch);
static void dummy_assertgwinon(struct channel *ch);
static void dummy_assertmemoff(struct channel *ch);

static struct channel *verifyChannel(struct tty_struct *);
static void pc_sched_event(struct channel *, int);
static void epca_error(int, char *);
static void pc_close(struct tty_struct *, struct file *);
static void shutdown(struct channel *, struct tty_struct *tty);
static void pc_hangup(struct tty_struct *);
static int pc_write_room(struct tty_struct *);
static int pc_chars_in_buffer(struct tty_struct *);
static void pc_flush_buffer(struct tty_struct *);
static void pc_flush_chars(struct tty_struct *);
static int pc_open(struct tty_struct *, struct file *);
static void post_fep_init(unsigned int crd);
static void epcapoll(unsigned long);
static void doevent(int);
static void fepcmd(struct channel *, int, int, int, int, int);
static unsigned termios2digi_h(struct channel *ch, unsigned);
static unsigned termios2digi_i(struct channel *ch, unsigned);
static unsigned termios2digi_c(struct channel *ch, unsigned);
static void epcaparam(struct tty_struct *, struct channel *);
static void receive_data(struct channel *, struct tty_struct *tty);
static int pc_ioctl(struct tty_struct *, struct file *,
			unsigned int, unsigned long);
static int info_ioctl(struct tty_struct *, struct file *,
			unsigned int, unsigned long);
static void pc_set_termios(struct tty_struct *, struct ktermios *);
static void do_softint(struct work_struct *work);
static void pc_stop(struct tty_struct *);
static void pc_start(struct tty_struct *);
static void pc_throttle(struct tty_struct *tty);
static void pc_unthrottle(struct tty_struct *tty);
static int pc_send_break(struct tty_struct *tty, int msec);
static void setup_empty_event(struct tty_struct *tty, struct channel *ch);

static int pc_write(struct tty_struct *, const unsigned char *, int);
static int pc_init(void);
static int init_PCI(void);

/*
 * Table of functions for each board to handle memory. Mantaining parallelism
 * is a *very* good idea here. The idea is for the runtime code to blindly call
 * these functions, not knowing/caring about the underlying hardware. This
 * stuff should contain no conditionals; if more functionality is needed a
 * different entry should be established. These calls are the interface calls
 * and are the only functions that should be accessed. Anyone caught making
 * direct calls deserves what they get.
 */
static void memwinon(struct board_info *b, unsigned int win)
{
	b->memwinon(b, win);
}

static void memwinoff(struct board_info *b, unsigned int win)
{
	b->memwinoff(b, win);
}

static void globalwinon(struct channel *ch)
{
	ch->board->globalwinon(ch);
}

static void rxwinon(struct channel *ch)
{
	ch->board->rxwinon(ch);
}

static void txwinon(struct channel *ch)
{
	ch->board->txwinon(ch);
}

static void memoff(struct channel *ch)
{
	ch->board->memoff(ch);
}
static void assertgwinon(struct channel *ch)
{
	ch->board->assertgwinon(ch);
}

static void assertmemoff(struct channel *ch)
{
	ch->board->assertmemoff(ch);
}

/* PCXEM windowing is the same as that used in the PCXR and CX series cards. */
static void pcxem_memwinon(struct board_info *b, unsigned int win)
{
	outb_p(FEPWIN | win, b->port + 1);
}

static void pcxem_memwinoff(struct board_info *b, unsigned int win)
{
	outb_p(0, b->port + 1);
}

static void pcxem_globalwinon(struct channel *ch)
{
	outb_p(FEPWIN, (int)ch->board->port + 1);
}

static void pcxem_rxwinon(struct channel *ch)
{
	outb_p(ch->rxwin, (int)ch->board->port + 1);
}

static void pcxem_txwinon(struct channel *ch)
{
	outb_p(ch->txwin, (int)ch->board->port + 1);
}

static void pcxem_memoff(struct channel *ch)
{
	outb_p(0, (int)ch->board->port + 1);
}

/* ----------------- Begin pcxe memory window stuff ------------------ */
static void pcxe_memwinon(struct board_info *b, unsigned int win)
{
	outb_p(FEPWIN | win, b->port + 1);
}

static void pcxe_memwinoff(struct board_info *b, unsigned int win)
{
	outb_p(inb(b->port) & ~FEPMEM, b->port + 1);
	outb_p(0, b->port + 1);
}

static void pcxe_globalwinon(struct channel *ch)
{
	outb_p(FEPWIN, (int)ch->board->port + 1);
}

static void pcxe_rxwinon(struct channel *ch)
{
	outb_p(ch->rxwin, (int)ch->board->port + 1);
}

static void pcxe_txwinon(struct channel *ch)
{
	outb_p(ch->txwin, (int)ch->board->port + 1);
}

static void pcxe_memoff(struct channel *ch)
{
	outb_p(0, (int)ch->board->port);
	outb_p(0, (int)ch->board->port + 1);
}

/* ------------- Begin pc64xe and pcxi memory window stuff -------------- */
static void pcxi_memwinon(struct board_info *b, unsigned int win)
{
	outb_p(inb(b->port) | FEPMEM, b->port);
}

static void pcxi_memwinoff(struct board_info *b, unsigned int win)
{
	outb_p(inb(b->port) & ~FEPMEM, b->port);
}

static void pcxi_globalwinon(struct channel *ch)
{
	outb_p(FEPMEM, ch->board->port);
}

static void pcxi_rxwinon(struct channel *ch)
{
	outb_p(FEPMEM, ch->board->port);
}

static void pcxi_txwinon(struct channel *ch)
{
	outb_p(FEPMEM, ch->board->port);
}

static void pcxi_memoff(struct channel *ch)
{
	outb_p(0, ch->board->port);
}

static void pcxi_assertgwinon(struct channel *ch)
{
	epcaassert(inb(ch->board->port) & FEPMEM, "Global memory off");
}

static void pcxi_assertmemoff(struct channel *ch)
{
	epcaassert(!(inb(ch->board->port) & FEPMEM), "Memory on");
}

/*
 * Not all of the cards need specific memory windowing routines. Some cards
 * (Such as PCI) needs no windowing routines at all. We provide these do
 * nothing routines so that the same code base can be used. The driver will
 * ALWAYS call a windowing routine if it thinks it needs to; regardless of the
 * card. However, dependent on the card the routine may or may not do anything.
 */
static void dummy_memwinon(struct board_info *b, unsigned int win)
{
}

static void dummy_memwinoff(struct board_info *b, unsigned int win)
{
}

static void dummy_globalwinon(struct channel *ch)
{
}

static void dummy_rxwinon(struct channel *ch)
{
}

static void dummy_txwinon(struct channel *ch)
{
}

static void dummy_memoff(struct channel *ch)
{
}

static void dummy_assertgwinon(struct channel *ch)
{
}

static void dummy_assertmemoff(struct channel *ch)
{
}

static struct channel *verifyChannel(struct tty_struct *tty)
{
	/*
	 * This routine basically provides a sanity check. It insures that the
	 * channel returned is within the proper range of addresses as well as
	 * properly initialized. If some bogus info gets passed in
	 * through tty->driver_data this should catch it.
	 */
	if (tty) {
		struct channel *ch = tty->driver_data;
		if (ch >= &digi_channels[0] && ch < &digi_channels[nbdevs]) {
			if (ch->magic == EPCA_MAGIC)
				return ch;
		}
	}
	return NULL;
}

static void pc_sched_event(struct channel *ch, int event)
{
	/*
	 * We call this to schedule interrupt processing on some event. The
	 * kernel sees our request and calls the related routine in OUR driver.
	 */
	ch->event |= 1 << event;
	schedule_work(&ch->tqueue);
}

static void epca_error(int line, char *msg)
{
	printk(KERN_ERR "epca_error (Digi): line = %d %s\n", line, msg);
}

static void pc_close(struct tty_struct *tty, struct file *filp)
{
	struct channel *ch;
	struct tty_port *port;
	/*
	 * verifyChannel returns the channel from the tty struct if it is
	 * valid. This serves as a sanity check.
	 */
	ch = verifyChannel(tty);
	if (ch == NULL)
		return;
	port = &ch->port;

	if (tty_port_close_start(port, tty, filp) == 0)
		return;

	pc_flush_buffer(tty);
	shutdown(ch, tty);

	tty_port_close_end(port, tty);
	ch->event = 0;	/* FIXME: review ch->event locking */
	tty_port_tty_set(port, NULL);
}

static void shutdown(struct channel *ch, struct tty_struct *tty)
{
	unsigned long flags;
	struct board_chan __iomem *bc;
	struct tty_port *port = &ch->port;

	if (!(port->flags & ASYNC_INITIALIZED))
		return;

	spin_lock_irqsave(&epca_lock, flags);

	globalwinon(ch);
	bc = ch->brdchan;

	/*
	 * In order for an event to be generated on the receipt of data the
	 * idata flag must be set. Since we are shutting down, this is not
	 * necessary clear this flag.
	 */
	if (bc)
		writeb(0, &bc->idata);

	/* If we're a modem control device and HUPCL is on, drop RTS & DTR. */
	if (tty->termios->c_cflag & HUPCL)  {
		ch->omodem &= ~(ch->m_rts | ch->m_dtr);
		fepcmd(ch, SETMODEM, 0, ch->m_dtr | ch->m_rts, 10, 1);
	}
	memoff(ch);

	/*
	 * The channel has officialy been closed. The next time it is opened it
	 * will have to reinitialized. Set a flag to indicate this.
	 */
	/* Prevent future Digi programmed interrupts from coming active */
	port->flags &= ~ASYNC_INITIALIZED;
	spin_unlock_irqrestore(&epca_lock, flags);
}

static void pc_hangup(struct tty_struct *tty)
{
	struct channel *ch;

	/*
	 * verifyChannel returns the channel from the tty struct if it is
	 * valid. This serves as a sanity check.
	 */
	ch = verifyChannel(tty);
	if (ch != NULL) {
		pc_flush_buffer(tty);
		tty_ldisc_flush(tty);
		shutdown(ch, tty);

		ch->event = 0;	/* FIXME: review locking of ch->event */
		tty_port_hangup(&ch->port);
	}
}

static int pc_write(struct tty_struct *tty,
			const unsigned char *buf, int bytesAvailable)
{
	unsigned int head, tail;
	int dataLen;
	int size;
	int amountCopied;
	struct channel *ch;
	unsigned long flags;
	int remain;
	struct board_chan __iomem *bc;

	/*
	 * pc_write is primarily called directly by the kernel routine
	 * tty_write (Though it can also be called by put_char) found in
	 * tty_io.c. pc_write is passed a line discipline buffer where the data
	 * to be written out is stored. The line discipline implementation
	 * itself is done at the kernel level and is not brought into the
	 * driver.
	 */

	/*
	 * verifyChannel returns the channel from the tty struct if it is
	 * valid. This serves as a sanity check.
	 */
	ch = verifyChannel(tty);
	if (ch == NULL)
		return 0;

	/* Make a pointer to the channel data structure found on the board. */
	bc   = ch->brdchan;
	size = ch->txbufsize;
	amountCopied = 0;

	spin_lock_irqsave(&epca_lock, flags);
	globalwinon(ch);

	head = readw(&bc->tin) & (size - 1);
	tail = readw(&bc->tout);

	if (tail != readw(&bc->tout))
		tail = readw(&bc->tout);
	tail &= (size - 1);

	if (head >= tail) {
		/* head has not wrapped */
		/*
		 * remain (much like dataLen above) represents the total amount
		 * of space available on the card for data. Here dataLen
		 * represents the space existing between the head pointer and
		 * the end of buffer. This is important because a memcpy cannot
		 * be told to automatically wrap around when it hits the buffer
		 * end.
		 */
		dataLen = size - head;
		remain = size - (head - tail) - 1;
	} else {
		/* head has wrapped around */
		remain = tail - head - 1;
		dataLen = remain;
	}
	/*
	 * Check the space on the card. If we have more data than space; reduce
	 * the amount of data to fit the space.
	 */
	bytesAvailable = min(remain, bytesAvailable);
	txwinon(ch);
	while (bytesAvailable > 0) {
		/* there is data to copy onto card */

		/*
		 * If head is not wrapped, the below will make sure the first
		 * data copy fills to the end of card buffer.
		 */
		dataLen = min(bytesAvailable, dataLen);
		memcpy_toio(ch->txptr + head, buf, dataLen);
		buf += dataLen;
		head += dataLen;
		amountCopied += dataLen;
		bytesAvailable -= dataLen;

		if (head >= size) {
			head = 0;
			dataLen = tail;
		}
	}
	ch->statusflags |= TXBUSY;
	globalwinon(ch);
	writew(head, &bc->tin);

	if ((ch->statusflags & LOWWAIT) == 0)  {
		ch->statusflags |= LOWWAIT;
		writeb(1, &bc->ilow);
	}
	memoff(ch);
	spin_unlock_irqrestore(&epca_lock, flags);
	return amountCopied;
}

static int pc_write_room(struct tty_struct *tty)
{
	int remain = 0;
	struct channel *ch;
	unsigned long flags;
	unsigned int head, tail;
	struct board_chan __iomem *bc;
	/*
	 * verifyChannel returns the channel from the tty struct if it is
	 * valid. This serves as a sanity check.
	 */
	ch = verifyChannel(tty);
	if (ch != NULL) {
		spin_lock_irqsave(&epca_lock, flags);
		globalwinon(ch);

		bc   = ch->brdchan;
		head = readw(&bc->tin) & (ch->txbufsize - 1);
		tail = readw(&bc->tout);

		if (tail != readw(&bc->tout))
			tail = readw(&bc->tout);
		/* Wrap tail if necessary */
		tail &= (ch->txbufsize - 1);
		remain = tail - head - 1;
		if (remain < 0)
			remain += ch->txbufsize;

		if (remain && (ch->statusflags & LOWWAIT) == 0) {
			ch->statusflags |= LOWWAIT;
			writeb(1, &bc->ilow);
		}
		memoff(ch);
		spin_unlock_irqrestore(&epca_lock, flags);
	}
	/* Return how much room is left on card */
	return remain;
}

static int pc_chars_in_buffer(struct tty_struct *tty)
{
	int chars;
	unsigned int ctail, head, tail;
	int remain;
	unsigned long flags;
	struct channel *ch;
	struct board_chan __iomem *bc;
	/*
	 * verifyChannel returns the channel from the tty struct if it is
	 * valid. This serves as a sanity check.
	 */
	ch = verifyChannel(tty);
	if (ch == NULL)
		return 0;

	spin_lock_irqsave(&epca_lock, flags);
	globalwinon(ch);

	bc = ch->brdchan;
	tail = readw(&bc->tout);
	head = readw(&bc->tin);
	ctail = readw(&ch->mailbox->cout);

	if (tail == head && readw(&ch->mailbox->cin) == ctail &&
						readb(&bc->tbusy) == 0)
		chars = 0;
	else  { /* Begin if some space on the card has been used */
		head = readw(&bc->tin) & (ch->txbufsize - 1);
		tail &= (ch->txbufsize - 1);
		/*
		 * The logic here is basically opposite of the above
		 * pc_write_room here we are finding the amount of bytes in the
		 * buffer filled. Not the amount of bytes empty.
		 */
		remain = tail - head - 1;
		if (remain < 0)
			remain += ch->txbufsize;
		chars = (int)(ch->txbufsize - remain);
		/*
		 * Make it possible to wakeup anything waiting for output in
		 * tty_ioctl.c, etc.
		 *
		 * If not already set. Setup an event to indicate when the
		 * transmit buffer empties.
		 */
		if (!(ch->statusflags & EMPTYWAIT))
			setup_empty_event(tty, ch);
	} /* End if some space on the card has been used */
	memoff(ch);
	spin_unlock_irqrestore(&epca_lock, flags);
	/* Return number of characters residing on card. */
	return chars;
}

static void pc_flush_buffer(struct tty_struct *tty)
{
	unsigned int tail;
	unsigned long flags;
	struct channel *ch;
	struct board_chan __iomem *bc;
	/*
	 * verifyChannel returns the channel from the tty struct if it is
	 * valid. This serves as a sanity check.
	 */
	ch = verifyChannel(tty);
	if (ch == NULL)
		return;

	spin_lock_irqsave(&epca_lock, flags);
	globalwinon(ch);
	bc   = ch->brdchan;
	tail = readw(&bc->tout);
	/* Have FEP move tout pointer; effectively flushing transmit buffer */
	fepcmd(ch, STOUT, (unsigned) tail, 0, 0, 0);
	memoff(ch);
	spin_unlock_irqrestore(&epca_lock, flags);
	tty_wakeup(tty);
}

static void pc_flush_chars(struct tty_struct *tty)
{
	struct channel *ch;
	/*
	 * verifyChannel returns the channel from the tty struct if it is
	 * valid. This serves as a sanity check.
	 */
	ch = verifyChannel(tty);
	if (ch != NULL) {
		unsigned long flags;
		spin_lock_irqsave(&epca_lock, flags);
		/*
		 * If not already set and the transmitter is busy setup an
		 * event to indicate when the transmit empties.
		 */
		if ((ch->statusflags & TXBUSY) &&
				!(ch->statusflags & EMPTYWAIT))
			setup_empty_event(tty, ch);
		spin_unlock_irqrestore(&epca_lock, flags);
	}
}

static int epca_carrier_raised(struct tty_port *port)
{
	struct channel *ch = container_of(port, struct channel, port);
	if (ch->imodem & ch->dcd)
		return 1;
	return 0;
}

static void epca_dtr_rts(struct tty_port *port, int onoff)
{
}

static int pc_open(struct tty_struct *tty, struct file *filp)
{
	struct channel *ch;
	struct tty_port *port;
	unsigned long flags;
	int line, retval, boardnum;
	struct board_chan __iomem *bc;
	unsigned int head;

	line = tty->index;
	if (line < 0 || line >= nbdevs)
		return -ENODEV;

	ch = &digi_channels[line];
	port = &ch->port;
	boardnum = ch->boardnum;

	/* Check status of board configured in system.  */

	/*
	 * I check to see if the epca_setup routine detected a user error. It
	 * might be better to put this in pc_init, but for the moment it goes
	 * here.
	 */
	if (invalid_lilo_config) {
		if (setup_error_code & INVALID_BOARD_TYPE)
			printk(KERN_ERR "epca: pc_open: Invalid board type specified in kernel options.\n");
		if (setup_error_code & INVALID_NUM_PORTS)
			printk(KERN_ERR "epca: pc_open: Invalid number of ports specified in kernel options.\n");
		if (setup_error_code & INVALID_MEM_BASE)
			printk(KERN_ERR "epca: pc_open: Invalid board memory address specified in kernel options.\n");
		if (setup_error_code & INVALID_PORT_BASE)
			printk(KERN_ERR "epca; pc_open: Invalid board port address specified in kernel options.\n");
		if (setup_error_code & INVALID_BOARD_STATUS)
			printk(KERN_ERR "epca: pc_open: Invalid board status specified in kernel options.\n");
		if (setup_error_code & INVALID_ALTPIN)
			printk(KERN_ERR "epca: pc_open: Invalid board altpin specified in kernel options;\n");
		tty->driver_data = NULL;   /* Mark this device as 'down' */
		return -ENODEV;
	}
	if (boardnum >= num_cards || boards[boardnum].status == DISABLED)  {
		tty->driver_data = NULL;   /* Mark this device as 'down' */
		return(-ENODEV);
	}

	bc = ch->brdchan;
	if (bc == NULL) {
		tty->driver_data = NULL;
		return -ENODEV;
	}

	spin_lock_irqsave(&port->lock, flags);
	/*
	 * Every time a channel is opened, increment a counter. This is
	 * necessary because we do not wish to flush and shutdown the channel
	 * until the last app holding the channel open, closes it.
	 */
	port->count++;
	/*
	 * Set a kernel structures pointer to our local channel structure. This
	 * way we can get to it when passed only a tty struct.
	 */
	tty->driver_data = ch;
	port->tty = tty;
	/*
	 * If this is the first time the channel has been opened, initialize
	 * the tty->termios struct otherwise let pc_close handle it.
	 */
	spin_lock(&epca_lock);
	globalwinon(ch);
	ch->statusflags = 0;

	/* Save boards current modem status */
	ch->imodem = readb(&bc->mstat);

	/*
	 * Set receive head and tail ptrs to each other. This indicates no data
	 * available to read.
	 */
	head = readw(&bc->rin);
	writew(head, &bc->rout);

	/* Set the channels associated tty structure */

	/*
	 * The below routine generally sets up parity, baud, flow control
	 * issues, etc.... It effect both control flags and input flags.
	 */
	epcaparam(tty, ch);
	memoff(ch);
	spin_unlock(&epca_lock);
	port->flags |= ASYNC_INITIALIZED;
	spin_unlock_irqrestore(&port->lock, flags);

	retval = tty_port_block_til_ready(port, tty, filp);
	if (retval)
		return retval;
	/*
	 * Set this again in case a hangup set it to zero while this open() was
	 * waiting for the line...
	 */
	spin_lock_irqsave(&port->lock, flags);
	port->tty = tty;
	spin_lock(&epca_lock);
	globalwinon(ch);
	/* Enable Digi Data events */
	writeb(1, &bc->idata);
	memoff(ch);
	spin_unlock(&epca_lock);
	spin_unlock_irqrestore(&port->lock, flags);
	return 0;
}

static int __init epca_module_init(void)
{
	return pc_init();
}
module_init(epca_module_init);

static struct pci_driver epca_driver;

static void __exit epca_module_exit(void)
{
	int               count, crd;
	struct board_info *bd;
	struct channel    *ch;

	del_timer_sync(&epca_timer);

	if (tty_unregister_driver(pc_driver) ||
				tty_unregister_driver(pc_info)) {
		printk(KERN_WARNING "epca: cleanup_module failed to un-register tty driver\n");
		return;
	}
	put_tty_driver(pc_driver);
	put_tty_driver(pc_info);

	for (crd = 0; crd < num_cards; crd++) {
		bd = &boards[crd];
		if (!bd) { /* sanity check */
			printk(KERN_ERR "<Error> - Digi : cleanup_module failed\n");
			return;
		}
		ch = card_ptr[crd];
		for (count = 0; count < bd->numports; count++, ch++) {
			struct tty_struct *tty = tty_port_tty_get(&ch->port);
			if (tty) {
				tty_hangup(tty);
				tty_kref_put(tty);
			}
		}
	}
	pci_unregister_driver(&epca_driver);
}
module_exit(epca_module_exit);

static const struct tty_operations pc_ops = {
	.open = pc_open,
	.close = pc_close,
	.write = pc_write,
	.write_room = pc_write_room,
	.flush_buffer = pc_flush_buffer,
	.chars_in_buffer = pc_chars_in_buffer,
	.flush_chars = pc_flush_chars,
	.ioctl = pc_ioctl,
	.set_termios = pc_set_termios,
	.stop = pc_stop,
	.start = pc_start,
	.throttle = pc_throttle,
	.unthrottle = pc_unthrottle,
	.hangup = pc_hangup,
	.break_ctl = pc_send_break
};

static const struct tty_port_operations epca_port_ops = {
	.carrier_raised = epca_carrier_raised,
	.dtr_rts = epca_dtr_rts,
};

static int info_open(struct tty_struct *tty, struct file *filp)
{
	return 0;
}

static struct tty_operations info_ops = {
	.open = info_open,
	.ioctl = info_ioctl,
};

static int __init pc_init(void)
{
	int crd;
	struct board_info *bd;
	unsigned char board_id = 0;
	int err = -ENOMEM;

	int pci_boards_found, pci_count;

	pci_count = 0;

	pc_driver = alloc_tty_driver(MAX_ALLOC);
	if (!pc_driver)
		goto out1;

	pc_info = alloc_tty_driver(MAX_ALLOC);
	if (!pc_info)
		goto out2;

	/*
	 * If epca_setup has not been ran by LILO set num_cards to defaults;
	 * copy board structure defined by digiConfig into drivers board
	 * structure. Note : If LILO has ran epca_setup then epca_setup will
	 * handle defining num_cards as well as copying the data into the board
	 * structure.
	 */
	if (!liloconfig) {
		/* driver has been configured via. epcaconfig */
		nbdevs = NBDEVS;
		num_cards = NUMCARDS;
		memcpy(&boards, &static_boards,
		       sizeof(struct board_info) * NUMCARDS);
	}

	/*
	 * Note : If lilo was used to configure the driver and the ignore
	 * epcaconfig option was choosen (digiepca=2) then nbdevs and num_cards
	 * will equal 0 at this point. This is okay; PCI cards will still be
	 * picked up if detected.
	 */

	/*
	 * Set up interrupt, we will worry about memory allocation in
	 * post_fep_init.
	 */
	printk(KERN_INFO "DIGI epca driver version %s loaded.\n", VERSION);

	/*
	 * NOTE : This code assumes that the number of ports found in the
	 * boards array is correct. This could be wrong if the card in question
	 * is PCI (And therefore has no ports entry in the boards structure.)
	 * The rest of the information will be valid for PCI because the
	 * beginning of pc_init scans for PCI and determines i/o and base
	 * memory addresses. I am not sure if it is possible to read the number
	 * of ports supported by the card prior to it being booted (Since that
	 * is the state it is in when pc_init is run). Because it is not
	 * possible to query the number of supported ports until after the card
	 * has booted; we are required to calculate the card_ptrs as the card
	 * is initialized (Inside post_fep_init). The negative thing about this
	 * approach is that digiDload's call to GET_INFO will have a bad port
	 * value. (Since this is called prior to post_fep_init.)
	 */
	pci_boards_found = 0;
	if (num_cards < MAXBOARDS)
		pci_boards_found += init_PCI();
	num_cards += pci_boards_found;

	pc_driver->owner = THIS_MODULE;
	pc_driver->name = "ttyD";
	pc_driver->major = DIGI_MAJOR;
	pc_driver->minor_start = 0;
	pc_driver->type = TTY_DRIVER_TYPE_SERIAL;
	pc_driver->subtype = SERIAL_TYPE_NORMAL;
	pc_driver->init_termios = tty_std_termios;
	pc_driver->init_termios.c_iflag = 0;
	pc_driver->init_termios.c_oflag = 0;
	pc_driver->init_termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL | HUPCL;
	pc_driver->init_termios.c_lflag = 0;
	pc_driver->init_termios.c_ispeed = 9600;
	pc_driver->init_termios.c_ospeed = 9600;
	pc_driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_HARDWARE_BREAK;
	tty_set_operations(pc_driver, &pc_ops);

	pc_info->owner = THIS_MODULE;
	pc_info->name = "digi_ctl";
	pc_info->major = DIGIINFOMAJOR;
	pc_info->minor_start = 0;
	pc_info->type = TTY_DRIVER_TYPE_SERIAL;
	pc_info->subtype = SERIAL_TYPE_INFO;
	pc_info->init_termios = tty_std_termios;
	pc_info->init_termios.c_iflag = 0;
	pc_info->init_termios.c_oflag = 0;
	pc_info->init_termios.c_lflag = 0;
	pc_info->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL;
	pc_info->init_termios.c_ispeed = 9600;
	pc_info->init_termios.c_ospeed = 9600;
	pc_info->flags = TTY_DRIVER_REAL_RAW;