Drivers for the MNT ZZ9000 graphics and ARM coprocessor card for classic Amigas.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

54 lines
1.0 KiB

  1. /*
  2. Device Header - ROMTAG
  3. (C) 2018 Henryk Richter <henryk.richter@gmx.net>
  4. taken from commandline (compiler options)
  5. -DDEVICENAME=blah.device
  6. -DDEVICEVERSION=45
  7. -DDEVICEREVISION=36
  8. -DDEVICEDATE=2.12.2012
  9. */
  10. #include <exec/resident.h>
  11. #include <exec/nodes.h>
  12. #include <exec/initializers.h>
  13. #include <exec/libraries.h>
  14. #ifdef HAVE_VERSION_H
  15. #include "version.h"
  16. #endif
  17. #include "compiler.h"
  18. #include "device.h"
  19. /* Enable this if you want pure C for the device. (disable compilation of romtag.asm in that case)
  20. I personally prefer the small ASM blob to steer away from linking challenges.
  21. */
  22. #if 1
  23. ASM LONG LibNull( void )
  24. {
  25. return 0;
  26. }
  27. extern const char DeviceName[];
  28. extern const char DeviceVersionString[];
  29. extern const APTR DeviceInitTab[];
  30. static const struct Resident _00RomTag = {
  31. RTC_MATCHWORD,
  32. ( struct Resident* ) &_00RomTag,
  33. ( struct Resident* ) &_00RomTag + 1,
  34. RTF_AUTOINIT,
  35. DEVICEVERSION,
  36. NT_DEVICE,
  37. 0,
  38. (char*)DeviceName,
  39. (char*)DeviceVersionString+6,
  40. (APTR)DeviceInitTab
  41. };
  42. #endif