#include <linux/efi.h>
#include <linux/export.h>
#include <linux/slab.h>
#include <asm/efi.h>
#include <linux/io.h>
#include <asm/pgalloc.h>
#include <asm/uv/bios.h>
#include <asm/uv/uv_hub.h>
unsigned long uv_systab_phys __ro_after_init = …;
struct uv_systab *uv_systab;
static s64 __uv_bios_call(enum uv_bios_cmd which, u64 a1, u64 a2, u64 a3,
u64 a4, u64 a5)
{ … }
static s64 uv_bios_call(enum uv_bios_cmd which, u64 a1, u64 a2, u64 a3, u64 a4,
u64 a5)
{ … }
static s64 uv_bios_call_irqsave(enum uv_bios_cmd which, u64 a1, u64 a2, u64 a3,
u64 a4, u64 a5)
{ … }
long sn_partition_id;
EXPORT_SYMBOL_GPL(…);
long sn_coherency_id;
EXPORT_SYMBOL_GPL(…);
long sn_region_size;
EXPORT_SYMBOL_GPL(…);
long system_serial_number;
int uv_type;
s64 uv_bios_get_sn_info(int fc, int *uvtype, long *partid, long *coher,
long *region, long *ssn)
{ … }
int
uv_bios_mq_watchlist_alloc(unsigned long addr, unsigned int mq_size,
unsigned long *intr_mmr_offset)
{ … }
EXPORT_SYMBOL_GPL(…);
int
uv_bios_mq_watchlist_free(int blade, int watchlist_num)
{ … }
EXPORT_SYMBOL_GPL(…);
s64
uv_bios_change_memprotect(u64 paddr, u64 len, enum uv_memprotect perms)
{ … }
EXPORT_SYMBOL_GPL(…);
s64
uv_bios_reserved_page_pa(u64 buf, u64 *cookie, u64 *addr, u64 *len)
{ … }
EXPORT_SYMBOL_GPL(…);
s64 uv_bios_freq_base(u64 clock_type, u64 *ticks_per_second)
{ … }
int uv_bios_set_legacy_vga_target(bool decode, int domain, int bus)
{ … }
extern s64 uv_bios_get_master_nasid(u64 size, u64 *master_nasid)
{ … }
EXPORT_SYMBOL_GPL(…);
extern s64 uv_bios_get_heapsize(u64 nasid, u64 size, u64 *heap_size)
{ … }
EXPORT_SYMBOL_GPL(…);
extern s64 uv_bios_install_heap(u64 nasid, u64 heap_size, u64 *bios_heap)
{ … }
EXPORT_SYMBOL_GPL(…);
extern s64 uv_bios_obj_count(u64 nasid, u64 size, u64 *objcnt)
{ … }
EXPORT_SYMBOL_GPL(…);
extern s64 uv_bios_enum_objs(u64 nasid, u64 size, u64 *objbuf)
{ … }
EXPORT_SYMBOL_GPL(…);
extern s64 uv_bios_enum_ports(u64 nasid, u64 obj_id, u64 size, u64 *portbuf)
{ … }
EXPORT_SYMBOL_GPL(…);
extern s64 uv_bios_get_geoinfo(u64 nasid, u64 size, u64 *buf)
{ … }
EXPORT_SYMBOL_GPL(…);
extern s64 uv_bios_get_pci_topology(u64 size, u64 *buf)
{ … }
EXPORT_SYMBOL_GPL(…);
unsigned long get_uv_systab_phys(bool msg)
{ … }
int uv_bios_init(void)
{ … }