I've been reading up on the ohci spec...and have been reading register values from offset 0xfed00000 in memory....using the xdk.... which is while its still in the xbox kernel.....as I wanted to do a gamepad library for openxdk :-/
But any how.....getting to the point... am I suppose to get VendorID at offset of 0x40...and a version number at offset 0x0...but the valeus I'm getting all seem wrong
And I can't find any solutions to my problems
Just a few works of nop you should be getting this...or have you tried this....
Thanx for any help you an give
Happy Coding
Ben
some code:
// 0xfed08000 (USB2)
// 0xfed00000 (USB1)
unsigned int * ohci_memory = (unsigned int*)0xfed08000;
unsigned int ohci_base = 0xfed08000;
unsigned int val= ohci_memory[ 0x0 ];
val = read_val(ohci_base, 0x0); // or use this
sprintf(buf, "Version 0x0 ->t 0x%08Xn", val ); // 0x0000 0010
print_str(buf);
val = read_val(ohci_base, 0x4);
sprintf(buf, "OHCI guid ->t 0x%08Xn", val ); // 0x0000 0602
print_str(buf);
val = ohci_memory[ 0x40/0x4 ];
sprintf(buf, "OHCI 0x40 ->t 0x%08Xn", val ); // 0x0000 2A2F
print_str(buf);