Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
iomv.c File Reference
#include <linux/module.h>
#include <linux/acpi.h>
#include <asm/io.h>
#include <asm/delay.h>
#include <asm/vga.h>
#include <asm/sn/nodepda.h>
#include <asm/sn/simulator.h>
#include <asm/sn/pda.h>
#include <asm/sn/sn_cpuid.h>
#include <asm/sn/shub_mmr.h>
#include <asm/sn/acpi.h>

Go to the source code of this file.

Macros

#define IS_LEGACY_VGA_IOPORT(p)   (((p) >= 0x3b0 && (p) <= 0x3bb) || ((p) >= 0x3c0 && (p) <= 0x3df))
 

Functions

voidsn_io_addr (unsigned long port)
 
 EXPORT_SYMBOL (sn_io_addr)
 
void __sn_mmiowb (void)
 
 EXPORT_SYMBOL (__sn_mmiowb)
 

Macro Definition Documentation

#define IS_LEGACY_VGA_IOPORT (   p)    (((p) >= 0x3b0 && (p) <= 0x3bb) || ((p) >= 0x3c0 && (p) <= 0x3df))

Definition at line 21 of file iomv.c.

Function Documentation

void __sn_mmiowb ( void  )

__sn_mmiowb - I/O space memory barrier

See arch/ia64/include/asm/io.h and Documentation/DocBook/deviceiobook.tmpl for details.

On SN2, we wait for the PIO_WRITE_STATUS SHub register to clear. See PV 871084 for details about the WAR about zero value.

Definition at line 73 of file iomv.c.

EXPORT_SYMBOL ( sn_io_addr  )
EXPORT_SYMBOL ( __sn_mmiowb  )
void* sn_io_addr ( unsigned long  port)

sn_io_addr - convert an in/out port to an i/o address : port to convert

Legacy in/out instructions are converted to ld/st instructions on IA64. This routine will convert a port number into a valid SN i/o address. Used by sn_in*() and sn_out*().

Definition at line 33 of file iomv.c.