4 #include <exec/types.h>
30 /* Used by PCI scanning routine */
31 OOP_AttrBase pciDeviceAttrBase
;
34 static inline ULONG
smread(struct SM502_HWData
*hw
, ULONG reg
)
36 return (ULONG
)AROS_LE2LONG(*(volatile LONG
*)(hw
->mmio
+ reg
));
39 static inline VOID
smwrite(struct SM502_HWData
*hw
, ULONG reg
, ULONG val
)
41 *(volatile LONG
*)(hw
->mmio
+ reg
) = AROS_LONG2LE((LONG
)val
);
44 #undef HiddPCIDeviceAttrBase
45 #define HiddPCIDeviceAttrBase sd->pciDeviceAttrBase
47 struct SM502Gfx_staticdata
;
50 BOOL
initSM502GfxHW(struct SM502_HWData
*);
51 void DACLoad(struct SM502Gfx_staticdata
*, UBYTE
*, unsigned char, int);
52 void ClearBuffer(struct SM502_HWData
*data
);
53 void sm502DoRefreshArea(struct SM502_HWData
*hwdata
, struct BitmapData
*data
,
54 LONG x1
, LONG y1
, LONG x2
, LONG y2
);