VxWorks Reference Manual : Libraries

usrAta

NAME

usrAta - ATA initialization

ROUTINES

usrAtaConfig( ) - mount a DOS file system from an ATA hard disk
usrAtaPartition( ) - get an offset to the first partition of the drive


Libraries : Routines

usrAtaConfig( )

NAME

usrAtaConfig( ) - mount a DOS file system from an ATA hard disk

SYNOPSIS

STATUS usrAtaConfig
    (
    int    ctrl,    /* 0: primary address, 1: secondary address */
    int    drive,   /* drive number of hard disk (0 or 1) */
    char * fileName /* mount point */
    )

DESCRIPTION

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:.

fileName
the mount point, for example, /ata0/.

NOTE

Because VxWorks does not support partitioning, 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. The hard disk is assumed to have only one partition with a partition record in sector 0.

RETURNS

OK or ERROR.

SEE ALSO

src/config/usrAta.c, VxWorks Programmer's Guide: I/O System, Local File Systems, Intel i386/i486/Pentium


Libraries : Routines

usrAtaPartition( )

NAME

usrAtaPartition( ) - get an offset to the first partition of the drive

SYNOPSIS

int usrAtaPartition
    (
    int            ctrl,  /* 0: primary address, 1: secondary address */
    int            drive, /* drive number of hard disk (0 or 1) */
    DOS_PART_TBL * pPart  /* pointer to the partition table */
    )

DESCRIPTION

This routine gets an offset to the first partition of the drive. The value of offset is passed to the macro ATA_SWAP for endianess adjustment. For the drive parameter, 0 is C: and 1 is D:.

RETURNS

The offset to the partition

SEE ALSO

usrAta