VxWorks Reference Manual : Libraries
usrAta - ATA initialization
usrAtaConfig( ) - mount a DOS file system from an ATA hard disk
usrAtaPartition( ) - get an offset to the first partition of the drive
usrAtaConfig( ) - mount a DOS file system from an ATA hard disk
STATUS usrAtaConfig ( int ctrl, /* 0: primary address, 1: secondary address */ int drive, /* drive number of hard disk (0 or 1) */ char * fileName /* mount point */ )
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/.
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.
OK or ERROR.
src/config/usrAta.c, VxWorks Programmer's Guide: I/O System, Local File Systems, Intel i386/i486/Pentium
usrAtaPartition( ) - get an offset to the first partition of the drive
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 */ )
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:.
The offset to the partition