machw.h 958 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. ** linux/machw.h -- This header defines some macros and pointers for
  3. ** the various Macintosh custom hardware registers.
  4. **
  5. ** Copyright 1997 by Michael Schmitz
  6. **
  7. ** This file is subject to the terms and conditions of the GNU General Public
  8. ** License. See the file COPYING in the main directory of this archive
  9. ** for more details.
  10. **
  11. */
  12. #ifndef _ASM_MACHW_H_
  13. #define _ASM_MACHW_H_
  14. /*
  15. * head.S maps the videomem to VIDEOMEMBASE
  16. */
  17. #define VIDEOMEMBASE 0xf0000000
  18. #define VIDEOMEMSIZE (4096*1024)
  19. #define VIDEOMEMMASK (-4096*1024)
  20. #ifndef __ASSEMBLY__
  21. #include <linux/types.h>
  22. #if 0
  23. /*
  24. ** SCC Z8530
  25. */
  26. #define MAC_SCC_BAS (0x50F04000)
  27. struct MAC_SCC
  28. {
  29. u_char cha_a_ctrl;
  30. u_char char_dummy1;
  31. u_char cha_a_data;
  32. u_char char_dummy2;
  33. u_char cha_b_ctrl;
  34. u_char char_dummy3;
  35. u_char cha_b_data;
  36. };
  37. # define mac_scc ((*(volatile struct SCC*)MAC_SCC_BAS))
  38. #endif
  39. #endif /* __ASSEMBLY__ */
  40. #endif /* linux/machw.h */