home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: Alpha / Whiteline Alpha.iso / linux / atari / source / source.lzh / atari-linux-0.01pl3 / init / config.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-05  |  1.3 KB  |  62 lines

  1. /*
  2.  *  linux/init/config.c
  3.  *
  4.  *  Copyright (C) 1993, Hamish Macdonald
  5.  *
  6.  * This file is subject to the terms and conditions of the GNU General Public
  7.  * License.  See the file README.legal in the main directory of this archive
  8.  * for more details.
  9.  */
  10.  
  11. #include <linux/config.h>
  12. #include <linux/types.h>
  13. #include <linux/bootinfo.h>
  14. #include <linux/fs.h>
  15. #include <linux/kernel.h>
  16. #include <linux/tty.h>
  17. #include <linux/console.h>
  18.  
  19. #ifdef CONFIG_AMIGA
  20. #include <linux/amigaconf.h>
  21. #endif
  22. #ifdef CONFIG_ATARI
  23. #include <linux/atariconf.h>
  24. #endif
  25. #ifdef CONFIG_MAC
  26. #include <linux/macconf.h>
  27. #endif
  28.  
  29.  
  30. void (*mach_sched_init) (isrfunc);
  31. unsigned long (*mach_keyb_init) (unsigned long);
  32. void (*mach_init_INTS) (void);
  33. int (*mach_add_isr) (unsigned long, isrfunc, int, void *);
  34. unsigned long (*mach_gettimeoffset) (void);
  35. void (*mach_gettod) (struct mktime*);
  36. void (*mach_check_partition) (struct gendisk *, unsigned int);
  37. void (*mach_mksound)( unsigned int count, unsigned int ticks ) = NULL;
  38. void (*mach_reset)( void ) = NULL;
  39.  
  40. void config_init(void)
  41. {
  42.     switch (boot_info.machtype) {
  43. #ifdef CONFIG_AMIGA
  44.         case MACH_AMIGA:
  45.         config_amiga();
  46.         break;
  47. #endif
  48. #ifdef CONFIG_ATARI
  49.         case MACH_ATARI:
  50.         config_atari();
  51.         break;
  52. #endif
  53. #ifdef CONFIG_MAC
  54.         case MACH_MAC:
  55.         config_mac();
  56.         break;
  57. #endif
  58.         default:
  59.         panic ("No configuration setup");
  60.     }
  61. }
  62.