2 Copyright © 2004-2011, The AROS Development Team. All rights reserved.
5 Desc: PCI configuration mechanism 1 access functions
10 #include <proto/exec.h>
14 #define CFGADD(bus,dev,func,reg) \
15 ( 0x80000000 | ((bus)<<16) | \
16 ((dev)<<11) | ((func)<<8) | ((reg)&~3))
18 ULONG
ReadConfig1Long(UBYTE bus
, UBYTE dev
, UBYTE sub
, UWORD reg
)
23 outl(CFGADD(bus
, dev
, sub
, reg
),PCI_AddressPort
);
24 temp
=inl(PCI_DataPort
);
30 void WriteConfig1Long(UBYTE bus
, UBYTE dev
, UBYTE sub
, UWORD reg
, ULONG val
)
34 outl(CFGADD(bus
, dev
, sub
, reg
),PCI_AddressPort
);
35 outl(val
,PCI_DataPort
);