Mailing Lists: Apple Mailing Lists

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

swapping issues



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


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.