diff options
author | sos <sos@FreeBSD.org> | 2002-02-12 11:35:15 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2002-02-12 11:35:15 +0000 |
commit | 334f09ed2aa2cadf1a5a71122136f5ef65f30423 (patch) | |
tree | 0c8c08ffda24c52313dd92cb9925bfcc9f6e4d43 /sys/dev/ata/ata-all.c | |
parent | 050837293fd14801c43b6cdedb8f4af1561a00de (diff) | |
download | FreeBSD-src-334f09ed2aa2cadf1a5a71122136f5ef65f30423.zip FreeBSD-src-334f09ed2aa2cadf1a5a71122136f5ef65f30423.tar.gz |
Major update of the ATA RAID code, part 2:
More cleanups of the RAID1 failure mode code.
Add functionality that writes the changed RAID config setup
back to the disks (in controller BIOS specific format), so
that a reboot will make the BIOS pick up the changed config.
Diffstat (limited to 'sys/dev/ata/ata-all.c')
-rw-r--r-- | sys/dev/ata/ata-all.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c index 7774c69..2851c3c 100644 --- a/sys/dev/ata/ata-all.c +++ b/sys/dev/ata/ata-all.c @@ -531,7 +531,7 @@ ata_boot_attach(void) if (ch->devices & ATA_ATA_SLAVE) ad_attach(&ch->device[SLAVE]); } - atar_attach(); + ata_raid_attach(); #endif #if defined(DEV_ATAPICD) || defined(DEV_ATAPIFD) || defined(DEV_ATAPIST) /* then the atapi devices */ @@ -1075,14 +1075,6 @@ void ata_drawerleds(struct ata_device *atadev, u_int8_t color) { u_int8_t count, drive; - int s = splbio(); - int state; - - if ((state = atadev->channel->active) != ATA_CONTROL) { - while (!atomic_cmpset_int(&atadev->channel->active, - ATA_IDLE, ATA_CONTROL)) - tsleep((caddr_t)&s, PRIBIO, "ataled", hz/4); - } /* magic sequence to set the LED color on the Promise SuperSwap */ ATA_INB(atadev->channel->r_io, ATA_DRIVE); @@ -1101,9 +1093,6 @@ ata_drawerleds(struct ata_device *atadev, u_int8_t color) DELAY(1); ATA_OUTB(atadev->channel->r_io, ATA_DRIVE, ATA_D_IBM | atadev->unit); DELAY(1); - - atadev->channel->active = state; - splx(s); } static void |