root/arch/mips/kernel/ioport.c

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

DEFINITIONS

This source file includes following definitions.
  1. sys_ioperm
  2. sys_iopl

   1 /*
   2  * linux/arch/mips/kernel/ioport.c
   3  */
   4 #include <linux/sched.h>
   5 #include <linux/kernel.h>
   6 #include <linux/errno.h>
   7 #include <linux/types.h>
   8 #include <linux/ioport.h>
   9 
  10 /*
  11  * This changes the io permissions bitmap in the current task.
  12  */
  13 asmlinkage int sys_ioperm(unsigned long from, unsigned long num, int turn_on)
     /* [previous][next][first][last][top][bottom][index][help] */
  14 {
  15         return -ENOSYS;
  16 }
  17 
  18 unsigned int *stack;
  19 
  20 /*
  21  * sys_iopl has to be used when you want to access the IO ports
  22  * beyond the 0x3ff range: to get the full 65536 ports bitmapped
  23  * you'd need 8kB of bitmaps/process, which is a bit excessive.
  24  *
  25  * Here we just change the eflags value on the stack: we allow
  26  * only the super-user to do it. This depends on the stack-layout
  27  * on system-call entry - see also fork() and the signal handling
  28  * code.
  29  */
  30 asmlinkage int sys_iopl(long ebx,long ecx,long edx,
     /* [previous][next][first][last][top][bottom][index][help] */
  31              long esi, long edi, long ebp, long eax, long ds,
  32              long es, long fs, long gs, long orig_eax,
  33              long eip,long cs,long eflags,long esp,long ss)
  34 {
  35         return -ENOSYS;
  36 }

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