forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Accessing the IOP resources from the EE?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Thu May 20, 2004 2:52 pm    Post subject: Accessing the IOP resources from the EE? Reply with quote

I know its possible to access IOP's memory from the EE, and I've heard things like the SPU/etc can be reached over the SIF... I'd like to know how. Before I start fooling with memory locations and sending random data can someone give me some pointers?
Back to top
View user's profile Send private message Visit poster's website
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Thu May 20, 2004 3:37 pm    Post subject: Reply with quote

Code:
void* IOP_MEMORY = 0xbc000000;

Hows that 'pointer' for you? ;)
_________________
Shoot Pixels Not People!
Makeshift Development
Back to top
View user's profile Send private message Visit poster's website
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Thu May 20, 2004 5:10 pm    Post subject: Reply with quote

Its a start... now, how about those tasty devices? :)
Back to top
View user's profile Send private message Visit poster's website
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Fri May 21, 2004 1:03 am    Post subject: Reply with quote

Just use the same register address that you would use on the IOP. You won't be able to receive interrupts or transfer DMA to/from those devices using the EE.
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Fri May 21, 2004 2:51 am    Post subject: Reply with quote

Isn't it slightly different for devices on the EE side ?

For example USB is at 0xBF801600 on the IOP side but at 0x1F801600 on the EE. Just replace the top nibble with 1 and it should work :)
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Fri May 21, 2004 3:27 am    Post subject: Reply with quote

Its all the same offset.
Back to top
View user's profile Send private message Visit poster's website
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Fri May 21, 2004 4:47 am    Post subject: Reply with quote

Yeah, it's the same address. And you want to use the 0xbxxxxxxx version on the EE since it's uncached access. You'll need to switch into Kernel Mode first.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group