usrAtaConfig( )
NAME
usrAtaConfig( ) - mount a DOS file system from an ATA hard disk or a CDROM
SYNOPSIS
STATUS usrAtaConfig
(
int ctrl, /* 0: primary address, 1: secondary address */
int drive, /* drive number of hard disk (0 or 1) */
char * devNames /* mount points for each partition */
)
DESCRIPTION
file system from an ATAPI CDROM drive
This routine mounts a DOS file system from an ATA hard disk. Parameters:
drive
the drive number of the hard disk; 0 is C: and 1 is D:.
devName
the mount point for all partitions which are expected to be present on the disk, separated with commas, for example "/ata0,/ata1" or "C:,D:". Blanks are not allowed in this string. If the drive is an ATAPI CDROM drive, then the CDROM filesystem is specified by appending "(cdrom)" after the mount point name. For example, a CDROM drive could be specified as "/cd(cdrom)".
NOTE
Because VxWorks does not support creation of partition tables, hard disks formatted and initialized on VxWorks are not compatible with DOS machines. This routine does not refuse to mount a hard disk that was initialized on VxWorks. Up to 8 disk partitions are supported.
RETURNS
OK or ERROR.
SEE ALSO
usrAta, src/config/usrAta.c, VxWorks Programmer's Guide: I/O System, Local File Systems, Intel i386/i486/Pentium