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 

DMA transfers controlled from userland

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
gauri



Joined: 20 Jan 2008
Posts: 35
Location: Belarus

PostPosted: Sun Mar 23, 2008 6:18 pm    Post subject: DMA transfers controlled from userland Reply with quote

Is it possible to do a DMA transfer from user code? It seems that DMA module is accessible only from kernel-land.
I need that for moving textures and V&I-buffers to VRAM. Please, do not suggest GU fransfers since they are a bit inconvenient for me.
_________________
Freelance game industry veteran. 8]
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Sun Mar 23, 2008 8:18 pm    Post subject: Reply with quote

Well, sceDmacMemcpy and sceDmacTryMemcpy are the only functions provided to user mode. I would expect them to have the same parameters than a normal memcpy.
Back to top
View user's profile Send private message
gauri



Joined: 20 Jan 2008
Posts: 35
Location: Belarus

PostPosted: Sun Mar 23, 2008 10:15 pm    Post subject: Reply with quote

And we get no chance to see if our transfer request has been fulfilled...
Can you point where sceDmacMemcpy is exported from? There's nothing on this in pspsdk.
_________________
Freelance game industry veteran. 8]
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Sun Mar 23, 2008 10:23 pm    Post subject: Reply with quote

http://silverspring.lan.st/1.5x/kd/dmacplus.xml

It is the sceDmac library, the other is the kernel one.
It is not in pspsdk, you'll have to create a stub or a library.
Back to top
View user's profile Send private message
gauri



Joined: 20 Jan 2008
Posts: 35
Location: Belarus

PostPosted: Sun Mar 23, 2008 10:30 pm    Post subject: Reply with quote

I'm using 3.x firmware... looks like these functions are no longer exported.
But, on the other hand, officially released software should still work with new firmwares. How do they manage to do that?
_________________
Freelance game industry veteran. 8]
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Sun Mar 23, 2008 10:35 pm    Post subject: Reply with quote

They are still there:
http://silverspring.lan.st/3.7x/kd/lowio.xml

It is just that they merged a lot of lowlevel prx's into a single one back in 3.50, but the library names remain same.
Back to top
View user's profile Send private message
gauri



Joined: 20 Jan 2008
Posts: 35
Location: Belarus

PostPosted: Sun Mar 23, 2008 11:07 pm    Post subject: Reply with quote

Oh, they really are. Thanks!

On the secont thought... How can I track whether the transfer completed or not? Do these calls block?
_________________
Freelance game industry veteran. 8]
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 -> PSP 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