QuirksCheck.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * Copyright (C) 2023 Eric Helgeson
  3. * Portions ZuluSCSI™ - Copyright (c) 2023 Rabbit Hole Computing™
  4. *
  5. * This file is licensed under the GPL version 3 or any later version. 
  6. * It is derived from BlueSCSI_platform_config_hook.h in BluSCSI-v2
  7. *
  8. * https://www.gnu.org/licenses/gpl-3.0.html
  9. * ----
  10. * This program is free software: you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation, either version 3 of the License, or
  13. * (at your option) any later version. 
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18. * GNU General Public License for more details. 
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  22. **/
  23. #pragma once
  24. #include "ZuluSCSI_disk.h"
  25. void quirksCheck(image_config_t *img);
  26. // Macintosh Device image constants
  27. #define MACINTOSH_SCSI_DRIVER_OFFSET 18
  28. #define MACINTOSH_SCSI_DRIVER_SIZE_OFFSET MACINTOSH_SCSI_DRIVER_OFFSET + 4
  29. #define MACINTOSH_BLOCK_SIZE 512
  30. #define MACINTOSH_SCSI_DRIVER_MAX_SIZE 64 * MACINTOSH_BLOCK_SIZE // 32768
  31. #define LIDO_SIG_OFFSET 24