amiga-hardware-examples/old_hardware_setup.h

26 lines
620 B
C

#include <clib/exec_protos.h>
#include <clib/intuition_protos.h>
#include <clib/graphics_protos.h>
#include <graphics/gfxbase.h>
#include <hardware/custom.h>
#ifndef OLD_HARDWARE_SETUP_H
#define OLD_HARDWARE_SETUP_H
extern struct GfxBase *GfxBase;
extern far struct Custom custom;
struct OldHardwareSetup {
struct View *OldView;
ULONG OldCopper;
UWORD OldDMACON;
UWORD OldINTENA;
UWORD OldINTREQ;
UWORD OldADKCON;
};
void oldHardware_takeOver(struct OldHardwareSetup *oldHardwareSetup);
void oldHardware_giveBack(struct OldHardwareSetup *oldHardwareSetup);
#endif /* OLD_HARDWARE_SETUP_H */