Important: The information in this document is obsolete and should not be used for new development.
Slot Execution Parameter Block
TheSGetDriver
andSExec
functions load and execute code from an sResource. These routines use the slot execution parameter block to exchange information with this code. The slot execution parameter block is defined by theSEBlock
data type.
TYPE SEBlock = {slot execution parameter block} PACKED RECORD seSlot: SignedByte; {slot number} sesRsrcID: SignedByte; {sResource ID} seStatus: Integer; {status of sExecBlock code} seFlags: SignedByte; {flags} seFiller0: SignedByte; {filler for word alignment} seFiller1: SignedByte; {filler} seFiller2: SignedByte; {filler} seResult: LongInt; {result of SLoadDriver} seIOFileName: LongInt; {pointer to driver name} seDevice: SignedByte; {device to read from} sePartition: SignedByte; {the partition} seOSType: SignedByte; {type of OS} seReserved: SignedByte; {reserved} seRefNum: SignedByte; {driver reference number} seNumDevices: SignedByte; {number of devices to load} seBootState: SignedByte; {state of StartBoot code} END;
Field Description
seSlot
- The slot number containing the code to be executed.
sesRsrcID
- The sResource containing the code to be executed.
seStatus
- The status returned by the executed code. A card's
PrimaryInit
routine returns its initialization status in this field, and the value is stored in thesiInitStatusV
field of the slot information record.seFlags
- Flags passed to or returned by the executed code.
Name Bit Meaning fWarmStart
2 Set if a restart is being performed. dRAMBased
6 Set if the seResult field contains a handle to a device driver.
seFiller0-2
- Reserved.
seResult
- A result value returned by the executed code. Normally used to return a pointer or handle to a device driver.
seIOFileName
- An optional pointer to a device driver name.
seDevice
- The device number containing the code to be executed. This field is used when loading code from a device attached to a card.
sePartition
- The partition number containing the code to be executed. This field is used when loading code from a device attached to a card.
seOSType
- The operating system type identifier obtained from parameter RAM. This field is used when loading code from a device attached to a card.
seReserved
- Additional information from parameter RAM, used when loading code from a device attached to a card.
seRefNum
- The driver reference number returned by the loaded device driver.
seNumDevices
- Unused.
seBootState
- A value indicating the relative state of the boot process. During initialization, the Slot Manager passes one of the following constant values in this field:
Name Value Meaning sbState0
0 State 0 of the boot process. sbState1
1 State 1 the boot process.