search for: vmi_uint8

Displaying 12 results from an estimated 12 matches for "vmi_uint8".

Did you mean: vmi_uint
2007 Apr 18
4
[RFC, PATCH 3/24] i386 Vmi interface definition
...M_CALL_LEN]; +} VROMCallEntry; + +typedef struct VROMHeader { + VMI_UINT16 romSignature; // option ROM signature + VMI_INT8 romLength; // ROM length in 512 byte chunks + unsigned char romEntry[4]; // 16-bit code entry point + VMI_UINT8 romPad0; // 4-byte align pad + VMI_UINT32 vRomSignature; // VROM identification signature + VMI_UINT8 APIVersionMinor; // Minor version of API + VMI_UINT8 APIVersionMajor; // Major version of API + VMI_UINT...
2007 Apr 18
4
[RFC, PATCH 3/24] i386 Vmi interface definition
...M_CALL_LEN]; +} VROMCallEntry; + +typedef struct VROMHeader { + VMI_UINT16 romSignature; // option ROM signature + VMI_INT8 romLength; // ROM length in 512 byte chunks + unsigned char romEntry[4]; // 16-bit code entry point + VMI_UINT8 romPad0; // 4-byte align pad + VMI_UINT32 vRomSignature; // VROM identification signature + VMI_UINT8 APIVersionMinor; // Minor version of API + VMI_UINT8 APIVersionMajor; // Major version of API + VMI_UINT...
2007 Apr 18
1
[RFC, PATCH 16/24] i386 Vmi io header
...atic inline void vmi_outl(const VMI_UINT32 value, const VMI_UINT16 port) +{ + vmi_wrap_call( + OUT, "out %0, %w1", + VMI_NO_OUTPUT, + 2, XCONC("a"(value), "d"(port)), + VMI_CLOBBER_EXTENDED(ZERO_RETURNS, "memory")); +} + +static inline void vmi_outb(const VMI_UINT8 value, const VMI_UINT16 port) +{ + vmi_wrap_call( + OUTB, "outb %b0, %w1", + VMI_NO_OUTPUT, + 2, XCONC("a"(value), "d"(port)), + VMI_CLOBBER_EXTENDED(ZERO_RETURNS, "memory")); +} + +static inline void vmi_outw(const VMI_UINT16 value, const VMI_UINT16 port...
2007 Apr 18
1
[RFC, PATCH 16/24] i386 Vmi io header
...atic inline void vmi_outl(const VMI_UINT32 value, const VMI_UINT16 port) +{ + vmi_wrap_call( + OUT, "out %0, %w1", + VMI_NO_OUTPUT, + 2, XCONC("a"(value), "d"(port)), + VMI_CLOBBER_EXTENDED(ZERO_RETURNS, "memory")); +} + +static inline void vmi_outb(const VMI_UINT8 value, const VMI_UINT16 port) +{ + vmi_wrap_call( + OUTB, "outb %b0, %w1", + VMI_NO_OUTPUT, + 2, XCONC("a"(value), "d"(port)), + VMI_CLOBBER_EXTENDED(ZERO_RETURNS, "memory")); +} + +static inline void vmi_outw(const VMI_UINT16 value, const VMI_UINT16 port...
2007 Apr 18
3
[RFC, PATCH 4/24] i386 Vmi inline implementation
...ns */ +#include <linux/types.h> +struct tss_struct; +struct Xgt_desc_struct; +typedef struct tss_struct VMI_TASK; +typedef struct Xgt_desc_struct VMI_DTR; +typedef uint64_t VMI_UINT64; +typedef uint32_t VMI_UINT32; +typedef uint16_t VMI_UINT16; +typedef uint16_t VMI_SELECTOR; +typedef uint8_t VMI_UINT8; +typedef int8_t VMI_INT8; +typedef uint8_t VMI_BOOL; +typedef uint64_t VMI_CYCLES; + +#include <paravirtualInterface.h> +#include <mach_asm.h> + +#if defined(CONFIG_VMI_C_CONVENTION) +#define VMI_CLOBBER_ZERO_RETURNS "cc", "eax", "edx", "ecx" +#d...
2007 Apr 18
3
[RFC, PATCH 4/24] i386 Vmi inline implementation
...ns */ +#include <linux/types.h> +struct tss_struct; +struct Xgt_desc_struct; +typedef struct tss_struct VMI_TASK; +typedef struct Xgt_desc_struct VMI_DTR; +typedef uint64_t VMI_UINT64; +typedef uint32_t VMI_UINT32; +typedef uint16_t VMI_UINT16; +typedef uint16_t VMI_SELECTOR; +typedef uint8_t VMI_UINT8; +typedef int8_t VMI_INT8; +typedef uint8_t VMI_BOOL; +typedef uint64_t VMI_CYCLES; + +#include <paravirtualInterface.h> +#include <mach_asm.h> + +#if defined(CONFIG_VMI_C_CONVENTION) +#define VMI_CLOBBER_ZERO_RETURNS "cc", "eax", "edx", "ecx" +#d...
2007 Apr 18
0
[RFC, PATCH 23/24] i386 Vmi timer patch
...<asm/pgtable.h> #include <vmi.h> +extern irqreturn_t vmi_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs); +extern fastcall void apic_vmi_timer_interrupt(void); + extern char __VMI_END; extern char __VMI_START; extern char __VMI_SHARED; VROMHeader *vmi_rom = NULL; VMI_UINT8 hypervisor_found; +VMI_UINT8 hypervisor_timer_found; /* Convenient macro for calling VMI functions indirectly in the ROM */ typedef VMI_UINT32 __attribute__((regparm(1))) (VROMFUNC)(void); @@ -201,6 +205,11 @@ void __init intr_init_hook(void) { #ifdef CONFIG_X86_LOCAL_APIC apic_intr_init();...
2007 Apr 18
0
[RFC, PATCH 23/24] i386 Vmi timer patch
...<asm/pgtable.h> #include <vmi.h> +extern irqreturn_t vmi_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs); +extern fastcall void apic_vmi_timer_interrupt(void); + extern char __VMI_END; extern char __VMI_START; extern char __VMI_SHARED; VROMHeader *vmi_rom = NULL; VMI_UINT8 hypervisor_found; +VMI_UINT8 hypervisor_timer_found; /* Convenient macro for calling VMI functions indirectly in the ROM */ typedef VMI_UINT32 __attribute__((regparm(1))) (VROMFUNC)(void); @@ -201,6 +205,11 @@ void __init intr_init_hook(void) { #ifdef CONFIG_X86_LOCAL_APIC apic_intr_init();...
2007 Apr 18
4
[RFC, PATCH 1/24] i386 Vmi documentation
...Clobbers: None (does not return) + Segments: CS / SS only + + + I/O CALLS + + This set of calls incorporates I/O related calls - PIO, setting I/O + privilege level, and forcing memory writeback for device coherency. + + VMI_INB + VMI_INW + VMI_INL + + VMICALL VMI_UINT8 VMI_INB(VMI_UINT dummy, VMI_UINT port); + VMICALL VMI_UINT16 VMI_INW(VMI_UINT dummy, VMI_UINT port); + VMICALL VMI_UINT32 VMI_INL(VMI_UINT dummy, VMI_UINT port); + + Input a byte, word, or doubleword from an I/O port. These + instructions have binary equivalent semantics t...
2007 Apr 18
4
[RFC, PATCH 1/24] i386 Vmi documentation
...Clobbers: None (does not return) + Segments: CS / SS only + + + I/O CALLS + + This set of calls incorporates I/O related calls - PIO, setting I/O + privilege level, and forcing memory writeback for device coherency. + + VMI_INB + VMI_INW + VMI_INL + + VMICALL VMI_UINT8 VMI_INB(VMI_UINT dummy, VMI_UINT port); + VMICALL VMI_UINT16 VMI_INW(VMI_UINT dummy, VMI_UINT port); + VMICALL VMI_UINT32 VMI_INL(VMI_UINT dummy, VMI_UINT port); + + Input a byte, word, or doubleword from an I/O port. These + instructions have binary equivalent semantics t...
2007 Apr 18
7
[RFC, PATCH 5/24] i386 Vmi code patching
...ooks.h> +#include <asm/processor.h> +#include <asm/desc.h> +#include <asm/io.h> +#include <asm/highmem.h> +#include <asm/pgtable.h> +#include <vmi.h> + +extern char __VMI_END; +extern char __VMI_START; +extern char __VMI_SHARED; +VROMHeader *vmi_rom = NULL; + +VMI_UINT8 hypervisor_found; + +/* Convenient macro for calling VMI functions indirectly in the ROM */ +typedef VMI_UINT32 __attribute__((regparm(1))) (VROMFUNC)(void); + +#define VROMFunc(table,func) \ + (((VROMFUNC *)&(((VROMCallTable *)(table))->vromCall[(func)].f)) \ + ()) + +#define MNEM_P...
2007 Apr 18
7
[RFC, PATCH 5/24] i386 Vmi code patching
...ooks.h> +#include <asm/processor.h> +#include <asm/desc.h> +#include <asm/io.h> +#include <asm/highmem.h> +#include <asm/pgtable.h> +#include <vmi.h> + +extern char __VMI_END; +extern char __VMI_START; +extern char __VMI_SHARED; +VROMHeader *vmi_rom = NULL; + +VMI_UINT8 hypervisor_found; + +/* Convenient macro for calling VMI functions indirectly in the ROM */ +typedef VMI_UINT32 __attribute__((regparm(1))) (VROMFUNC)(void); + +#define VROMFunc(table,func) \ + (((VROMFUNC *)&(((VROMCallTable *)(table))->vromCall[(func)].f)) \ + ()) + +#define MNEM_P...