Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
bios.h File Reference
#include <linux/rtc.h>

Go to the source code of this file.

Data Structures

struct  uv_systab
 
union  partition_info_u
 

Macros

#define partition_coherence_id()   (sn_coherency_id)
 

Enumerations

enum  uv_bios_cmd {
  UV_BIOS_COMMON, UV_BIOS_GET_SN_INFO, UV_BIOS_FREQ_BASE, UV_BIOS_WATCHLIST_ALLOC,
  UV_BIOS_WATCHLIST_FREE, UV_BIOS_MEMPROTECT, UV_BIOS_GET_PARTITION_ADDR, UV_BIOS_SET_LEGACY_VGA_TARGET
}
 
enum  {
  BIOS_STATUS_MORE_PASSES = 1, BIOS_STATUS_SUCCESS = 0, BIOS_STATUS_UNIMPLEMENTED = -ENOSYS, BIOS_STATUS_EINVAL = -EINVAL,
  BIOS_STATUS_UNAVAIL = -EBUSY
}
 
enum  { BIOS_FREQ_BASE_PLATFORM = 0, BIOS_FREQ_BASE_INTERVAL_TIMER = 1, BIOS_FREQ_BASE_REALTIME_CLOCK = 2 }
 
enum  uv_memprotect { UV_MEMPROT_RESTRICT_ACCESS, UV_MEMPROT_ALLOW_AMO, UV_MEMPROT_ALLOW_RW }
 

Functions

s64 uv_bios_call (enum uv_bios_cmd, u64, u64, u64, u64, u64)
 
s64 uv_bios_call_irqsave (enum uv_bios_cmd, u64, u64, u64, u64, u64)
 
s64 uv_bios_call_reentrant (enum uv_bios_cmd, u64, u64, u64, u64, u64)
 
s64 uv_bios_get_sn_info (int, int *, long *, long *, long *, long *)
 
s64 uv_bios_freq_base (u64, u64 *)
 
int uv_bios_mq_watchlist_alloc (unsigned long, unsigned int, unsigned long *)
 
int uv_bios_mq_watchlist_free (int, int)
 
s64 uv_bios_change_memprotect (u64, u64, enum uv_memprotect)
 
s64 uv_bios_reserved_page_pa (u64, u64 *, u64 *, u64 *)
 
int uv_bios_set_legacy_vga_target (bool decode, int domain, int bus)
 
void uv_bios_init (void)
 

Variables

unsigned long sn_rtc_cycles_per_second
 
int uv_type
 
long sn_partition_id
 
long sn_coherency_id
 
long sn_region_size
 
long system_serial_number
 
struct kobjectsgi_uv_kobj
 

Macro Definition Documentation

#define partition_coherence_id ( )    (sn_coherency_id)

Definition at line 110 of file bios.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
BIOS_STATUS_MORE_PASSES 
BIOS_STATUS_SUCCESS 
BIOS_STATUS_UNIMPLEMENTED 
BIOS_STATUS_EINVAL 
BIOS_STATUS_UNAVAIL 

Definition at line 46 of file bios.h.

anonymous enum
Enumerator:
BIOS_FREQ_BASE_PLATFORM 
BIOS_FREQ_BASE_INTERVAL_TIMER 
BIOS_FREQ_BASE_REALTIME_CLOCK 

Definition at line 64 of file bios.h.

Enumerator:
UV_BIOS_COMMON 
UV_BIOS_GET_SN_INFO 
UV_BIOS_FREQ_BASE 
UV_BIOS_WATCHLIST_ALLOC 
UV_BIOS_WATCHLIST_FREE 
UV_BIOS_MEMPROTECT 
UV_BIOS_GET_PARTITION_ADDR 
UV_BIOS_SET_LEGACY_VGA_TARGET 

Definition at line 32 of file bios.h.

Enumerator:
UV_MEMPROT_RESTRICT_ACCESS 
UV_MEMPROT_ALLOW_AMO 
UV_MEMPROT_ALLOW_RW 

Definition at line 80 of file bios.h.

Function Documentation

s64 uv_bios_call ( enum  uv_bios_cmd,
u64  ,
u64  ,
u64  ,
u64  ,
u64   
)

Definition at line 31 of file bios_uv.c.

s64 uv_bios_call_irqsave ( enum  uv_bios_cmd,
u64  ,
u64  ,
u64  ,
u64  ,
u64   
)

Definition at line 48 of file bios_uv.c.

s64 uv_bios_call_reentrant ( enum  uv_bios_cmd,
u64  ,
u64  ,
u64  ,
u64  ,
u64   
)

Definition at line 61 of file bios_uv.c.

s64 uv_bios_change_memprotect ( u64  ,
u64  ,
enum  uv_memprotect 
)

Definition at line 142 of file bios_uv.c.

s64 uv_bios_freq_base ( u64  ,
u64  
)

Definition at line 160 of file bios_uv.c.

s64 uv_bios_get_sn_info ( int  ,
int ,
long ,
long ,
long ,
long  
)

Definition at line 86 of file bios_uv.c.

void uv_bios_init ( void  )

Definition at line 215 of file bios_uv.c.

int uv_bios_mq_watchlist_alloc ( unsigned  long,
unsigned  int,
unsigned long  
)

Definition at line 114 of file bios_uv.c.

int uv_bios_mq_watchlist_free ( int  ,
int   
)

Definition at line 134 of file bios_uv.c.

s64 uv_bios_reserved_page_pa ( u64  ,
u64 ,
u64 ,
u64  
)

Definition at line 150 of file bios_uv.c.

int uv_bios_set_legacy_vga_target ( bool  decode,
int  domain,
int  bus 
)

Definition at line 179 of file bios_uv.c.

Variable Documentation

struct kobject* sgi_uv_kobj

Definition at line 26 of file uv_sysfs.c.

long sn_coherency_id

Definition at line 90 of file setup.c.

long sn_partition_id

Definition at line 84 of file setup.c.

long sn_region_size

Definition at line 92 of file setup.c.

unsigned long sn_rtc_cycles_per_second

Definition at line 68 of file setup.c.

long system_serial_number

Definition at line 80 of file bios_uv.c.

int uv_type

Definition at line 82 of file bios_uv.c.