root/arch/sparc/kernel/setup.c

/* [previous][next][first][last][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. bios32_init
  2. sparc_console_print
  3. setup_arch
  4. sys_ioperm

   1 /*
   2  *  linux/arch/alpha/kernel/setup.c
   3  *
   4  *  Copyright (C) 1995  David S. Miller (davem@caip.rutgers.edu)
   5  */
   6 
   7 /*
   8  * bootup setup stuff..
   9  */
  10 
  11 #include <linux/errno.h>
  12 #include <linux/sched.h>
  13 #include <linux/kernel.h>
  14 #include <linux/mm.h>
  15 #include <linux/stddef.h>
  16 #include <linux/unistd.h>
  17 #include <linux/ptrace.h>
  18 #include <linux/malloc.h>
  19 #include <linux/ldt.h>
  20 #include <linux/user.h>
  21 #include <linux/a.out.h>
  22 #include <linux/tty.h>
  23 
  24 #include <asm/segment.h>
  25 #include <asm/system.h>
  26 #include <asm/io.h>
  27 #include <asm/openprom.h>   /* for console registration + cheese */
  28 
  29 extern void get_idprom(void);
  30 extern void probe_devices(void);
  31 
  32 /*
  33  * Gcc is hard to keep happy ;-)
  34  */
  35 struct screen_info screen_info = {
  36         0, 0,                   /* orig-x, orig-y */
  37         { 0, 0, },              /* unused */
  38         0,                      /* orig-video-page */
  39         0,                      /* orig-video-mode */
  40         80,                     /* orig-video-cols */
  41         0,0,0,                  /* ega_ax, ega_bx, ega_cx */
  42         25                      /* orig-video-lines */
  43 };
  44 
  45 /* At least I hide the sneaky floppy_track_buffer in my dirty assembly
  46  * code. ;-)
  47  */
  48 
  49 unsigned long bios32_init(unsigned long memory_start, unsigned long memory_end)
     /* [previous][next][first][last][top][bottom][index][help] */
  50 {
  51         return memory_start;
  52 }
  53 
  54 /* Lame prom console routines, gets registered below. Thanks for the
  55  * tip Linus.
  56  */
  57 
  58 void sparc_console_print(const char * p)
     /* [previous][next][first][last][top][bottom][index][help] */
  59 {
  60   unsigned char c;
  61 
  62         while ((c = *(p++)) != 0)
  63           {
  64             if (c == '\n') romvec->pv_putchar('\r');
  65             (*(romvec->pv_putchar))(c);
  66           }
  67 
  68   return;
  69 
  70 }
  71 
  72 /* This routine will in the future do all the nasty prom stuff
  73  * to probe for the mmu type and it's parameters, etc. This will
  74  * also be where SMP things happen plus the Sparc specific memory
  75  * physical memory probe as on the alpha.
  76  */
  77 
  78 extern void register_console(void (*proc)(const char *));
  79 
  80 void setup_arch(char **cmdline_p,
     /* [previous][next][first][last][top][bottom][index][help] */
  81         unsigned long * memory_start_p, unsigned long * memory_end_p)
  82 {
  83         extern int _end;
  84 
  85         register_console(sparc_console_print);
  86 
  87         printk("Sparc PROM-Console registered...\n");
  88 
  89         printk("calling get_idprom...\n");
  90         get_idprom();     /* probe_devices expects this to be done */
  91 
  92         printk("calling probe_devices...\n");
  93         probe_devices();  /* cpu/fpu, mmu probes */
  94 
  95         *memory_start_p = (((unsigned long) &end));
  96 }
  97 
  98 asmlinkage int sys_ioperm(unsigned long from, unsigned long num, int on)
     /* [previous][next][first][last][top][bottom][index][help] */
  99 {
 100         return -EIO;
 101 }

/* [previous][next][first][last][top][bottom][index][help] */