root/arch/alpha/lib/io.c

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

DEFINITIONS

This source file includes following definitions.
  1. __bus_inb
  2. __bus_outb
  3. inb
  4. inw
  5. inl
  6. outb
  7. outw
  8. outl
  9. readb
  10. readw
  11. readl
  12. writeb
  13. writew
  14. writel

   1 /*
   2  * Alpha IO and memory functions.. Just expand the inlines in the header
   3  * files..
   4  */
   5 #include <asm/io.h>
   6 
   7 /* 
   8  * Jensen has a separate "local" and "bus" IO space for
   9  * byte-wide IO.
  10  */
  11 #ifdef __is_local
  12 #undef __bus_inb
  13 unsigned int __bus_inb(unsigned long addr)
     /* [previous][next][first][last][top][bottom][index][help] */
  14 {
  15         return ___bus_inb(addr);
  16 }
  17 
  18 #undef __bus_outb
  19 void __bus_outb(unsigned char b, unsigned long addr)
     /* [previous][next][first][last][top][bottom][index][help] */
  20 {
  21         ___bus_outb(b, addr);
  22 }
  23 #endif
  24 
  25 #undef inb
  26 unsigned int inb(unsigned long addr)
     /* [previous][next][first][last][top][bottom][index][help] */
  27 {
  28         return __inb(addr);
  29 }
  30 
  31 #undef inw
  32 unsigned int inw(unsigned long addr)
     /* [previous][next][first][last][top][bottom][index][help] */
  33 {
  34         return __inw(addr);
  35 }
  36 
  37 #undef inl
  38 unsigned int inl(unsigned long addr)
     /* [previous][next][first][last][top][bottom][index][help] */
  39 {
  40         return __inl(addr);
  41 }
  42 
  43 
  44 #undef outb
  45 void outb(unsigned char b, unsigned long addr)
     /* [previous][next][first][last][top][bottom][index][help] */
  46 {
  47         __outb(b, addr);
  48 }
  49 
  50 #undef outw
  51 void outw(unsigned short b, unsigned long addr)
     /* [previous][next][first][last][top][bottom][index][help] */
  52 {
  53         __outw(b, addr);
  54 }
  55 
  56 #undef outl
  57 void outl(unsigned int b, unsigned long addr)
     /* [previous][next][first][last][top][bottom][index][help] */
  58 {
  59         __outl(b, addr);
  60 }
  61 
  62 
  63 #undef readb
  64 unsigned long readb(unsigned long addr)
     /* [previous][next][first][last][top][bottom][index][help] */
  65 {
  66         return __readb(addr);
  67 }
  68 
  69 #undef readw
  70 unsigned long readw(unsigned long addr)
     /* [previous][next][first][last][top][bottom][index][help] */
  71 {
  72         return __readw(addr);
  73 }
  74 
  75 #undef readl
  76 unsigned long readl(unsigned long addr)
     /* [previous][next][first][last][top][bottom][index][help] */
  77 {
  78         return __readl(addr);
  79 }
  80 
  81 
  82 #undef writeb
  83 void writeb(unsigned short b, unsigned long addr)
     /* [previous][next][first][last][top][bottom][index][help] */
  84 {
  85         __writeb(b, addr);
  86 }
  87 
  88 #undef writew
  89 void writew(unsigned short b, unsigned long addr)
     /* [previous][next][first][last][top][bottom][index][help] */
  90 {
  91         __writew(b, addr);
  92 }
  93 
  94 #undef writel
  95 void writel(unsigned int b, unsigned long addr)
     /* [previous][next][first][last][top][bottom][index][help] */
  96 {
  97         __writel(b, addr);
  98 }

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