Technical information
CHAPTER 3
The PC Interface Driver
Configuring the PC
35
rsSetMemoryConfig 3
You can use the
rsSetMemoryConfig
control call to make memory on the Macintosh
computer available for the PC. The calling program first allocates the memory and sets it
locked and contiguous. The control call sets the base address and length of the memory.
This call is needed only when no RAM SIMM is installed for the PC. The calling
program can determine whether a RAM SIMM is installed by calling the
rsPCStatus
status routine (described below).
Parameter block
→
ioCompletion long
Pointer to the completion routine
←
ioResult word
→
ioRefNum word
→
csCode word
Equals
rsSetMemoryConfig
→
csParam+0 long
Logical base address of PC memory
→
csParam+4 long
Physical base address of PC memory
→
csParam+6 long
Length of PC memory
rsSetDriveConfig 3
You can use the
rsSetDriveConfig
control call to configure each of the PC’s fixed disk
drives (A:, B:, C:, and D:) as a floppy drive, Macintosh file, or SCSI partition, or as having
no corresponding drive.
Parameter block
→
ioCompletion long
Pointer to the completion routine
←
ioResult word
→
ioRefNum word
→
csCode word
Equals
rsSetDriveConfig
→
csParam+0 long
Pointer to
RSFixedDriveConfig
The
csParam
contains a pointer to an
RSFixedDriveConfig
data structure.
typedefstruct{
short type; // Type of device this drive is
short vRefNum; // Volume refNum or SCSI ID
long dirID; // Directory ID or starting sector number on SCSI drives
long fileNamePtr;// File name or number of sectors on SCSI drive
} RSFixedDriveConfig[4], *RSFixedDriveConfigPtr;
RSFixedDriveConfig[0]
contains the configuration for drive A:,
RSFixedDriveConfig[1]
contains the configuration for drive B:,
RSFixedDriveConfig[2]
contains the configuration for drive C:, and
RSFixedDriveConfig[3
] contains the configuration for drive D:.