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

core_irongate.c File Reference

#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/pci.h>
#include <linux/sched.h>
#include <linux/init.h>
#include <asm/ptrace.h>
#include <asm/system.h>
#include <asm/pci.h>
#include <asm/hwrpb.h>
#include <asm/io.h>
#include <asm/core_irongate.h>
#include "proto.h"
#include "bios32.h"

Include dependency graph for core_irongate.c:

Go to the source code of this file.

Defines

#define __EXTERN_INLINE   inline
#define DEBUG_MCHECK
#define DBG_CFG(args)
#define DBG_MCK(args)   printk args
#define DEBUG_MCHECK_DUMP
#define irongate_register_dump(x)

Functions

static int mk_conf_addr (u8 bus, u8 device_fn, u8 where, struct linux_hose_info *hose, unsigned long *pci_addr, unsigned char *type1)
int irongate_hose_read_config_byte (u8 bus, u8 device_fn, u8 where, u8 *value, struct linux_hose_info *hose)
int irongate_hose_read_config_word (u8 bus, u8 device_fn, u8 where, u16 *value, struct linux_hose_info *hose)
int irongate_hose_read_config_dword (u8 bus, u8 device_fn, u8 where, u32 *value, struct linux_hose_info *hose)
int irongate_hose_write_config_byte (u8 bus, u8 device_fn, u8 where, u8 value, struct linux_hose_info *hose)
int irongate_hose_write_config_word (u8 bus, u8 device_fn, u8 where, u16 value, struct linux_hose_info *hose)
int irongate_hose_write_config_dword (u8 bus, u8 device_fn, u8 where, u32 value, struct linux_hose_info *hose)
void __init irongate_init_arch (unsigned long *mem_start, unsigned long *mem_end)
int irongate_pci_clr_err (void)


Define Documentation

#define __EXTERN_INLINE   inline
 

Definition at line 22 of file core_irongate.c.

#define DBG_CFG args   ) 
 

Definition at line 46 of file core_irongate.c.

Referenced by conf_read(), conf_write(), and mk_conf_addr().

#define DBG_MCK args   )     printk args
 

Definition at line 50 of file core_irongate.c.

Referenced by polaris_machine_check(), and polaris_pci_clr_err().

#define DEBUG_MCHECK
 

Definition at line 41 of file core_irongate.c.

#define DEBUG_MCHECK_DUMP
 

Definition at line 51 of file core_irongate.c.

#define irongate_register_dump x   ) 
 

Definition at line 298 of file core_irongate.c.

Referenced by irongate_init_arch().


Function Documentation

int irongate_hose_read_config_byte u8  bus,
u8  device_fn,
u8  where,
u8 value,
struct linux_hose_info hose
 

Definition at line 111 of file core_irongate.c.

References __kernel_ldbu, addr, mk_conf_addr(), and vucp.

Referenced by nautilus_kill_arch().

Here is the call graph for this function:

int irongate_hose_read_config_dword u8  bus,
u8  device_fn,
u8  where,
u32 value,
struct linux_hose_info hose
 

Definition at line 139 of file core_irongate.c.

References addr, mk_conf_addr(), and vuip.

Referenced by nautilus_kill_arch().

Here is the call graph for this function:

int irongate_hose_read_config_word u8  bus,
u8  device_fn,
u8  where,
u16 value,
struct linux_hose_info hose
 

Definition at line 125 of file core_irongate.c.

References __kernel_ldwu, addr, mk_conf_addr(), and vusp.

Here is the call graph for this function:

int irongate_hose_write_config_byte u8  bus,
u8  device_fn,
u8  where,
u8  value,
struct linux_hose_info hose
 

Definition at line 153 of file core_irongate.c.

References __kernel_ldbu, __kernel_stb, addr, mb, mk_conf_addr(), and vucp.

Referenced by nautilus_kill_arch().

Here is the call graph for this function:

int irongate_hose_write_config_dword u8  bus,
u8  device_fn,
u8  where,
u32  value,
struct linux_hose_info hose
 

Definition at line 185 of file core_irongate.c.

References addr, mb, mk_conf_addr(), and vuip.

Here is the call graph for this function:

int irongate_hose_write_config_word u8  bus,
u8  device_fn,
u8  where,
u16  value,
struct linux_hose_info hose
 

Definition at line 169 of file core_irongate.c.

References __kernel_ldwu, __kernel_stw, addr, mb, mk_conf_addr(), and vusp.

Here is the call graph for this function:

void __init irongate_init_arch unsigned long mem_start,
unsigned long mem_end
 

Definition at line 302 of file core_irongate.c.

References default_hose, IRONGATE0, IRONGATE_IO, IRONGATE_MEM, irongate_pci_clr_err(), irongate_register_dump, linux_hose_info::pci_dense_io_space, linux_hose_info::pci_dense_mem_space, linux_hose_info::pci_sparse_io_space, and linux_hose_info::pci_sparse_mem_space.

Here is the call graph for this function:

int irongate_pci_clr_err void   ) 
 

Definition at line 322 of file core_irongate.c.

References again, inb, IRONGATE0, mb, outb, printk, x300, and x61.

Referenced by irongate_init_arch(), and naut_sys_machine_check().

static int mk_conf_addr u8  bus,
u8  device_fn,
u8  where,
struct linux_hose_info hose,
unsigned long pci_addr,
unsigned char *  type1
[static]
 

Definition at line 93 of file core_irongate.c.

References addr, DBG_CFG, and IRONGATE_CONF.