IDE(7)
IDE --
Generic IDE/ATAPI/ESDI controller Subsystem
Description
The Integrated Drive Electronics (IDE) subsystem
consists of at least one IDE or ESDI Host Controller card
that has at least one logical unit attached to it.
The IDE subsystem provides support
for the Extended SCSI Device Interface (ESDI),
the IDE Advanced Technology Attachment (ATA), and
the ATA Packet Interface (ATAPI) devices under
SDI for use with related target drivers.
This subsystem is accessed indirectly
by opening an appropriate target driver to access
a target device that is on an IDE controller.
You can also access this subsystem using the pass-through driver.
To find the appropriate device to use,
while the device is being accessed through the target driver,
use the B_GETDEV ioctl (see
ioctl(2))
to get the major and minor numbers of the pass-though node.
This node can be created or open for use.
ioctl calls
All of the pass-through
ioctl(2)
commands documented on the
sdi(7)
manual page are supported by this driver.
In addition, the following commands are supported.
These should be used to get and set device geometry.
They return or accept the dsk_geom structure
defined in the sdi.h header file:
- HA_GETPARMS
-
return host adapter's idea of the device geometry.
This is what the system uses during the boot sequence.
This is used by certain target drivers.
- HA_SETPARMS
-
set the host adapter's idea of the device geometry.
Note that some
host adapters do not support this
ioctl and will result in an error.
- HA_GETPPARMS
-
return the actual device geometry.
This is the actual as opposed to virtual device geometry.
NOTE:
The IDE driver has a halt routine that is executed during
shutdown allows the controller enough time to flush
the disk cache (if present) to disk.
Although two seconds are allowed for this flush, the
actual timeout value is an external variable in the IDE
space.c file.
You can modify this variable if a specific controller
needs more time to clear the cache.
For ATAPI devices, this driver supports only CD-ROMs.
Support for ATAPI tape drives is expected in the future.
Files
- /usr/include/sys/sdi.h
-
- /usr/include/sys/sdi_edt.h
-
References
ioctl(2),
sdi(7)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.