Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
mpspec.h File Reference
#include <linux/init.h>
#include <asm/mpspec_def.h>
#include <asm/x86_init.h>
#include <asm/apicdef.h>

Go to the source code of this file.

Data Structures

struct  physid_mask
 

Macros

#define MAX_MP_BUSSES   256
 
#define MAX_IRQ_SOURCES   (MAX_MP_BUSSES * 4)
 
#define smp_found_config   0
 
#define enable_update_mptable   0
 
#define default_mpc_apic_id   NULL
 
#define default_smp_read_mpc_oem   NULL
 
#define default_mpc_oem_bus_info   NULL
 
#define default_find_smp_config   x86_init_noop
 
#define default_get_smp_config   x86_init_uint_noop
 
#define PHYSID_ARRAY_SIZE   BITS_TO_LONGS(MAX_LOCAL_APIC)
 
#define physid_set(physid, map)   set_bit(physid, (map).mask)
 
#define physid_clear(physid, map)   clear_bit(physid, (map).mask)
 
#define physid_isset(physid, map)   test_bit(physid, (map).mask)
 
#define physid_test_and_set(physid, map)   test_and_set_bit(physid, (map).mask)
 
#define physids_and(dst, src1, src2)   bitmap_and((dst).mask, (src1).mask, (src2).mask, MAX_LOCAL_APIC)
 
#define physids_or(dst, src1, src2)   bitmap_or((dst).mask, (src1).mask, (src2).mask, MAX_LOCAL_APIC)
 
#define physids_clear(map)   bitmap_zero((map).mask, MAX_LOCAL_APIC)
 
#define physids_complement(dst, src)   bitmap_complement((dst).mask, (src).mask, MAX_LOCAL_APIC)
 
#define physids_empty(map)   bitmap_empty((map).mask, MAX_LOCAL_APIC)
 
#define physids_equal(map1, map2)   bitmap_equal((map1).mask, (map2).mask, MAX_LOCAL_APIC)
 
#define physids_weight(map)   bitmap_weight((map).mask, MAX_LOCAL_APIC)
 
#define physids_shift_right(d, s, n)   bitmap_shift_right((d).mask, (s).mask, n, MAX_LOCAL_APIC)
 
#define physids_shift_left(d, s, n)   bitmap_shift_left((d).mask, (s).mask, n, MAX_LOCAL_APIC)
 
#define PHYSID_MASK_ALL   { {[0 ... PHYSID_ARRAY_SIZE-1] = ~0UL} }
 
#define PHYSID_MASK_NONE   { {[0 ... PHYSID_ARRAY_SIZE-1] = 0UL} }
 

Typedefs

typedef struct physid_mask physid_mask_t
 

Functions

 DECLARE_BITMAP (mp_bus_not_pci, MAX_MP_BUSSES)
 
void __cpuinit generic_processor_info (int apicid, int version)
 
int generic_mps_oem_check (struct mpc_table *, char *, char *)
 
int default_acpi_madt_oem_check (char *, char *)
 

Variables

int apic_version []
 
int pic_mode
 
unsigned int boot_cpu_physical_apicid
 
unsigned int max_physical_apicid
 
int mpc_default_type
 
unsigned long mp_lapic_addr
 
physid_mask_t phys_cpu_present_map
 

Macro Definition Documentation

#define default_find_smp_config   x86_init_noop

Definition at line 93 of file mpspec.h.

#define default_get_smp_config   x86_init_uint_noop

Definition at line 94 of file mpspec.h.

#define default_mpc_apic_id   NULL

Definition at line 90 of file mpspec.h.

#define default_mpc_oem_bus_info   NULL

Definition at line 92 of file mpspec.h.

#define default_smp_read_mpc_oem   NULL

Definition at line 91 of file mpspec.h.

#define enable_update_mptable   0

Definition at line 89 of file mpspec.h.

#define MAX_IRQ_SOURCES   (MAX_MP_BUSSES * 4)

Definition at line 39 of file mpspec.h.

#define MAX_MP_BUSSES   256

Definition at line 37 of file mpspec.h.

#define PHYSID_ARRAY_SIZE   BITS_TO_LONGS(MAX_LOCAL_APIC)

Definition at line 108 of file mpspec.h.

#define physid_clear (   physid,
  map 
)    clear_bit(physid, (map).mask)

Definition at line 117 of file mpspec.h.

#define physid_isset (   physid,
  map 
)    test_bit(physid, (map).mask)

Definition at line 118 of file mpspec.h.

#define PHYSID_MASK_ALL   { {[0 ... PHYSID_ARRAY_SIZE-1] = ~0UL} }

Definition at line 166 of file mpspec.h.

#define PHYSID_MASK_NONE   { {[0 ... PHYSID_ARRAY_SIZE-1] = 0UL} }

Definition at line 167 of file mpspec.h.

#define physid_set (   physid,
  map 
)    set_bit(physid, (map).mask)

Definition at line 116 of file mpspec.h.

#define physid_test_and_set (   physid,
  map 
)    test_and_set_bit(physid, (map).mask)

Definition at line 119 of file mpspec.h.

#define physids_and (   dst,
  src1,
  src2 
)    bitmap_and((dst).mask, (src1).mask, (src2).mask, MAX_LOCAL_APIC)

Definition at line 122 of file mpspec.h.

#define physids_clear (   map)    bitmap_zero((map).mask, MAX_LOCAL_APIC)

Definition at line 128 of file mpspec.h.

#define physids_complement (   dst,
  src 
)    bitmap_complement((dst).mask, (src).mask, MAX_LOCAL_APIC)

Definition at line 131 of file mpspec.h.

#define physids_empty (   map)    bitmap_empty((map).mask, MAX_LOCAL_APIC)

Definition at line 134 of file mpspec.h.

#define physids_equal (   map1,
  map2 
)    bitmap_equal((map1).mask, (map2).mask, MAX_LOCAL_APIC)

Definition at line 137 of file mpspec.h.

#define physids_or (   dst,
  src1,
  src2 
)    bitmap_or((dst).mask, (src1).mask, (src2).mask, MAX_LOCAL_APIC)

Definition at line 125 of file mpspec.h.

#define physids_shift_left (   d,
  s,
  n 
)    bitmap_shift_left((d).mask, (s).mask, n, MAX_LOCAL_APIC)

Definition at line 146 of file mpspec.h.

#define physids_shift_right (   d,
  s,
  n 
)    bitmap_shift_right((d).mask, (s).mask, n, MAX_LOCAL_APIC)

Definition at line 143 of file mpspec.h.

#define physids_weight (   map)    bitmap_weight((map).mask, MAX_LOCAL_APIC)

Definition at line 140 of file mpspec.h.

#define smp_found_config   0

Definition at line 57 of file mpspec.h.

Typedef Documentation

Definition at line 114 of file mpspec.h.

Function Documentation

DECLARE_BITMAP ( mp_bus_not_pci  ,
MAX_MP_BUSSES   
)
int default_acpi_madt_oem_check ( char ,
char  
)

Definition at line 241 of file probe_32.c.

int generic_mps_oem_check ( struct mpc_table ,
char ,
char  
)

Definition at line 221 of file probe_32.c.

void __cpuinit generic_processor_info ( int  apicid,
int  version 
)

Definition at line 2033 of file apic.c.

Variable Documentation

int apic_version[]

Definition at line 1799 of file apic.c.

unsigned int boot_cpu_physical_apicid

Definition at line 63 of file apic.c.

unsigned int max_physical_apicid

Definition at line 68 of file apic.c.

unsigned long mp_lapic_addr

Definition at line 175 of file apic.c.

int mpc_default_type
physid_mask_t phys_cpu_present_map

Definition at line 34 of file smp.c.

int pic_mode

Definition at line 190 of file apic.c.