aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_radisys.c
diff options
context:
space:
mode:
authorAlan Cox <alan@lxorguk.ukuu.org.uk>2007-03-08 17:56:07 -0500
committerJeff Garzik <jeff@garzik.org>2007-04-28 14:15:57 -0400
commitd36a76482c19c186aa638446def39ec643993955 (patch)
tree9fa21d6548d741f5c40191a0310b9433379b8cb2 /drivers/ata/pata_radisys.c
parent745975c052cc8e808860c8634a2efdcc2da6dd01 (diff)
pata_radisys: support cable_detect
Signed-off-by: Alan Cox <number6@the-village.bc.nu> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/pata_radisys.c')
-rw-r--r--drivers/ata/pata_radisys.c37
1 files changed, 5 insertions, 32 deletions
diff --git a/drivers/ata/pata_radisys.c b/drivers/ata/pata_radisys.c
index 9a9132c9e331..1c54673e008d 100644
--- a/drivers/ata/pata_radisys.c
+++ b/drivers/ata/pata_radisys.c
@@ -24,40 +24,12 @@
24#include <linux/ata.h> 24#include <linux/ata.h>
25 25
26#define DRV_NAME "pata_radisys" 26#define DRV_NAME "pata_radisys"
27#define DRV_VERSION "0.4.1" 27#define DRV_VERSION "0.4.4"
28
29/**
30 * radisys_probe_init - probe begin
31 * @ap: ATA port
32 *
33 * Set up cable type and use generic probe init
34 */
35
36static int radisys_pre_reset(struct ata_port *ap)
37{
38 ap->cbl = ATA_CBL_PATA80;
39 return ata_std_prereset(ap);
40}
41
42
43/**
44 * radisys_pata_error_handler - Probe specified port on PATA host controller
45 * @ap: Port to probe
46 * @classes:
47 *
48 * LOCKING:
49 * None (inherited from caller).
50 */
51
52static void radisys_pata_error_handler(struct ata_port *ap)
53{
54 ata_bmdma_drive_eh(ap, radisys_pre_reset, ata_std_softreset, NULL, ata_std_postreset);
55}
56 28
57/** 29/**
58 * radisys_set_piomode - Initialize host controller PATA PIO timings 30 * radisys_set_piomode - Initialize host controller PATA PIO timings
59 * @ap: Port whose timings we are configuring 31 * @ap: ATA port
60 * @adev: um 32 * @adev: Device whose timings we are configuring
61 * 33 *
62 * Set PIO mode for device, in host controller PCI config space. 34 * Set PIO mode for device, in host controller PCI config space.
63 * 35 *
@@ -248,8 +220,9 @@ static const struct ata_port_operations radisys_pata_ops = {
248 220
249 .freeze = ata_bmdma_freeze, 221 .freeze = ata_bmdma_freeze,
250 .thaw = ata_bmdma_thaw, 222 .thaw = ata_bmdma_thaw,
251 .error_handler = radisys_pata_error_handler, 223 .error_handler = ata_bmdma_error_handler,
252 .post_internal_cmd = ata_bmdma_post_internal_cmd, 224 .post_internal_cmd = ata_bmdma_post_internal_cmd,
225 .cable_detect = ata_cable_unknown,
253 226
254 .bmdma_setup = ata_bmdma_setup, 227 .bmdma_setup = ata_bmdma_setup,
255 .bmdma_start = ata_bmdma_start, 228 .bmdma_start = ata_bmdma_start,