Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Variables
io.h File Reference
#include <asm/unaligned.h>

Go to the source code of this file.

Data Structures

struct  io_space
 

Macros

#define __SLOW_DOWN_IO   do { } while (0)
 
#define SLOW_DOWN_IO   do { } while (0)
 
#define __IA64_UNCACHED_OFFSET   RGN_BASE(RGN_UNCACHED)
 
#define IO_SPACE_LIMIT   0xffffffffffffffffUL
 
#define MAX_IO_SPACES_BITS   8
 
#define MAX_IO_SPACES   (1UL << MAX_IO_SPACES_BITS)
 
#define IO_SPACE_BITS   24
 
#define IO_SPACE_SIZE   (1UL << IO_SPACE_BITS)
 
#define IO_SPACE_NR(port)   ((port) >> IO_SPACE_BITS)
 
#define IO_SPACE_BASE(space)   ((space) << IO_SPACE_BITS)
 
#define IO_SPACE_PORT(port)   ((port) & (IO_SPACE_SIZE - 1))
 
#define IO_SPACE_SPARSE_ENCODING(p)   ((((p) >> 2) << 12) | ((p) & 0xfff))
 
#define __ia64_mf_a()   ia64_mfa()
 
#define __ia64_inb   ___ia64_inb
 
#define __ia64_inw   ___ia64_inw
 
#define __ia64_inl   ___ia64_inl
 
#define __ia64_outb   ___ia64_outb
 
#define __ia64_outw   ___ia64_outw
 
#define __ia64_outl   ___ia64_outl
 
#define __ia64_readb   ___ia64_readb
 
#define __ia64_readw   ___ia64_readw
 
#define __ia64_readl   ___ia64_readl
 
#define __ia64_readq   ___ia64_readq
 
#define __ia64_readb_relaxed   ___ia64_readb
 
#define __ia64_readw_relaxed   ___ia64_readw
 
#define __ia64_readl_relaxed   ___ia64_readl
 
#define __ia64_readq_relaxed   ___ia64_readq
 
#define __ia64_writeb   ___ia64_writeb
 
#define __ia64_writew   ___ia64_writew
 
#define __ia64_writel   ___ia64_writel
 
#define __ia64_writeq   ___ia64_writeq
 
#define __ia64_mmiowb   ___ia64_mmiowb
 
#define __inb   platform_inb
 
#define __inw   platform_inw
 
#define __inl   platform_inl
 
#define __outb   platform_outb
 
#define __outw   platform_outw
 
#define __outl   platform_outl
 
#define __mmiowb   platform_mmiowb
 
#define inb(p)   __inb(p)
 
#define inw(p)   __inw(p)
 
#define inl(p)   __inl(p)
 
#define insb(p, d, c)   __insb(p,d,c)
 
#define insw(p, d, c)   __insw(p,d,c)
 
#define insl(p, d, c)   __insl(p,d,c)
 
#define outb(v, p)   __outb(v,p)
 
#define outw(v, p)   __outw(v,p)
 
#define outl(v, p)   __outl(v,p)
 
#define outsb(p, s, c)   __outsb(p,s,c)
 
#define outsw(p, s, c)   __outsw(p,s,c)
 
#define outsl(p, s, c)   __outsl(p,s,c)
 
#define mmiowb()   __mmiowb()
 
#define __readb   platform_readb
 
#define __readw   platform_readw
 
#define __readl   platform_readl
 
#define __readq   platform_readq
 
#define __readb_relaxed   platform_readb_relaxed
 
#define __readw_relaxed   platform_readw_relaxed
 
#define __readl_relaxed   platform_readl_relaxed
 
#define __readq_relaxed   platform_readq_relaxed
 
#define readb(a)   __readb((a))
 
#define readw(a)   __readw((a))
 
#define readl(a)   __readl((a))
 
#define readq(a)   __readq((a))
 
#define readb_relaxed(a)   __readb_relaxed((a))
 
#define readw_relaxed(a)   __readw_relaxed((a))
 
#define readl_relaxed(a)   __readl_relaxed((a))
 
#define readq_relaxed(a)   __readq_relaxed((a))
 
#define __raw_readb   readb
 
#define __raw_readw   readw
 
#define __raw_readl   readl
 
#define __raw_readq   readq
 
#define __raw_readb_relaxed   readb_relaxed
 
#define __raw_readw_relaxed   readw_relaxed
 
#define __raw_readl_relaxed   readl_relaxed
 
#define __raw_readq_relaxed   readq_relaxed
 
#define writeb(v, a)   __writeb((v), (a))
 
#define writew(v, a)   __writew((v), (a))
 
#define writel(v, a)   __writel((v), (a))
 
#define writeq(v, a)   __writeq((v), (a))
 
#define __raw_writeb   writeb
 
#define __raw_writew   writew
 
#define __raw_writel   writel
 
#define __raw_writeq   writeq
 
#define inb_p   inb
 
#define inw_p   inw
 
#define inl_p   inl
 
#define outb_p   outb
 
#define outw_p   outw
 
#define outl_p   outl
 

Variables

struct io_space io_space []
 
unsigned int num_io_spaces
 

Macro Definition Documentation

#define __ia64_inb   ___ia64_inb

Definition at line 142 of file io.h.

#define __ia64_inl   ___ia64_inl

Definition at line 144 of file io.h.

#define __ia64_inw   ___ia64_inw

Definition at line 143 of file io.h.

#define __ia64_mf_a ( )    ia64_mfa()

Definition at line 110 of file io.h.

#define __ia64_mmiowb   ___ia64_mmiowb

Definition at line 160 of file io.h.

#define __ia64_outb   ___ia64_outb

Definition at line 145 of file io.h.

#define __ia64_outl   ___ia64_outl

Definition at line 147 of file io.h.

#define __ia64_outw   ___ia64_outw

Definition at line 146 of file io.h.

#define __ia64_readb   ___ia64_readb

Definition at line 148 of file io.h.

#define __ia64_readb_relaxed   ___ia64_readb

Definition at line 152 of file io.h.

#define __ia64_readl   ___ia64_readl

Definition at line 150 of file io.h.

#define __ia64_readl_relaxed   ___ia64_readl

Definition at line 154 of file io.h.

#define __ia64_readq   ___ia64_readq

Definition at line 151 of file io.h.

#define __ia64_readq_relaxed   ___ia64_readq

Definition at line 155 of file io.h.

#define __ia64_readw   ___ia64_readw

Definition at line 149 of file io.h.

#define __ia64_readw_relaxed   ___ia64_readw

Definition at line 153 of file io.h.

#define __IA64_UNCACHED_OFFSET   RGN_BASE(RGN_UNCACHED)

Definition at line 28 of file io.h.

#define __ia64_writeb   ___ia64_writeb

Definition at line 156 of file io.h.

#define __ia64_writel   ___ia64_writel

Definition at line 158 of file io.h.

#define __ia64_writeq   ___ia64_writeq

Definition at line 159 of file io.h.

#define __ia64_writew   ___ia64_writew

Definition at line 157 of file io.h.

#define __inb   platform_inb

Definition at line 289 of file io.h.

#define __inl   platform_inl

Definition at line 291 of file io.h.

#define __inw   platform_inw

Definition at line 290 of file io.h.

#define __mmiowb   platform_mmiowb

Definition at line 295 of file io.h.

#define __outb   platform_outb

Definition at line 292 of file io.h.

#define __outl   platform_outl

Definition at line 294 of file io.h.

#define __outw   platform_outw

Definition at line 293 of file io.h.

#define __raw_readb   readb

Definition at line 384 of file io.h.

#define __raw_readb_relaxed   readb_relaxed

Definition at line 388 of file io.h.

#define __raw_readl   readl

Definition at line 386 of file io.h.

#define __raw_readl_relaxed   readl_relaxed

Definition at line 390 of file io.h.

#define __raw_readq   readq

Definition at line 387 of file io.h.

#define __raw_readq_relaxed   readq_relaxed

Definition at line 391 of file io.h.

#define __raw_readw   readw

Definition at line 385 of file io.h.

#define __raw_readw_relaxed   readw_relaxed

Definition at line 389 of file io.h.

#define __raw_writeb   writeb

Definition at line 396 of file io.h.

#define __raw_writel   writel

Definition at line 398 of file io.h.

#define __raw_writeq   writeq

Definition at line 399 of file io.h.

#define __raw_writew   writew

Definition at line 397 of file io.h.

#define __readb   platform_readb

Definition at line 367 of file io.h.

#define __readb_relaxed   platform_readb_relaxed

Definition at line 371 of file io.h.

#define __readl   platform_readl

Definition at line 369 of file io.h.

#define __readl_relaxed   platform_readl_relaxed

Definition at line 373 of file io.h.

#define __readq   platform_readq

Definition at line 370 of file io.h.

#define __readq_relaxed   platform_readq_relaxed

Definition at line 374 of file io.h.

#define __readw   platform_readw

Definition at line 368 of file io.h.

#define __readw_relaxed   platform_readw_relaxed

Definition at line 372 of file io.h.

#define __SLOW_DOWN_IO   do { } while (0)

Definition at line 25 of file io.h.

#define inb (   p)    __inb(p)

Definition at line 297 of file io.h.

#define inb_p   inb

Definition at line 402 of file io.h.

#define inl (   p)    __inl(p)

Definition at line 299 of file io.h.

#define inl_p   inl

Definition at line 408 of file io.h.

#define insb (   p,
  d,
  c 
)    __insb(p,d,c)

Definition at line 300 of file io.h.

#define insl (   p,
  d,
  c 
)    __insl(p,d,c)

Definition at line 302 of file io.h.

#define insw (   p,
  d,
  c 
)    __insw(p,d,c)

Definition at line 301 of file io.h.

#define inw (   p)    __inw(p)

Definition at line 298 of file io.h.

#define inw_p   inw

Definition at line 405 of file io.h.

#define IO_SPACE_BASE (   space)    ((space) << IO_SPACE_BITS)

Definition at line 43 of file io.h.

#define IO_SPACE_BITS   24

Definition at line 39 of file io.h.

#define IO_SPACE_LIMIT   0xffffffffffffffffUL

Definition at line 35 of file io.h.

#define IO_SPACE_NR (   port)    ((port) >> IO_SPACE_BITS)

Definition at line 42 of file io.h.

#define IO_SPACE_PORT (   port)    ((port) & (IO_SPACE_SIZE - 1))

Definition at line 44 of file io.h.

#define IO_SPACE_SIZE   (1UL << IO_SPACE_BITS)

Definition at line 40 of file io.h.

#define IO_SPACE_SPARSE_ENCODING (   p)    ((((p) >> 2) << 12) | ((p) & 0xfff))

Definition at line 46 of file io.h.

#define MAX_IO_SPACES   (1UL << MAX_IO_SPACES_BITS)

Definition at line 38 of file io.h.

#define MAX_IO_SPACES_BITS   8

Definition at line 37 of file io.h.

#define mmiowb ( )    __mmiowb()

Definition at line 309 of file io.h.

#define outb (   v,
  p 
)    __outb(v,p)

Definition at line 303 of file io.h.

#define outb_p   outb

Definition at line 412 of file io.h.

#define outl (   v,
  p 
)    __outl(v,p)

Definition at line 305 of file io.h.

#define outl_p   outl

Definition at line 418 of file io.h.

#define outsb (   p,
  s,
  c 
)    __outsb(p,s,c)

Definition at line 306 of file io.h.

#define outsl (   p,
  s,
  c 
)    __outsl(p,s,c)

Definition at line 308 of file io.h.

#define outsw (   p,
  s,
  c 
)    __outsw(p,s,c)

Definition at line 307 of file io.h.

#define outw (   v,
  p 
)    __outw(v,p)

Definition at line 304 of file io.h.

#define outw_p   outw

Definition at line 415 of file io.h.

#define readb (   a)    __readb((a))

Definition at line 376 of file io.h.

#define readb_relaxed (   a)    __readb_relaxed((a))

Definition at line 380 of file io.h.

#define readl (   a)    __readl((a))

Definition at line 378 of file io.h.

#define readl_relaxed (   a)    __readl_relaxed((a))

Definition at line 382 of file io.h.

#define readq (   a)    __readq((a))

Definition at line 379 of file io.h.

#define readq_relaxed (   a)    __readq_relaxed((a))

Definition at line 383 of file io.h.

#define readw (   a)    __readw((a))

Definition at line 377 of file io.h.

#define readw_relaxed (   a)    __readw_relaxed((a))

Definition at line 381 of file io.h.

#define SLOW_DOWN_IO   do { } while (0)

Definition at line 26 of file io.h.

#define writeb (   v,
  a 
)    __writeb((v), (a))

Definition at line 392 of file io.h.

#define writel (   v,
  a 
)    __writel((v), (a))

Definition at line 394 of file io.h.

#define writeq (   v,
  a 
)    __writeq((v), (a))

Definition at line 395 of file io.h.

#define writew (   v,
  a 
)    __writew((v), (a))

Definition at line 393 of file io.h.

Variable Documentation

Definition at line 102 of file setup.c.

unsigned int num_io_spaces

Definition at line 104 of file setup.c.