You really should be using the DDI calls instead of looking for exact equivalents to linux which isn't the right thing to do for several reasons depending on if your driver is for a real device or just pseudo...
http://the-teknomancer.blogspot.com/2007/09/allocating-physically-contiguous-memory.html?showComment=1194010440000#c2179786440051591653 the above has some tricks you can play and probably answer to get a quick prototype, but please use only the ddi framework for something like this. >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On >Behalf Of Christian Kaiser >Sent: Tuesday, December 02, 2008 9:48 AM >To: [email protected] >Subject: [osol-code] virt_to_phys, virt_to_bus > >Hi all, > >I am currently porting a driver from Linux to Solaris. > >The Linux driver uses amongst others the following functions: > > virt_to_phys() > virt_to_bus() > phys_to_virt() > bus_to_virt() > >As you can see, these functions translate virtual into physical or bus >addresses and vice versa. >Is there something similar available on Solaris? I am currently >developing on SXCE b103. > > Christian > >-- >Christian Kaiser, Software Engineer, Dolphin Interconnect Solutions >http//www.dolphinics.com >_______________________________________________ >opensolaris-code mailing list >[email protected] >http://mail.opensolaris.org/mailman/listinfo/opensolaris-code _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
