2 * linux/arch/m68k/amiga/config.c
4 * Copyright (C) 1993 Hamish Macdonald
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file COPYING in the main directory of this archive
12 * Miscellaneous Amiga stuff
15 #include <linux/types.h>
16 #include <linux/kernel.h>
18 #include <linux/seq_file.h>
19 #include <linux/tty.h>
20 #include <linux/console.h>
21 #include <linux/rtc.h>
22 #include <linux/init.h>
23 #include <linux/vt_kern.h>
24 #include <linux/delay.h>
25 #include <linux/interrupt.h>
26 #include <linux/zorro.h>
27 #include <linux/module.h>
28 #include <linux/keyboard.h>
30 #include <asm/bootinfo.h>
31 #include <asm/bootinfo-amiga.h>
32 #include <asm/byteorder.h>
33 #include <asm/setup.h>
34 #include <asm/pgtable.h>
35 #include <asm/amigahw.h>
36 #include <asm/amigaints.h>
39 #include <asm/machdep.h>
42 static unsigned long amiga_model
;
44 unsigned long amiga_eclock
;
45 EXPORT_SYMBOL(amiga_eclock
);
47 unsigned long amiga_colorclock
;
48 EXPORT_SYMBOL(amiga_colorclock
);
50 unsigned long amiga_chipset
;
51 EXPORT_SYMBOL(amiga_chipset
);
53 unsigned char amiga_vblank
;
54 EXPORT_SYMBOL(amiga_vblank
);
56 static unsigned char amiga_psfreq
;
58 struct amiga_hw_present amiga_hw_present
;
59 EXPORT_SYMBOL(amiga_hw_present
);
61 static char s_a500
[] __initdata
= "A500";
62 static char s_a500p
[] __initdata
= "A500+";
63 static char s_a600
[] __initdata
= "A600";
64 static char s_a1000
[] __initdata
= "A1000";
65 static char s_a1200
[] __initdata
= "A1200";
66 static char s_a2000
[] __initdata
= "A2000";
67 static char s_a2500
[] __initdata
= "A2500";
68 static char s_a3000
[] __initdata
= "A3000";
69 static char s_a3000t
[] __initdata
= "A3000T";
70 static char s_a3000p
[] __initdata
= "A3000+";
71 static char s_a4000
[] __initdata
= "A4000";
72 static char s_a4000t
[] __initdata
= "A4000T";
73 static char s_cdtv
[] __initdata
= "CDTV";
74 static char s_cd32
[] __initdata
= "CD32";
75 static char s_draco
[] __initdata
= "Draco";
76 static char *amiga_models
[] __initdata
= {
77 [AMI_500
-AMI_500
] = s_a500
,
78 [AMI_500PLUS
-AMI_500
] = s_a500p
,
79 [AMI_600
-AMI_500
] = s_a600
,
80 [AMI_1000
-AMI_500
] = s_a1000
,
81 [AMI_1200
-AMI_500
] = s_a1200
,
82 [AMI_2000
-AMI_500
] = s_a2000
,
83 [AMI_2500
-AMI_500
] = s_a2500
,
84 [AMI_3000
-AMI_500
] = s_a3000
,
85 [AMI_3000T
-AMI_500
] = s_a3000t
,
86 [AMI_3000PLUS
-AMI_500
] = s_a3000p
,
87 [AMI_4000
-AMI_500
] = s_a4000
,
88 [AMI_4000T
-AMI_500
] = s_a4000t
,
89 [AMI_CDTV
-AMI_500
] = s_cdtv
,
90 [AMI_CD32
-AMI_500
] = s_cd32
,
91 [AMI_DRACO
-AMI_500
] = s_draco
,
94 static char amiga_model_name
[13] = "Amiga ";
96 static void amiga_sched_init(irq_handler_t handler
);
97 static void amiga_get_model(char *model
);
98 static void amiga_get_hardware_list(struct seq_file
*m
);
99 /* amiga specific timer functions */
100 static u32
amiga_gettimeoffset(void);
101 extern void amiga_mksound(unsigned int count
, unsigned int ticks
);
102 static void amiga_reset(void);
103 extern void amiga_init_sound(void);
104 static void amiga_mem_console_write(struct console
*co
, const char *b
,
106 #ifdef CONFIG_HEARTBEAT
107 static void amiga_heartbeat(int on
);
110 static struct console amiga_console_driver
= {
112 .flags
= CON_PRINTBUFFER
,
118 * Motherboard Resources present in all Amiga models
122 struct resource _ciab
, _ciaa
, _custom
, _kickstart
;
125 .name
= "CIA B", .start
= 0x00bfd000, .end
= 0x00bfdfff
128 .name
= "CIA A", .start
= 0x00bfe000, .end
= 0x00bfefff
131 .name
= "Custom I/O", .start
= 0x00dff000, .end
= 0x00dfffff
134 .name
= "Kickstart ROM", .start
= 0x00f80000, .end
= 0x00ffffff
138 static struct resource ram_resource
[NUM_MEMINFO
];
142 * Parse an Amiga-specific record in the bootinfo
145 int __init
amiga_parse_bootinfo(const struct bi_record
*record
)
148 const void *data
= record
->data
;
150 switch (be16_to_cpu(record
->tag
)) {
152 amiga_model
= be32_to_cpup(data
);
155 case BI_AMIGA_ECLOCK
:
156 amiga_eclock
= be32_to_cpup(data
);
159 case BI_AMIGA_CHIPSET
:
160 amiga_chipset
= be32_to_cpup(data
);
163 case BI_AMIGA_CHIP_SIZE
:
164 amiga_chip_size
= be32_to_cpup(data
);
167 case BI_AMIGA_VBLANK
:
168 amiga_vblank
= *(const __u8
*)data
;
171 case BI_AMIGA_PSFREQ
:
172 amiga_psfreq
= *(const __u8
*)data
;
175 case BI_AMIGA_AUTOCON
:
177 if (zorro_num_autocon
< ZORRO_NUM_AUTO
) {
178 const struct ConfigDev
*cd
= data
;
179 struct zorro_dev_init
*dev
= &zorro_autocon_init
[zorro_num_autocon
++];
180 dev
->rom
= cd
->cd_Rom
;
181 dev
->slotaddr
= be16_to_cpu(cd
->cd_SlotAddr
);
182 dev
->slotsize
= be16_to_cpu(cd
->cd_SlotSize
);
183 dev
->boardaddr
= be32_to_cpu(cd
->cd_BoardAddr
);
184 dev
->boardsize
= be32_to_cpu(cd
->cd_BoardSize
);
186 pr_warn("amiga_parse_bootinfo: too many AutoConfig devices\n");
187 #endif /* CONFIG_ZORRO */
190 case BI_AMIGA_SERPER
:
191 /* serial port period: ignored here */
201 * Identify builtin hardware
204 static void __init
amiga_identify(void)
206 /* Fill in some default values, if necessary */
207 if (amiga_eclock
== 0)
208 amiga_eclock
= 709379;
210 memset(&amiga_hw_present
, 0, sizeof(amiga_hw_present
));
212 pr_info("Amiga hardware found: ");
213 if (amiga_model
>= AMI_500
&& amiga_model
<= AMI_DRACO
) {
214 pr_cont("[%s] ", amiga_models
[amiga_model
-AMI_500
]);
215 strcat(amiga_model_name
, amiga_models
[amiga_model
-AMI_500
]);
218 switch (amiga_model
) {
224 AMIGAHW_SET(A1200_IDE
);
231 AMIGAHW_SET(A2000_CLK
); /* Is this correct for all models? */
236 AMIGAHW_SET(AMBER_FF
);
237 AMIGAHW_SET(MAGIC_REKICK
);
240 AMIGAHW_SET(A3000_SCSI
);
241 AMIGAHW_SET(A3000_CLK
);
246 AMIGAHW_SET(A4000_SCSI
);
249 AMIGAHW_SET(A4000_IDE
);
250 AMIGAHW_SET(A3000_CLK
);
257 AMIGAHW_SET(A2000_CLK
); /* Is this correct? */
261 AMIGAHW_SET(AMI_VIDEO
);
262 AMIGAHW_SET(AMI_BLITTER
);
263 AMIGAHW_SET(AMI_AUDIO
);
264 AMIGAHW_SET(AMI_FLOPPY
);
265 AMIGAHW_SET(AMI_KEYBOARD
);
266 AMIGAHW_SET(AMI_MOUSE
);
267 AMIGAHW_SET(AMI_SERIAL
);
268 AMIGAHW_SET(AMI_PARALLEL
);
269 AMIGAHW_SET(CHIP_RAM
);
272 switch (amiga_chipset
) {
276 switch (amiga_custom
.deniseid
& 0xf) {
278 AMIGAHW_SET(DENISE_HR
);
289 switch ((amiga_custom
.vposr
>>8) & 0x7f) {
291 AMIGAHW_SET(AGNUS_PAL
);
294 AMIGAHW_SET(AGNUS_NTSC
);
298 AMIGAHW_SET(AGNUS_HR_PAL
);
302 AMIGAHW_SET(AGNUS_HR_NTSC
);
306 AMIGAHW_SET(ALICE_PAL
);
310 AMIGAHW_SET(ALICE_NTSC
);
317 panic("No support for Draco yet");
320 panic("Unknown Amiga Model");
323 #define AMIGAHW_ANNOUNCE(name, str) \
324 if (AMIGAHW_PRESENT(name)) \
327 AMIGAHW_ANNOUNCE(AMI_VIDEO
, "VIDEO ");
328 AMIGAHW_ANNOUNCE(AMI_BLITTER
, "BLITTER ");
329 AMIGAHW_ANNOUNCE(AMBER_FF
, "AMBER_FF ");
330 AMIGAHW_ANNOUNCE(AMI_AUDIO
, "AUDIO ");
331 AMIGAHW_ANNOUNCE(AMI_FLOPPY
, "FLOPPY ");
332 AMIGAHW_ANNOUNCE(A3000_SCSI
, "A3000_SCSI ");
333 AMIGAHW_ANNOUNCE(A4000_SCSI
, "A4000_SCSI ");
334 AMIGAHW_ANNOUNCE(A1200_IDE
, "A1200_IDE ");
335 AMIGAHW_ANNOUNCE(A4000_IDE
, "A4000_IDE ");
336 AMIGAHW_ANNOUNCE(CD_ROM
, "CD_ROM ");
337 AMIGAHW_ANNOUNCE(AMI_KEYBOARD
, "KEYBOARD ");
338 AMIGAHW_ANNOUNCE(AMI_MOUSE
, "MOUSE ");
339 AMIGAHW_ANNOUNCE(AMI_SERIAL
, "SERIAL ");
340 AMIGAHW_ANNOUNCE(AMI_PARALLEL
, "PARALLEL ");
341 AMIGAHW_ANNOUNCE(A2000_CLK
, "A2000_CLK ");
342 AMIGAHW_ANNOUNCE(A3000_CLK
, "A3000_CLK ");
343 AMIGAHW_ANNOUNCE(CHIP_RAM
, "CHIP_RAM ");
344 AMIGAHW_ANNOUNCE(PAULA
, "PAULA ");
345 AMIGAHW_ANNOUNCE(DENISE
, "DENISE ");
346 AMIGAHW_ANNOUNCE(DENISE_HR
, "DENISE_HR ");
347 AMIGAHW_ANNOUNCE(LISA
, "LISA ");
348 AMIGAHW_ANNOUNCE(AGNUS_PAL
, "AGNUS_PAL ");
349 AMIGAHW_ANNOUNCE(AGNUS_NTSC
, "AGNUS_NTSC ");
350 AMIGAHW_ANNOUNCE(AGNUS_HR_PAL
, "AGNUS_HR_PAL ");
351 AMIGAHW_ANNOUNCE(AGNUS_HR_NTSC
, "AGNUS_HR_NTSC ");
352 AMIGAHW_ANNOUNCE(ALICE_PAL
, "ALICE_PAL ");
353 AMIGAHW_ANNOUNCE(ALICE_NTSC
, "ALICE_NTSC ");
354 AMIGAHW_ANNOUNCE(MAGIC_REKICK
, "MAGIC_REKICK ");
355 AMIGAHW_ANNOUNCE(PCMCIA
, "PCMCIA ");
356 if (AMIGAHW_PRESENT(ZORRO
))
357 pr_cont("ZORRO%s ", AMIGAHW_PRESENT(ZORRO3
) ? "3" : "");
360 #undef AMIGAHW_ANNOUNCE
364 static unsigned long amiga_random_get_entropy(void)
366 /* VPOSR/VHPOSR provide at least 17 bits of data changing at 1.79 MHz */
367 return *(unsigned long *)&amiga_custom
.vposr
;
372 * Setup the Amiga configuration info
375 void __init
config_amiga(void)
381 /* Yuk, we don't have PCI memory */
382 iomem_resource
.name
= "Memory";
383 for (i
= 0; i
< 4; i
++)
384 request_resource(&iomem_resource
, &((struct resource
*)&mb_resources
)[i
]);
386 mach_sched_init
= amiga_sched_init
;
387 mach_init_IRQ
= amiga_init_IRQ
;
388 mach_get_model
= amiga_get_model
;
389 mach_get_hardware_list
= amiga_get_hardware_list
;
390 arch_gettimeoffset
= amiga_gettimeoffset
;
393 * default MAX_DMA=0xffffffff on all machines. If we don't do so, the SCSI
394 * code will not be able to allocate any mem for transfers, unless we are
395 * dealing with a Z2 mem only system. /Jes
397 mach_max_dma_address
= 0xffffffff;
399 mach_reset
= amiga_reset
;
400 #if defined(CONFIG_INPUT_M68K_BEEP) || defined(CONFIG_INPUT_M68K_BEEP_MODULE)
401 mach_beep
= amiga_mksound
;
404 #ifdef CONFIG_HEARTBEAT
405 mach_heartbeat
= amiga_heartbeat
;
408 mach_random_get_entropy
= amiga_random_get_entropy
;
410 /* Fill in the clock value (based on the 700 kHz E-Clock) */
411 amiga_colorclock
= 5*amiga_eclock
; /* 3.5 MHz */
413 /* clear all DMA bits */
414 amiga_custom
.dmacon
= DMAF_ALL
;
415 /* ensure that the DMA master bit is set */
416 amiga_custom
.dmacon
= DMAF_SETCLR
| DMAF_MASTER
;
418 /* don't use Z2 RAM as system memory on Z3 capable machines */
419 if (AMIGAHW_PRESENT(ZORRO3
)) {
421 u32 disabled_z2mem
= 0;
423 for (i
= 0; i
< m68k_num_memory
; i
++) {
424 if (m68k_memory
[i
].addr
< 16*1024*1024) {
426 /* don't cut off the branch we're sitting on */
427 pr_warn("Warning: kernel runs in Zorro II memory\n");
430 disabled_z2mem
+= m68k_memory
[i
].size
;
432 for (j
= i
; j
< m68k_num_memory
; j
++)
433 m68k_memory
[j
] = m68k_memory
[j
+1];
438 pr_info("%dK of Zorro II memory will not be used as system memory\n",
442 /* request all RAM */
443 for (i
= 0; i
< m68k_num_memory
; i
++) {
444 ram_resource
[i
].name
=
445 (m68k_memory
[i
].addr
>= 0x01000000) ? "32-bit Fast RAM" :
446 (m68k_memory
[i
].addr
< 0x00c00000) ? "16-bit Fast RAM" :
448 ram_resource
[i
].start
= m68k_memory
[i
].addr
;
449 ram_resource
[i
].end
= m68k_memory
[i
].addr
+m68k_memory
[i
].size
-1;
450 request_resource(&iomem_resource
, &ram_resource
[i
]);
453 /* initialize chipram allocator */
456 /* our beloved beeper */
457 if (AMIGAHW_PRESENT(AMI_AUDIO
))
461 * if it is an A3000, set the magic bit that forces
464 if (AMIGAHW_PRESENT(MAGIC_REKICK
))
465 *(unsigned char *)ZTWO_VADDR(0xde0002) |= 0x80;
468 static unsigned short jiffy_ticks
;
470 static void __init
amiga_sched_init(irq_handler_t timer_routine
)
472 static struct resource sched_res
= {
473 .name
= "timer", .start
= 0x00bfd400, .end
= 0x00bfd5ff,
475 jiffy_ticks
= DIV_ROUND_CLOSEST(amiga_eclock
, HZ
);
477 if (request_resource(&mb_resources
._ciab
, &sched_res
))
478 pr_warn("Cannot allocate ciab.ta{lo,hi}\n");
479 ciab
.cra
&= 0xC0; /* turn off timer A, continuous mode, from Eclk */
480 ciab
.talo
= jiffy_ticks
% 256;
481 ciab
.tahi
= jiffy_ticks
/ 256;
483 /* install interrupt service routine for CIAB Timer A
485 * Please don't change this to use ciaa, as it interferes with the
486 * SCSI code. We'll have to take a look at this later
488 if (request_irq(IRQ_AMIGA_CIAB_TA
, timer_routine
, 0, "timer", NULL
))
489 pr_err("Couldn't register timer interrupt\n");
494 #define TICK_SIZE 10000
496 /* This is always executed with interrupts disabled. */
497 static u32
amiga_gettimeoffset(void)
499 unsigned short hi
, lo
, hi2
;
500 u32 ticks
, offset
= 0;
502 /* read CIA B timer A current value */
512 ticks
= hi
<< 8 | lo
;
514 if (ticks
> jiffy_ticks
/ 2)
515 /* check for pending interrupt */
516 if (cia_set_irq(&ciab_base
, 0) & CIA_ICR_TA
)
519 ticks
= jiffy_ticks
- ticks
;
520 ticks
= (10000 * ticks
) / jiffy_ticks
;
522 return (ticks
+ offset
) * 1000;
525 static void amiga_reset(void) __noreturn
;
527 static void amiga_reset(void)
529 unsigned long jmp_addr040
= virt_to_phys(&&jmp_addr_label040
);
530 unsigned long jmp_addr
= virt_to_phys(&&jmp_addr_label
);
533 if (CPU_IS_040_OR_060
)
534 /* Setup transparent translation registers for mapping
535 * of 16 MB kernel segment before disabling translation
539 " and.l #0xff000000,%%d0\n"
540 " or.w #0xe020,%%d0\n" /* map 16 MB, enable, cacheable */
542 " movec %%d0,%%itt0\n"
543 " movec %%d0,%%dtt0\n"
550 /* for 680[23]0, just disable translation and jump to the physical
551 * address of the label
561 /* disable translation on '040 now */
565 " movec %%d0,%%tc\n" /* disable MMU */
572 /* pickup reset address from AmigaOS ROM, reset devices and jump
576 " move.w #0x2700,%sr\n"
577 " lea 0x01000000,%a0\n"
578 " sub.l %a0@(-0x14),%a0\n"
579 " move.l %a0@(4),%a0\n"
582 /* align on a longword boundary */
597 #define SAVEKMSG_MAXMEM 128*1024
599 #define SAVEKMSG_MAGIC1 0x53415645 /* 'SAVE' */
600 #define SAVEKMSG_MAGIC2 0x4B4D5347 /* 'KMSG' */
603 unsigned long magic1
; /* SAVEKMSG_MAGIC1 */
604 unsigned long magic2
; /* SAVEKMSG_MAGIC2 */
605 unsigned long magicptr
; /* address of magic1 */
610 static struct savekmsg
*savekmsg
;
612 static void amiga_mem_console_write(struct console
*co
, const char *s
,
615 if (savekmsg
->size
+ count
<= SAVEKMSG_MAXMEM
-sizeof(struct savekmsg
)) {
616 memcpy(savekmsg
->data
+ savekmsg
->size
, s
, count
);
617 savekmsg
->size
+= count
;
621 static int __init
amiga_savekmsg_setup(char *arg
)
625 if (!MACH_IS_AMIGA
|| strcmp(arg
, "mem"))
628 if (amiga_chip_size
< SAVEKMSG_MAXMEM
) {
629 pr_err("Not enough chipram for debugging\n");
633 /* Just steal the block, the chipram allocator isn't functional yet */
634 amiga_chip_size
-= SAVEKMSG_MAXMEM
;
635 savekmsg
= ZTWO_VADDR(CHIP_PHYSADDR
+ amiga_chip_size
);
636 savekmsg
->magic1
= SAVEKMSG_MAGIC1
;
637 savekmsg
->magic2
= SAVEKMSG_MAGIC2
;
638 savekmsg
->magicptr
= ZTWO_PADDR(savekmsg
);
641 registered
= !!amiga_console_driver
.write
;
642 amiga_console_driver
.write
= amiga_mem_console_write
;
644 register_console(&amiga_console_driver
);
648 early_param("debug", amiga_savekmsg_setup
);
650 static void amiga_serial_putc(char c
)
652 amiga_custom
.serdat
= (unsigned char)c
| 0x100;
653 while (!(amiga_custom
.serdatr
& 0x2000))
657 static void amiga_serial_console_write(struct console
*co
, const char *s
,
662 amiga_serial_putc('\r');
663 amiga_serial_putc(*s
++);
668 void amiga_serial_puts(const char *s
)
670 amiga_serial_console_write(NULL
, s
, strlen(s
));
673 int amiga_serial_console_wait_key(struct console
*co
)
677 while (!(amiga_custom
.intreqr
& IF_RBF
))
679 ch
= amiga_custom
.serdatr
& 0xff;
680 /* clear the interrupt, so that another character can be read */
681 amiga_custom
.intreq
= IF_RBF
;
685 void amiga_serial_gets(struct console
*co
, char *s
, int len
)
690 ch
= amiga_serial_console_wait_key(co
);
692 /* Check for backspace. */
693 if (ch
== 8 || ch
== 127) {
695 amiga_serial_putc('\007');
699 amiga_serial_puts("\010 \010");
703 /* Check for enter. */
704 if (ch
== 10 || ch
== 13)
707 /* See if line is too long. */
708 if (cnt
>= len
+ 1) {
709 amiga_serial_putc(7);
714 /* Store and echo character. */
716 amiga_serial_putc(ch
);
719 amiga_serial_puts("\r\n");
724 static int __init
amiga_debug_setup(char *arg
)
728 if (!MACH_IS_AMIGA
|| strcmp(arg
, "ser"))
731 /* no initialization required (?) */
732 registered
= !!amiga_console_driver
.write
;
733 amiga_console_driver
.write
= amiga_serial_console_write
;
735 register_console(&amiga_console_driver
);
739 early_param("debug", amiga_debug_setup
);
741 #ifdef CONFIG_HEARTBEAT
742 static void amiga_heartbeat(int on
)
752 * Amiga specific parts of /proc
755 static void amiga_get_model(char *model
)
757 strcpy(model
, amiga_model_name
);
761 static void amiga_get_hardware_list(struct seq_file
*m
)
763 if (AMIGAHW_PRESENT(CHIP_RAM
))
764 seq_printf(m
, "Chip RAM:\t%ldK\n", amiga_chip_size
>>10);
765 seq_printf(m
, "PS Freq:\t%dHz\nEClock Freq:\t%ldHz\n",
766 amiga_psfreq
, amiga_eclock
);
767 if (AMIGAHW_PRESENT(AMI_VIDEO
)) {
769 switch (amiga_chipset
) {
780 type
= "Old or Unknown";
783 seq_printf(m
, "Graphics:\t%s\n", type
);
786 #define AMIGAHW_ANNOUNCE(name, str) \
787 if (AMIGAHW_PRESENT(name)) \
788 seq_printf (m, "\t%s\n", str)
790 seq_printf (m
, "Detected hardware:\n");
792 AMIGAHW_ANNOUNCE(AMI_VIDEO
, "Amiga Video");
793 AMIGAHW_ANNOUNCE(AMI_BLITTER
, "Blitter");
794 AMIGAHW_ANNOUNCE(AMBER_FF
, "Amber Flicker Fixer");
795 AMIGAHW_ANNOUNCE(AMI_AUDIO
, "Amiga Audio");
796 AMIGAHW_ANNOUNCE(AMI_FLOPPY
, "Floppy Controller");
797 AMIGAHW_ANNOUNCE(A3000_SCSI
, "SCSI Controller WD33C93 (A3000 style)");
798 AMIGAHW_ANNOUNCE(A4000_SCSI
, "SCSI Controller NCR53C710 (A4000T style)");
799 AMIGAHW_ANNOUNCE(A1200_IDE
, "IDE Interface (A1200 style)");
800 AMIGAHW_ANNOUNCE(A4000_IDE
, "IDE Interface (A4000 style)");
801 AMIGAHW_ANNOUNCE(CD_ROM
, "Internal CD ROM drive");
802 AMIGAHW_ANNOUNCE(AMI_KEYBOARD
, "Keyboard");
803 AMIGAHW_ANNOUNCE(AMI_MOUSE
, "Mouse Port");
804 AMIGAHW_ANNOUNCE(AMI_SERIAL
, "Serial Port");
805 AMIGAHW_ANNOUNCE(AMI_PARALLEL
, "Parallel Port");
806 AMIGAHW_ANNOUNCE(A2000_CLK
, "Hardware Clock (A2000 style)");
807 AMIGAHW_ANNOUNCE(A3000_CLK
, "Hardware Clock (A3000 style)");
808 AMIGAHW_ANNOUNCE(CHIP_RAM
, "Chip RAM");
809 AMIGAHW_ANNOUNCE(PAULA
, "Paula 8364");
810 AMIGAHW_ANNOUNCE(DENISE
, "Denise 8362");
811 AMIGAHW_ANNOUNCE(DENISE_HR
, "Denise 8373");
812 AMIGAHW_ANNOUNCE(LISA
, "Lisa 8375");
813 AMIGAHW_ANNOUNCE(AGNUS_PAL
, "Normal/Fat PAL Agnus 8367/8371");
814 AMIGAHW_ANNOUNCE(AGNUS_NTSC
, "Normal/Fat NTSC Agnus 8361/8370");
815 AMIGAHW_ANNOUNCE(AGNUS_HR_PAL
, "Fat Hires PAL Agnus 8372");
816 AMIGAHW_ANNOUNCE(AGNUS_HR_NTSC
, "Fat Hires NTSC Agnus 8372");
817 AMIGAHW_ANNOUNCE(ALICE_PAL
, "PAL Alice 8374");
818 AMIGAHW_ANNOUNCE(ALICE_NTSC
, "NTSC Alice 8374");
819 AMIGAHW_ANNOUNCE(MAGIC_REKICK
, "Magic Hard Rekick");
820 AMIGAHW_ANNOUNCE(PCMCIA
, "PCMCIA Slot");
822 if (AMIGAHW_PRESENT(ZORRO
))
823 seq_printf(m
, "\tZorro II%s AutoConfig: %d Expansion "
825 AMIGAHW_PRESENT(ZORRO3
) ? "I" : "",
826 zorro_num_autocon
, zorro_num_autocon
== 1 ? "" : "s");
827 #endif /* CONFIG_ZORRO */
829 #undef AMIGAHW_ANNOUNCE
833 * The Amiga keyboard driver needs key_maps, but we cannot export it in
834 * drivers/char/defkeymap.c, as it is autogenerated
836 #ifdef CONFIG_HW_CONSOLE
837 EXPORT_SYMBOL_GPL(key_maps
);