1
0
mirror of https://github.com/deadw00d/AROS.git synced 2025-11-23 20:21:25 +00:00

Default method MapPCI of PCIDriver class will call PCItoCPU method with address passed to itself in order to do artificial mapping and return address of PCI resource in CPU address space.

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@20871 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
This commit is contained in:
schulz
2004-02-12 00:07:31 +00:00
parent addc74a876
commit da667640ce

View File

@ -34,6 +34,7 @@
#define SysBase (PSD(cl)->sysbase)
#define UtilityBase (PSD(cl)->utilitybase)
#define OOPBase (PSD(cl)->oopbase)
typedef union _pcicfg
{
@ -240,7 +241,11 @@ static APTR pcidriver_map(OOP_Class *cl, OOP_Object *o,
if (instance->DirectBus)
{
return msg->PCIAddress;
struct pHidd_PCIDriver_PCItoCPU mmsg;
mmsg.mID = OOP_GetMethodID(CLID_Hidd_PCIDriver, moHidd_PCIDriver_PCItoCPU);
mmsg.address = msg->PCIAddress;
return ((APTR)OOP_DoMethod(o, (OOP_Msg)&mmsg));
} else return (APTR)0xffffffff;
}