Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

pcioDrv.h File Reference

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define inportb(a)   inputb(a)
#define outportb(a, b)   outputb(a,b)
#define inportw(a)   inputw(a)
#define outportw(a, b)   outputw(a,b)
#define inportl(a)   inputl(a)
#define outportl(a, b)   outputl(a,b)

Functions

void pcioInit ()
unsigned char inputb (unsigned short port)
void outputb (unsigned short port, unsigned char data)
unsigned short inputw (unsigned short port)
void outputw (unsigned short port, unsigned short data)
unsigned long inputl (unsigned short port)
void outputl (unsigned short port, unsigned long data)


Define Documentation

#define inportb (  a    )     inputb(a)
 

Definition at line 46 of file pcioDrv.h.

Referenced by pmac_inportb().

#define outportb (  a,
b    )     outputb(a,b)
 

Definition at line 47 of file pcioDrv.h.

Referenced by pmac_outportb().

#define inportw (  a    )     inputw(a)
 

Definition at line 49 of file pcioDrv.h.

#define outportw (  a,
b    )     outputw(a,b)
 

Definition at line 50 of file pcioDrv.h.

#define inportl (  a    )     inputl(a)
 

Definition at line 52 of file pcioDrv.h.

#define outportl (  a,
b    )     outputl(a,b)
 

Definition at line 53 of file pcioDrv.h.


Function Documentation

void pcioInit (    ) 
 

Definition at line 41 of file pcioDrv.c.

00042 {
00043   if ((pcioDrvId = open("/dev/pcio", 0)) < 0)
00044   {
00045     fprintf(stderr, "pcioInit: can't open /dev/pcio");
00046   }
00047 }

unsigned char inputb (  unsigned short    port ) 
 

void outputb (  unsigned short    port,
unsigned char    data
) 
 

unsigned short inputw (  unsigned short    port ) 
 

void outputw (  unsigned short    port,
unsigned short    data
) 
 

unsigned long inputl (  unsigned short    port ) 
 

void outputl (  unsigned short    port,
unsigned long    data
) 
 


Generated on Sun Dec 2 15:57:25 2001 for rcslib by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001