Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

gemini_pci.c File Reference

#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/malloc.h>
#include <asm/machdep.h>
#include <asm/gemini.h>
#include <asm/byteorder.h>
#include <asm/io.h>
#include <asm/uaccess.h>
#include "pci.h"

Include dependency graph for gemini_pci.c:

Go to the source code of this file.

Defines

#define pci_config_addr(bus, dev, offset)   (0x80000000 | (bus<<16) | (dev<<8) | offset)

Functions

int gemini_pcibios_read_config_byte (unsigned char bus, unsigned char dev, unsigned char offset, unsigned char *val)
int gemini_pcibios_read_config_word (unsigned char bus, unsigned char dev, unsigned char offset, unsigned short *val)
int gemini_pcibios_read_config_dword (unsigned char bus, unsigned char dev, unsigned char offset, unsigned int *val)
int gemini_pcibios_write_config_byte (unsigned char bus, unsigned char dev, unsigned char offset, unsigned char val)
int gemini_pcibios_write_config_word (unsigned char bus, unsigned char dev, unsigned char offset, unsigned short val)
int gemini_pcibios_write_config_dword (unsigned char bus, unsigned char dev, unsigned char offset, unsigned int val)
 __initfunc (void gemini_pcibios_fixup(void))
 decl_config_access_method (gemini)


Define Documentation

#define pci_config_addr bus,
dev,
offset   )     (0x80000000 | (bus<<16) | (dev<<8) | offset)
 

Definition at line 14 of file gemini_pci.c.


Function Documentation

__initfunc void   gemini_pcibios_fixup(void)  ) 
 

Definition at line 80 of file gemini_pci.c.

References bus, dev, i, PCI_COMMAND_IO, and pci_root.

decl_config_access_method gemini   ) 
 

int gemini_pcibios_read_config_byte unsigned char  bus,
unsigned char  dev,
unsigned char  offset,
unsigned char *  val
 

Definition at line 19 of file gemini_pci.c.

References grackle_read(), pci_config_addr, reg, and x3.

Here is the call graph for this function:

int gemini_pcibios_read_config_dword unsigned char  bus,
unsigned char  dev,
unsigned char  offset,
unsigned int *  val
 

Definition at line 39 of file gemini_pci.c.

References grackle_read(), pci_config_addr, and x3.

Here is the call graph for this function:

int gemini_pcibios_read_config_word unsigned char  bus,
unsigned char  dev,
unsigned char  offset,
unsigned short *  val
 

Definition at line 29 of file gemini_pci.c.

References grackle_read(), pci_config_addr, reg, and x3.

Here is the call graph for this function:

int gemini_pcibios_write_config_byte unsigned char  bus,
unsigned char  dev,
unsigned char  offset,
unsigned char  val
 

Definition at line 47 of file gemini_pci.c.

References grackle_read(), grackle_write(), pci_config_addr, reg, and x3.

Here is the call graph for this function:

int gemini_pcibios_write_config_dword unsigned char  bus,
unsigned char  dev,
unsigned char  offset,
unsigned int  val
 

Definition at line 73 of file gemini_pci.c.

References grackle_write(), pci_config_addr, and x3.

Here is the call graph for this function:

int gemini_pcibios_write_config_word unsigned char  bus,
unsigned char  dev,
unsigned char  offset,
unsigned short  val
 

Definition at line 60 of file gemini_pci.c.

References grackle_read(), grackle_write(), pci_config_addr, reg, and x3.

Here is the call graph for this function: