Fedora Linux Support Community & Resources Center
  #1  
Old 20th October 2004, 03:08 PM
Yeshaswi Offline
Registered User
 
Join Date: Oct 2004
Posts: 3
Problem with offset with usb_device_descriptor

Hi,
I have been working on USB drivers. In the structure usb_device, there is a structure called usb_device_descriptor. In my program, it is getting offset by 4 bytes, so as a result, I am not able to get the right value of idVendor and idProduct. I have seen the hex dump of the structure , I have seen the idVendor and idProduct, and it is offset by 4 bytes.
When the usb device is plugged in, i can see the debug statements of usb.c, where in it reads the right value from the usb_device_descriptor. Well the initial variables of the structure are right, but the problem comes in when the all important usb_device_descriptor comes into picture.
I have seen the packing requirements of the structure and it is right. I cant seem to pinpoint the problem. I kinda figured out that there may be a problem in the way I am compling my file. I would be glad if some one could help me out with this problem.
cheers
yeshaswi
Reply With Quote
Reply

Tags
offset, problem, usbdevicedescriptor

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 10 screen position offset after screensaver gml27 Hardware & Laptops 1 8th January 2009 04:07 AM
when enabling nvidia 3D screen is offset to left Obi0ne Hardware & Laptops 3 1st August 2006 04:41 PM
Xinerama, offset screens and wallpaper question hiberphoptik Using Fedora 0 16th December 2005 04:05 PM
X problem - screen offset up and left nick79 Using Fedora 3 9th November 2005 04:51 AM
Offset problem Yeshaswi Using Fedora 1 20th October 2004 04:59 PM


Current GMT-time: 05:16 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat