FreeBSD kernel /amd64 XEN device code
pvefi.c File Reference
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/efi.h>
#include <sys/eventhandler.h>
#include <sys/kernel.h>
#include <sys/linker.h>
#include <sys/module.h>
#include <sys/clock.h>
#include <sys/sysctl.h>
#include <sys/systm.h>
#include <xen/xen-os.h>
#include <xen/error.h>
#include <xen/hypervisor.h>
#include <contrib/xen/platform.h>
Include dependency graph for pvefi.c:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
static int rt_ok (void)
 
static int get_time (struct efi_tm *tm)
 
static int get_time_capabilities (struct efi_tmcap *tmcap)
 
static int set_time (struct efi_tm *tm)
 
static int var_get (efi_char *name, struct uuid *vendor, uint32_t *attrib, size_t *datasize, void *data)
 
static int var_nextname (size_t *namesize, efi_char *name, struct uuid *vendor)
 
static int var_set (efi_char *name, struct uuid *vendor, uint32_t attrib, size_t datasize, void *data)
 
static int modevents (module_t m, int event, void *arg __unused)
 
 DECLARE_MODULE (pvefirt, moddata, SI_SUB_DRIVERS, SI_ORDER_SECOND)
 
 MODULE_VERSION (pvefirt, 1)
 

Variables

char bootmethod [16]
 
static const struct efi_ops pvefi_ops
 
static moduledata_t moddata
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ DECLARE_MODULE()

DECLARE_MODULE ( pvefirt  ,
moddata  ,
SI_SUB_DRIVERS  ,
SI_ORDER_SECOND   
)

◆ get_time()

static int get_time ( struct efi_tm *  tm)
static

Definition at line 56 of file pvefi.c.

◆ get_time_capabilities()

static int get_time_capabilities ( struct efi_tmcap *  tmcap)
static

Definition at line 83 of file pvefi.c.

◆ modevents()

static int modevents ( module_t  m,
int  event,
void *arg  __unused 
)
static

Definition at line 217 of file pvefi.c.

References bootmethod, and pvefi_ops.

◆ MODULE_VERSION()

MODULE_VERSION ( pvefirt  ,
 
)

◆ rt_ok()

static int rt_ok ( void  )
static

Definition at line 49 of file pvefi.c.

◆ set_time()

static int set_time ( struct efi_tm *  tm)
static

Definition at line 104 of file pvefi.c.

◆ var_get()

static int var_get ( efi_char *  name,
struct uuid *  vendor,
uint32_t *  attrib,
size_t *  datasize,
void *  data 
)
static

Definition at line 128 of file pvefi.c.

◆ var_nextname()

static int var_nextname ( size_t *  namesize,
efi_char *  name,
struct uuid *  vendor 
)
static

Definition at line 157 of file pvefi.c.

◆ var_set()

static int var_set ( efi_char *  name,
struct uuid *  vendor,
uint32_t  attrib,
size_t  datasize,
void *  data 
)
static

Definition at line 183 of file pvefi.c.

Variable Documentation

◆ bootmethod

char bootmethod[16]
extern

Referenced by modevents().

◆ moddata

moduledata_t moddata
static
Initial value:
= {
.name = "pvefirt",
.evhand = modevents,
.priv = NULL,
}
static int modevents(module_t m, int event, void *arg __unused)
Definition: pvefi.c:217

Definition at line 248 of file pvefi.c.

◆ pvefi_ops

const struct efi_ops pvefi_ops
static
Initial value:
= {
.rt_ok = rt_ok,
.get_time = get_time,
.get_time_capabilities = get_time_capabilities,
.set_time = set_time,
.var_get = var_get,
.var_nextname = var_nextname,
.var_set = var_set,
}
static int var_nextname(size_t *namesize, efi_char *name, struct uuid *vendor)
Definition: pvefi.c:157
static int var_get(efi_char *name, struct uuid *vendor, uint32_t *attrib, size_t *datasize, void *data)
Definition: pvefi.c:128
static int set_time(struct efi_tm *tm)
Definition: pvefi.c:104
static int get_time(struct efi_tm *tm)
Definition: pvefi.c:56
static int rt_ok(void)
Definition: pvefi.c:49
static int var_set(efi_char *name, struct uuid *vendor, uint32_t attrib, size_t datasize, void *data)
Definition: pvefi.c:183
static int get_time_capabilities(struct efi_tmcap *tmcap)
Definition: pvefi.c:83

Definition at line 206 of file pvefi.c.

Referenced by modevents().