Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
core_lca.c File Reference
#include <asm/io.h>
#include <asm/core_lca.h>
#include <linux/types.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/tty.h>
#include <asm/ptrace.h>
#include <asm/irq_regs.h>
#include <asm/smp.h>
#include "proto.h"
#include "pci_impl.h"

Go to the source code of this file.

Macros

#define __EXTERN_INLINE   inline
 
#define MCHK_K_TPERR   0x0080
 
#define MCHK_K_TCPERR   0x0082
 
#define MCHK_K_HERR   0x0084
 
#define MCHK_K_ECC_C   0x0086
 
#define MCHK_K_ECC_NC   0x0088
 
#define MCHK_K_UNKNOWN   0x008A
 
#define MCHK_K_CACKSOFT   0x008C
 
#define MCHK_K_BUGCHECK   0x008E
 
#define MCHK_K_OS_BUGCHECK   0x0090
 
#define MCHK_K_DCPERR   0x0092
 
#define MCHK_K_ICPERR   0x0094
 
#define MCHK_K_SIO_SERR   0x204 /* all platforms so far */
 
#define MCHK_K_SIO_IOCHK   0x206 /* all platforms so far */
 
#define MCHK_K_DCSR   0x208 /* all but Noname */
 
#define ESR_EAV   (1UL<< 0) /* error address valid */
 
#define ESR_CEE   (1UL<< 1) /* correctable error */
 
#define ESR_UEE   (1UL<< 2) /* uncorrectable error */
 
#define ESR_WRE   (1UL<< 3) /* write-error */
 
#define ESR_SOR   (1UL<< 4) /* error source */
 
#define ESR_CTE   (1UL<< 7) /* cache-tag error */
 
#define ESR_MSE   (1UL<< 9) /* multiple soft errors */
 
#define ESR_MHE   (1UL<<10) /* multiple hard errors */
 
#define ESR_NXM   (1UL<<12) /* non-existent memory */
 
#define IOC_ERR   ( 1<<4) /* ioc logs an error */
 
#define IOC_CMD_SHIFT   0
 
#define IOC_CMD   (0xf<<IOC_CMD_SHIFT)
 
#define IOC_CODE_SHIFT   8
 
#define IOC_CODE   (0xf<<IOC_CODE_SHIFT)
 
#define IOC_LOST   ( 1<<5)
 
#define IOC_P_NBR   ((__u32) ~((1<<13) - 1))
 

Functions

void lca_pci_tbi (struct pci_controller *hose, dma_addr_t start, dma_addr_t end)
 
void __init lca_init_arch (void)
 
void lca_machine_check (unsigned long vector, unsigned long la_ptr)
 
void lca_clock_print (void)
 
int lca_get_clock (void)
 
void lca_clock_fiddle (int divisor)
 

Variables

struct pci_ops lca_pci_ops
 

Macro Definition Documentation

#define __EXTERN_INLINE   inline

Definition at line 11 of file core_lca.c.

#define ESR_CEE   (1UL<< 1) /* correctable error */

Definition at line 318 of file core_lca.c.

#define ESR_CTE   (1UL<< 7) /* cache-tag error */

Definition at line 322 of file core_lca.c.

#define ESR_EAV   (1UL<< 0) /* error address valid */

Definition at line 317 of file core_lca.c.

#define ESR_MHE   (1UL<<10) /* multiple hard errors */

Definition at line 324 of file core_lca.c.

#define ESR_MSE   (1UL<< 9) /* multiple soft errors */

Definition at line 323 of file core_lca.c.

#define ESR_NXM   (1UL<<12) /* non-existent memory */

Definition at line 325 of file core_lca.c.

#define ESR_SOR   (1UL<< 4) /* error source */

Definition at line 321 of file core_lca.c.

#define ESR_UEE   (1UL<< 2) /* uncorrectable error */

Definition at line 319 of file core_lca.c.

#define ESR_WRE   (1UL<< 3) /* write-error */

Definition at line 320 of file core_lca.c.

#define IOC_CMD   (0xf<<IOC_CMD_SHIFT)

Definition at line 329 of file core_lca.c.

#define IOC_CMD_SHIFT   0

Definition at line 328 of file core_lca.c.

#define IOC_CODE   (0xf<<IOC_CODE_SHIFT)

Definition at line 331 of file core_lca.c.

#define IOC_CODE_SHIFT   8

Definition at line 330 of file core_lca.c.

#define IOC_ERR   ( 1<<4) /* ioc logs an error */

Definition at line 327 of file core_lca.c.

#define IOC_LOST   ( 1<<5)

Definition at line 332 of file core_lca.c.

#define IOC_P_NBR   ((__u32) ~((1<<13) - 1))

Definition at line 333 of file core_lca.c.

#define MCHK_K_BUGCHECK   0x008E

Definition at line 44 of file core_lca.c.

#define MCHK_K_CACKSOFT   0x008C

Definition at line 43 of file core_lca.c.

#define MCHK_K_DCPERR   0x0092

Definition at line 46 of file core_lca.c.

#define MCHK_K_DCSR   0x208 /* all but Noname */

Definition at line 55 of file core_lca.c.

#define MCHK_K_ECC_C   0x0086

Definition at line 40 of file core_lca.c.

#define MCHK_K_ECC_NC   0x0088

Definition at line 41 of file core_lca.c.

#define MCHK_K_HERR   0x0084

Definition at line 39 of file core_lca.c.

#define MCHK_K_ICPERR   0x0094

Definition at line 47 of file core_lca.c.

#define MCHK_K_OS_BUGCHECK   0x0090

Definition at line 45 of file core_lca.c.

#define MCHK_K_SIO_IOCHK   0x206 /* all platforms so far */

Definition at line 54 of file core_lca.c.

#define MCHK_K_SIO_SERR   0x204 /* all platforms so far */

Definition at line 53 of file core_lca.c.

#define MCHK_K_TCPERR   0x0082

Definition at line 38 of file core_lca.c.

#define MCHK_K_TPERR   0x0080

Definition at line 37 of file core_lca.c.

#define MCHK_K_UNKNOWN   0x008A

Definition at line 42 of file core_lca.c.

Function Documentation

void lca_clock_fiddle ( int  divisor)

Definition at line 506 of file core_lca.c.

void lca_clock_print ( void  )

Definition at line 479 of file core_lca.c.

int lca_get_clock ( void  )

Definition at line 496 of file core_lca.c.

void __init lca_init_arch ( void  )

Definition at line 249 of file core_lca.c.

void lca_machine_check ( unsigned long  vector,
unsigned long  la_ptr 
)

Definition at line 390 of file core_lca.c.

void lca_pci_tbi ( struct pci_controller hose,
dma_addr_t  start,
dma_addr_t  end 
)

Definition at line 241 of file core_lca.c.

Variable Documentation

struct pci_ops lca_pci_ops
Initial value:
=
{
.read = lca_read_config,
.write = lca_write_config,
}

Definition at line 234 of file core_lca.c.