summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/ata-lowlevel.c
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2005-04-28 22:08:08 +0000
committersos <sos@FreeBSD.org>2005-04-28 22:08:08 +0000
commit99fa5be8edcd976de3ce68fc12405c4beafd4081 (patch)
tree571b56e70d5e5b30cbc6eb18f8a6ae43f2c5201e /sys/dev/ata/ata-lowlevel.c
parenta57939d5ce935586e6d4c19df769d295af3cd333 (diff)
downloadFreeBSD-src-99fa5be8edcd976de3ce68fc12405c4beafd4081.zip
FreeBSD-src-99fa5be8edcd976de3ce68fc12405c4beafd4081.tar.gz
Rearrange the way the reset code is called.
Prepare for different looking controllers.
Diffstat (limited to 'sys/dev/ata/ata-lowlevel.c')
-rw-r--r--sys/dev/ata/ata-lowlevel.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/ata/ata-lowlevel.c b/sys/dev/ata/ata-lowlevel.c
index b6bf9e1..a723fa9 100644
--- a/sys/dev/ata/ata-lowlevel.c
+++ b/sys/dev/ata/ata-lowlevel.c
@@ -51,7 +51,6 @@ __FBSDID("$FreeBSD$");
/* prototypes */
static int ata_begin_transaction(struct ata_request *);
static int ata_end_transaction(struct ata_request *);
-static void ata_generic_reset(struct ata_channel *);
static int ata_wait(struct ata_channel *ch, struct ata_device *, u_int8_t);
static void ata_pio_read(struct ata_request *, int);
static void ata_pio_write(struct ata_request *, int);
@@ -158,7 +157,6 @@ ata_generic_hw(struct ata_channel *ch)
{
ch->hw.begin_transaction = ata_begin_transaction;
ch->hw.end_transaction = ata_end_transaction;
- ch->hw.reset = ata_generic_reset;
ch->hw.command = ata_generic_command;
}
@@ -623,16 +621,13 @@ end_continue:
}
/* must be called with ATA channel locked */
-static void
+void
ata_generic_reset(struct ata_channel *ch)
{
u_int8_t ostat0 = 0, stat0 = 0, ostat1 = 0, stat1 = 0;
u_int8_t err = 0, lsb = 0, msb = 0;
int mask = 0, timeout;
- /* reset controller (host) */
- ATA_RESET(ch->dev);
-
/* do we have any signs of ATA/ATAPI HW being present ? */
ATA_IDX_OUTB(ch, ATA_DRIVE, ATA_D_IBM | ATA_D_LBA | ATA_MASTER);
DELAY(10);
OpenPOWER on IntegriCloud