struct mac_booter_data mac_bi_data = {0,};
int mac_bisize = sizeof mac_bi_data;
+struct mac_hw_present mac_hw_present;
+
/* New m68k bootinfo stuff and videobase */
extern int m68k_num_memory;
extern unsigned long mac_videodepth;
extern unsigned long mac_rowbytes;
-extern void mac_serial_print(char *);
+extern void mac_serial_print(const char *);
#define DEBUG_HEADS
#undef DEBUG_SCREEN
* TODO: serial debug code
*/
-struct SCC
+struct mac_SCC
{
u_char cha_b_ctrl;
u_char char_dummy1;
u_char cha_a_data;
};
-# define scc (*((volatile struct SCC*)mac_bi_data.sccbase))
+# define scc (*((volatile struct mac_SCC*)mac_bi_data.sccbase))
/* Flag that serial port is already initialized and used */
int mac_SCC_init_done = 0;
/* hardware stuff */
-#define MACHW_DECLARE(name) unsigned name : 1
-#define MACHW_SET(name) (mac_hw_present.name = 1)
-#define MACHW_PRESENT(name) (mac_hw_present.name)
+#define MACHW_DECLARE(name) unsigned name : 1
+#define MACHW_SET(name) (mac_hw_present.name = 1)
+#define MACHW_PRESENT(name) (mac_hw_present.name)
-struct {
+struct mac_hw_present {
/* video hardware */
/* sound hardware */
/* disk storage interfaces */
MACHW_DECLARE(RBV); /* Versatile Interface Ad. 2+ */
/* NUBUS */
MACHW_DECLARE(NUBUS); /* NUBUS */
-} mac_hw_present;
+};
-/* extern struct mac_hw_present mac_hw_present; */
+extern struct mac_hw_present mac_hw_present;
#endif /* __ASSEMBLY__ */