Essentially, you are right, except that the two macros do exactly the
same thing. That is, on a PPC machine they swap the long word, and on
a 386 class machine they don't. So there is no real bug here. Just a
semantic difference.
Rhoads Hollowell
USB Software Team
Apple Computer, Inc.
On Sep 29, 2005, at 5:51 PM, david tay wrote:
Hi,
In the AppleUSBEHCI driver we have instances like the following
_pEHCIRegisters->AsyncListAddr = HostToUSBLong
( pEHCIEndpointDescriptor->_sharedPhysical );
in AppleUSBEHCI::UIMCreateControlEndpoint
in AppleUSBEHCI::UIMCreateBulkEndpoint
_pEHCIRegisters->AsyncListAddr = USBToHostLong
( pEHCIEndpointDescriptor->_sharedPhysical );
Is this correct? How can the same variable hold a value of
different byte order?
Should I file a RADAR?
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden