Hi,
Further
I am using diab compiler. When I align HCCA like

struct HCCA
  {
        uint64 arr[15];//Space for queuing interrupt endpoints
        uint16 frame_Number;
   uint16 pad;
   uint32 done_Head;
   uint8 res[116];//Space reserved by HC


 }__attribute__((aligned(256)));

It shows following error 

"../../code/OHCI.h", line 87: error (etoa:5099): invalid alignment value
          specified by attribute
   }__attribute__((aligned(256)));
                           

There is no error when I do 

struct HCCA
  {
        uint64 arr[15];//Space for queuing interrupt endpoints
        uint16 frame_Number;
   uint16 pad;
   uint32 done_Head;
   uint8 res[116];//Space reserved by HC


 }__attribute__((aligned(128)));

So I align it to 128 bytes. Why this should happen.Also Could this be a
source of error that my controller does not transmit the TD?

Please help.

Regards
Siddharth

-----Original Message-----
From: Siddharth, Karnik (IE10) 
Sent: Tuesday, December 26, 2006 7:25 PM
To: 'linux-usb-devel@lists.sourceforge.net'
Subject: Help requried in OHCI driver development

Hi ,

I am in initial stage of developing a OHCI drvier on MPC5200B.

I am stuck in a problem where OHCI controller gest reset when I enable
the control transfer bit . Followng is the sequence of operations I am
doing'

1) Give a s/w reset to HCR bit in HC command status register 
2) Wait till the bit is cleared 
3) Put the controller in USB RESET (HCFS bits in HC control register) 
4) Construct all virtual queues in to physical queues in memory 
5) Pass these addresses to HCCA done queue pointer. (Am I write here?) 
5) set HCCA block in HCCA register 
6) Set the controller to USB RESUME 

When you detect USB device connect 
7) Issue port reset 
8) Issue port enable 
9) Set control list filled in CLF bit in HC command status register 
10) Enable control list by setting CLE BIT in HC control register 

Problem: But moment I do step 10 HC resets.(All values set to zero) 

Please tell me where I am going wrong .


Regards 
Siddharth



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to