Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
mca_drv.h File Reference

Go to the source code of this file.

Data Structures

struct  peidx_table
 
struct  slidx_list
 
struct  slidx_table
 
struct  mca_table_entry
 

Macros

#define peidx_head(p)   (((p)->info))
 
#define peidx_mid(p)   (((p)->id))
 
#define peidx_bottom(p)   (((p)->regs))
 
#define peidx_psp(p)   (&(peidx_head(p)->proc_state_parameter))
 
#define peidx_field_valid(p)   (&(peidx_head(p)->valid))
 
#define peidx_minstate_area(p)   (&(peidx_bottom(p)->min_state_area))
 
#define peidx_cache_check_num(p)   (peidx_head(p)->valid.num_cache_check)
 
#define peidx_tlb_check_num(p)   (peidx_head(p)->valid.num_tlb_check)
 
#define peidx_bus_check_num(p)   (peidx_head(p)->valid.num_bus_check)
 
#define peidx_reg_file_check_num(p)   (peidx_head(p)->valid.num_reg_file_check)
 
#define peidx_ms_check_num(p)   (peidx_head(p)->valid.num_ms_check)
 
#define peidx_cache_check_idx(p, n)   (n)
 
#define peidx_tlb_check_idx(p, n)   (peidx_cache_check_idx(p, peidx_cache_check_num(p)) + n)
 
#define peidx_bus_check_idx(p, n)   (peidx_tlb_check_idx(p, peidx_tlb_check_num(p)) + n)
 
#define peidx_reg_file_check_idx(p, n)   (peidx_bus_check_idx(p, peidx_bus_check_num(p)) + n)
 
#define peidx_ms_check_idx(p, n)   (peidx_reg_file_check_idx(p, peidx_reg_file_check_num(p)) + n)
 
#define peidx_mod_error_info(p, name, n)
 
#define peidx_cache_check(p, n)   peidx_mod_error_info(p, cache_check, n)
 
#define peidx_tlb_check(p, n)   peidx_mod_error_info(p, tlb_check, n)
 
#define peidx_bus_check(p, n)   peidx_mod_error_info(p, bus_check, n)
 
#define peidx_reg_file_check(p, n)   peidx_mod_error_info(p, reg_file_check, n)
 
#define peidx_ms_check(p, n)   peidx_mod_error_info(p, ms_check, n)
 
#define peidx_check_info(proc, name, n)
 
#define slidx_foreach_entry(pos, head)   list_for_each_entry(pos, head, list)
 
#define slidx_first_entry(head)   (((head)->next != (head)) ? list_entry((head)->next, typeof(slidx_list_t), list) : NULL)
 
#define slidx_count(slidx, sec)
 

Typedefs

typedef struct peidx_table peidx_table_t
 
typedef struct slidx_list slidx_list_t
 
typedef struct slidx_table slidx_table_t
 

Functions

struct mca_table_entrysearch_mca_tables (unsigned long addr)
 
int mca_recover_range (unsigned long)
 
void ia64_mlogbuf_dump (void)
 

Macro Definition Documentation

#define peidx_bottom (   p)    (((p)->regs))

Definition at line 44 of file mca_drv.h.

#define peidx_bus_check (   p,
  n 
)    peidx_mod_error_info(p, bus_check, n)

Definition at line 71 of file mca_drv.h.

#define peidx_bus_check_idx (   p,
  n 
)    (peidx_tlb_check_idx(p, peidx_tlb_check_num(p)) + n)

Definition at line 58 of file mca_drv.h.

#define peidx_bus_check_num (   p)    (peidx_head(p)->valid.num_bus_check)

Definition at line 52 of file mca_drv.h.

#define peidx_cache_check (   p,
  n 
)    peidx_mod_error_info(p, cache_check, n)

Definition at line 69 of file mca_drv.h.

#define peidx_cache_check_idx (   p,
  n 
)    (n)

Definition at line 56 of file mca_drv.h.

#define peidx_cache_check_num (   p)    (peidx_head(p)->valid.num_cache_check)

Definition at line 50 of file mca_drv.h.

#define peidx_check_info (   proc,
  name,
  n 
)
Value:
({ \
u64 __temp = __info && __info->valid.check_info \
? __info->check_info : 0; \
__temp; })

Definition at line 75 of file mca_drv.h.

#define peidx_field_valid (   p)    (&(peidx_head(p)->valid))

Definition at line 47 of file mca_drv.h.

#define peidx_head (   p)    (((p)->info))

Definition at line 42 of file mca_drv.h.

#define peidx_mid (   p)    (((p)->id))

Definition at line 43 of file mca_drv.h.

#define peidx_minstate_area (   p)    (&(peidx_bottom(p)->min_state_area))

Definition at line 48 of file mca_drv.h.

#define peidx_mod_error_info (   p,
  name,
  n 
)
Value:
({ int __idx = peidx_##name##_idx(p, n); \
if (peidx_##name##_num(p) > n) /*BUG*/ \
__ret = &(peidx_head(p)->info[__idx]); \
__ret; })

Definition at line 62 of file mca_drv.h.

#define peidx_ms_check (   p,
  n 
)    peidx_mod_error_info(p, ms_check, n)

Definition at line 73 of file mca_drv.h.

#define peidx_ms_check_idx (   p,
  n 
)    (peidx_reg_file_check_idx(p, peidx_reg_file_check_num(p)) + n)

Definition at line 60 of file mca_drv.h.

#define peidx_ms_check_num (   p)    (peidx_head(p)->valid.num_ms_check)

Definition at line 54 of file mca_drv.h.

#define peidx_psp (   p)    (&(peidx_head(p)->proc_state_parameter))

Definition at line 46 of file mca_drv.h.

#define peidx_reg_file_check (   p,
  n 
)    peidx_mod_error_info(p, reg_file_check, n)

Definition at line 72 of file mca_drv.h.

#define peidx_reg_file_check_idx (   p,
  n 
)    (peidx_bus_check_idx(p, peidx_bus_check_num(p)) + n)

Definition at line 59 of file mca_drv.h.

#define peidx_reg_file_check_num (   p)    (peidx_head(p)->valid.num_reg_file_check)

Definition at line 53 of file mca_drv.h.

#define peidx_tlb_check (   p,
  n 
)    peidx_mod_error_info(p, tlb_check, n)

Definition at line 70 of file mca_drv.h.

#define peidx_tlb_check_idx (   p,
  n 
)    (peidx_cache_check_idx(p, peidx_cache_check_num(p)) + n)

Definition at line 57 of file mca_drv.h.

#define peidx_tlb_check_num (   p)    (peidx_head(p)->valid.num_tlb_check)

Definition at line 51 of file mca_drv.h.

#define slidx_count (   slidx,
  sec 
)
Value:
({ int __count = 0; \
slidx_list_t *__pos; \
slidx_foreach_entry(__pos, &((slidx)->sec)) { __count++; }\
__count; })

Definition at line 108 of file mca_drv.h.

#define slidx_first_entry (   head)    (((head)->next != (head)) ? list_entry((head)->next, typeof(slidx_list_t), list) : NULL)

Definition at line 106 of file mca_drv.h.

#define slidx_foreach_entry (   pos,
  head 
)    list_for_each_entry(pos, head, list)

Definition at line 104 of file mca_drv.h.

Typedef Documentation

Function Documentation

void ia64_mlogbuf_dump ( void  )

Definition at line 243 of file mca.c.

int mca_recover_range ( unsigned  long)

Definition at line 517 of file mca.c.

struct mca_table_entry* search_mca_tables ( unsigned long  addr)
read