Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fcode Query!!



Sorry for not responding sooner.

Check this URL: http://developer.apple.com/qa/qa2001/qa1106.html

Get back to us if that doesn't help, but your FCode could have a bug on
its own or due to this new limitation.

Your replacing an AGP for a PCI? Oh well I use a wind up pocket watch
built in 1934. It's got big numbers (easy to sea;I fish a lot)

------------------------------------------------------------------------

Q: Some Open Firmware methods available on older Macintosh computers
seem to be missing on machines introduced in the later part of 2001. How
can I continue to debug and produce FCode drivers without these methods?

A: While debugging use the Open Firmware Configuration Variable
fcode-debug?.

fcode-debug? is a Boolean which when true means "turn on headers" and
when false means the opposite. It has a default value of false. Here is
how you turn on or off fcode-debug?.

Enter the Open Firmware user interface by starting the Macintosh
computer while depressing the cmd-option-o-f keys. Enter the following
to turn on headers:

setenv fcode-debug? true

When you are done turn off this variable as follows:

setenv fcode-debug? false

It is very important that you turn this variable off before shipping
your code. Having this variable off (i.e. false) is the only way to test
your FCode for use of hidden methods. Methods are only hidden when
fcode-debug? is false.

Your production code can no longer use hidden methods since the user can
easily turn off this flag by depressing cmd-option-p-r to reset NVRAM
when starting the computer.

Also, it is now essential that all methods that you will be exporting be

labeled as EXTERNAL words. Consult the 1275 spec for more details.

On Thursday, February 21, 2002, at 08:10 AM, Kartikeya Misra wrote:

>> Hi All,
>>
>> 1) We replaced the default AGP based card from the system by our PCI
>> based display card. Card contain a FCode ROM driver written on lines
>> with PCI-DDK ver3.0 sample driver(AAPL-VIPER.of). When we restart the
>> system we get a Default Catch and system breaks in Open firmware
>> editor. Why could this possibly happen?
>> We have found a workaround for this by changing "boot-command"
>> environment variable FROM "mac-boot" TO "boot" and the system boots
>> fine.
>>
>> 2)With "boot-command" environment variable set to "boot" when we press
>> "Option" key at startup to select OS,we again get Default Catch and
>> system breaks in Open firmware editor. Why could this happen with our
>> card? If we do not press any key our FCode works fine and we can see
>> screen coming up perfectly fine.
>>
>> Thanks,
>> Kartikeya.
>>
>>
>> Functions in our FCode driver:-
>>
>> is-install
>> is-remove
>> DRAW-RECTANGLE
>> READ-RECTANGLE
>> FILL-RECTANGLE
>> COLOR@
>> COLOR!
>> SET-COLORS
>> GET-COLORS
>>
>> property set:-
>>
>> vendor-id vvvv
>> device-id dddd
>> revision-id 00000002
>> class-code 00030000
>> interrupts 00000001
>> min-grant 00000000
>> max-latency 00000000
>> subsystem-vendor-id vvvvv
>> subsystem-id dddd
>> devsel-speed 00000001
>> fast-back-to-back
>> fcode-rom-offset 00000000
>> name nnnn
>> device_type display
>> model mmmm,mm
>> driver-version 322e3120 77697468 20543252 2d697620 31312f31
>> 382f3030 00
>> reg 00010800 00000000 00000000 00000000 00000000
>> 02010810 00000000 00000000 00000000 01000000
>> 02010814 00000000 00000000 00000000 01000000
>> 02010818 00000000 00000000 00000000 00001000
>> 0201081c 00000000 00000000 00000000 00001000
>> 02010820 00000000 00000000 00000000 00010000
>> 01010824 00000000 00000000 00000000 00000100
>> 02010830 00000000 00000000 00000000 00010000
>> 82000000 00000000 000a0000 00000000 00020000
>> 81000000 00000000 000003c0 00000000 00000100
>> width 00000280
>> height 000001e0
>> depth 00000008
>> linebytes 00000280
>> iso6429-1983-colors
>> driver,APPL,MACOS,PowerPC
>> 4a6f7921 70656666 70777063 00000001 b62c8b51
>> 00000000 00
>> 000000 00000000
>> 00030002 00000000 ffffffff 00000000 0000607c
>> 0000607c 00
>> 00607c 000004a0
>> 00040400 ffffffff 00000000 00000a7c 00000508
>> 000002a6 00
>> 006520 02010400
>> ffffffff 00000000 00000000 00000000 0000041e
>> 00000080 04
>> 040400 00000000
>> 00000001 0000017c 00000001 0000018c 00000001
>> 00000184 00
>> 000005 0000001b
>> 00000001 00000128 00000148 000003ec 00000001
>> 00000003 00
>> 000000 00000000
>> 00000000 00000007 00000000 00000000 00000012
>> 00000000 00
>> 000000 00000009
>> 00000007 00000000 00000022 00000000 00000000
>> 00000003 00
>> 000010 00000000
>> ... 000067c6 bytes total
>> assigned-addresses 81010824 00000000 00001400 00000000 00000100
>> 82010810 00000000 84000000 00000000 01000000
>> 82010814 00000000 83000000 00000000 01000000
>> 82010820 00000000 80150000 00000000 00010000
>> 82010830 00000000 80140000 00000000 00010000
>> 82010818 00000000 80102000 00000000 00001000
>> 8201081c 00000000 80101000 00000000 00001000
>> address 84000000
> _______________________________________________
> darwin-drivers mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/darwin-drivers
> Do not post admin requests to the list. They will be ignored.
>
************************************
Wayne Flansburg, Worldwide Technical Support
Visit our PCI web page at:
http://developer.apple.com/hardware/pci/
************************************
_______________________________________________
darwin-drivers mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-drivers
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.