Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
| 13 | #ifndef _ASM_MACHW_H_ |
| 14 | #define _ASM_MACHW_H_ |
| 15 | |
| 16 | /* |
| 17 | * head.S maps the videomem to VIDEOMEMBASE |
| 18 | */ |
| 19 | |
| 20 | #define VIDEOMEMBASE 0xf0000000 |
| 21 | #define VIDEOMEMSIZE (4096*1024) |
| 22 | #define VIDEOMEMMASK (-4096*1024) |
| 23 | |
| 24 | #ifndef __ASSEMBLY__ |
| 25 | |
| 26 | #include <linux/types.h> |
| 27 | |
| 28 | #if 0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 29 | /* |
| 30 | ** SCC Z8530 |
| 31 | */ |
| 32 | |
| 33 | #define MAC_SCC_BAS (0x50F04000) |
| 34 | struct MAC_SCC |
| 35 | { |
| 36 | u_char cha_a_ctrl; |
| 37 | u_char char_dummy1; |
| 38 | u_char cha_a_data; |
| 39 | u_char char_dummy2; |
| 40 | u_char cha_b_ctrl; |
| 41 | u_char char_dummy3; |
| 42 | u_char cha_b_data; |
| 43 | }; |
| 44 | # define mac_scc ((*(volatile struct SCC*)MAC_SCC_BAS)) |
| 45 | #endif |
| 46 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 47 | #endif /* __ASSEMBLY__ */ |
| 48 | |
| 49 | #endif /* linux/machw.h */ |