summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/ata-all.h
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2009-02-19 12:47:24 +0000
committermav <mav@FreeBSD.org>2009-02-19 12:47:24 +0000
commit6127a7d95a93e81e644a76241dcd28a7f41925f7 (patch)
treeebbbf416f6cb65d574f788efa836329c852e5273 /sys/dev/ata/ata-all.h
parentfacbd7451d55460587d9d7295154cd25a90ae8d5 (diff)
downloadFreeBSD-src-6127a7d95a93e81e644a76241dcd28a7f41925f7.zip
FreeBSD-src-6127a7d95a93e81e644a76241dcd28a7f41925f7.tar.gz
Use channel driver's attach/detach routines instead of ata_attach()/
ata_detach() to implement IOCATAATTACH/IOCATADETACH ioctls. This will permit channel drivers to properly shutdown port hardware on channel detach and init it on attach.
Diffstat (limited to 'sys/dev/ata/ata-all.h')
-rw-r--r--sys/dev/ata/ata-all.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ata/ata-all.h b/sys/dev/ata/ata-all.h
index 4b7fe82..998442e 100644
--- a/sys/dev/ata/ata-all.h
+++ b/sys/dev/ata/ata-all.h
@@ -500,6 +500,7 @@ struct ata_resource {
struct ata_channel {
device_t dev; /* device handle */
int unit; /* physical channel */
+ int attached; /* channel is attached */
struct ata_resource r_io[ATA_MAX_RES];/* I/O resources */
struct resource *r_irq; /* interrupt of this channel */
void *ih; /* interrupt handle */
OpenPOWER on IntegriCloud