diff options
author | sos <sos@FreeBSD.org> | 2005-06-10 07:43:10 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2005-06-10 07:43:10 +0000 |
commit | b6acc8219df32d31487faa6a0f97d899469511d6 (patch) | |
tree | 950ae9761250a7626e50f19c3b1e38fd4b858e5e /sys/dev/ata | |
parent | 583f68919da59d40e867afc12c6143b17b86d5e4 (diff) | |
download | FreeBSD-src-b6acc8219df32d31487faa6a0f97d899469511d6.zip FreeBSD-src-b6acc8219df32d31487faa6a0f97d899469511d6.tar.gz |
Enable SATA hotplug support.
Submitted by: Olivier Houchard
Diffstat (limited to 'sys/dev/ata')
-rw-r--r-- | sys/dev/ata/ata-chipset.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/ata/ata-chipset.c b/sys/dev/ata/ata-chipset.c index 8325a5d..d53827f 100644 --- a/sys/dev/ata/ata-chipset.c +++ b/sys/dev/ata/ata-chipset.c @@ -1540,6 +1540,10 @@ ata_intel_31244_allocate(device_t dev) ch->flags |= ATA_NO_SLAVE; ata_generic_hw(dev); ch->hw.command = ata_intel_31244_command; + + /* enable PHY state change interrupt */ + ATA_OUTL(ctlr->r_res2, 0x4, + ATA_INL(ctlr->r_res2, 0x04) | (0x01 << (ch->unit << 3))); return 0; } |