Apple PowerBook 520 Technical Information Page 125

  • Download
  • Add to my manuals
  • Print
  • Page
    / 144
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 124
CHAPTER 6
Power Manager Interface
About the Power Manager Interface 111
ASSEMBLY-LANGUAGE INFORMATION
The trap is _PowerMgrDispatch ($A09E). The selector value for
FullProcessorSpeed is 18 ($12) in the low word of register D0. The Boolean
result is returned in the low byte of register D0.
SetProcessorSpeed 6
You can use the SetProcessorSpeed routine to set the clock speed the microprocessor
will use the next time it is restarted.
Boolean SetProcessorSpeed(Boolean fullSpeed);
DESCRIPTION
The SetProcessorSpeed routine sets the processor speed that the computer will use
the next time it is restarted. If the value of fullSpeed is set to true, the processor will
start up at its full speed (the speed returned by MaximumProcessorSpeed, described
on page 109). If the value of fullSpeed is set to false, the processor will start up at its
reduced speed.
For PowerBook models that support changing the processor speed dynamically, the
processor speed will also be changed. If the speed is actually changed,
SetProcessorSpeed will return true; if the speed isn’t changed, it will return false.
ASSEMBLY-LANGUAGE INFORMATION
The trap is _PowerMgrDispatch ($A09E). The selector value for
SetProcessorSpeed is 19 ($13) in the low word of register D0. The Boolean
value to set is passed in the high word of register D0. The Boolean result is
returned in register D0.
GetSCSIDiskModeAddress 6
You can use the GetSCSIDiskModeAddress routine to find out the SCSI ID the
computer uses in SCSI disk mode.
short GetSCSIDiskModeAddress();
DESCRIPTION
The GetSCSIDiskModeAddress routine returns the SCSI ID that the computer uses
when it is started up in SCSI disk mode. The returned value is in the range 1 to 6.
Page view 124
1 2 ... 120 121 122 123 124 125 126 127 128 129 130 ... 143 144

Comments to this Manuals

No comments