Displaying 8 results from an estimated 8 matches for "romlength".
2007 Apr 18
4
[RFC, PATCH 3/24] i386 Vmi interface definition
...-----------
+ */
+
+/* VROM call table definitions */
+#define VROM_CALL_LEN 32
+
+typedef struct VROMCallEntry {
+ char f[VROM_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...
2007 Apr 18
4
[RFC, PATCH 3/24] i386 Vmi interface definition
...-----------
+ */
+
+/* VROM call table definitions */
+#define VROM_CALL_LEN 32
+
+typedef struct VROMCallEntry {
+ char f[VROM_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...
2007 Apr 18
7
[RFC, PATCH 5/24] i386 Vmi code patching
...etected VMI ROM version %d.%d\n",
+ romstart->APIVersionMajor,
+ romstart->APIVersionMinor);
+ vmi_rom = romstart;
+ if (romstart->APIVersionMajor != VMI_API_REV_MAJOR ||
+ romstart->APIVersionMinor+1 < MIN_VMI_API_REV_MINOR+1)
+ continue;
+ if (romstart->romLength * 512 >
+ &__VMI_END - &__VMI_START)
+ panic("VMI OPROM size exceeds mappable space\n");
+ hypervisor_found = 1;
+ break;
+ }
+ }
+}
+
+
+/*
+ * Activate the VMI interfaces
+ */
+void __init vmi_init(void)
+{
+ int romsize;
+
+ /*
+ * Setup optional callback funct...
2007 Apr 18
7
[RFC, PATCH 5/24] i386 Vmi code patching
...etected VMI ROM version %d.%d\n",
+ romstart->APIVersionMajor,
+ romstart->APIVersionMinor);
+ vmi_rom = romstart;
+ if (romstart->APIVersionMajor != VMI_API_REV_MAJOR ||
+ romstart->APIVersionMinor+1 < MIN_VMI_API_REV_MINOR+1)
+ continue;
+ if (romstart->romLength * 512 >
+ &__VMI_END - &__VMI_START)
+ panic("VMI OPROM size exceeds mappable space\n");
+ hypervisor_found = 1;
+ break;
+ }
+ }
+}
+
+
+/*
+ * Activate the VMI interfaces
+ */
+void __init vmi_init(void)
+{
+ int romsize;
+
+ /*
+ * Setup optional callback funct...
2007 Apr 18
1
[RFC, PATCH 21/24] i386 Vmi proc node
...l VMI API version %d.%d\n",
+ VMI_API_REV_MAJOR, MIN_VMI_API_REV_MINOR);
+ if (vmi_rom) {
+ seq_printf(m, "VMI ROM API version: %d.%d\n",
+ vmi_rom->APIVersionMajor,
+ vmi_rom->APIVersionMinor);
+ seq_printf(m, " rom size: %d\n",
+ vmi_rom->romLength * 512);
+ seq_printf(m, " mapped at: %08x\n", (uint32_t)vmi_rom);
+ if (vmi_rom->pnpHeaderOffset) {
+ struct pnp_header *h = (struct pnp_header *)
+ ((char *)vmi_rom+vmi_rom->pnpHeaderOffset);
+ seq_printf(m, " manufacturer: %s\n",
+ (char *)vmi_...
2007 Apr 18
1
[RFC, PATCH 21/24] i386 Vmi proc node
...l VMI API version %d.%d\n",
+ VMI_API_REV_MAJOR, MIN_VMI_API_REV_MINOR);
+ if (vmi_rom) {
+ seq_printf(m, "VMI ROM API version: %d.%d\n",
+ vmi_rom->APIVersionMajor,
+ vmi_rom->APIVersionMinor);
+ seq_printf(m, " rom size: %d\n",
+ vmi_rom->romLength * 512);
+ seq_printf(m, " mapped at: %08x\n", (uint32_t)vmi_rom);
+ if (vmi_rom->pnpHeaderOffset) {
+ struct pnp_header *h = (struct pnp_header *)
+ ((char *)vmi_rom+vmi_rom->pnpHeaderOffset);
+ seq_printf(m, " manufacturer: %s\n",
+ (char *)vmi_...
2007 Apr 18
4
[RFC, PATCH 1/24] i386 Vmi documentation
...API versions for legacy guest
+ OS support. ROM detection is done in the traditional manner, by
+ scanning the memory region from C8000h - DFFFFh in 2 kilobyte
+ increments. The romSignature bytes must be '0x55, 0xAA', and the
+ checksum of the region indicated by the romLength field must be zero.
+ The checksum is a simple 8-bit addition of all bytes in the ROM region.
+
+ Data layout
+
+ typedef struct HyperRomHeader {
+ uint16_t romSignature;
+ int8_t romLength;
+ unsigned char romEntry[4];
+ uint8_t...
2007 Apr 18
4
[RFC, PATCH 1/24] i386 Vmi documentation
...API versions for legacy guest
+ OS support. ROM detection is done in the traditional manner, by
+ scanning the memory region from C8000h - DFFFFh in 2 kilobyte
+ increments. The romSignature bytes must be '0x55, 0xAA', and the
+ checksum of the region indicated by the romLength field must be zero.
+ The checksum is a simple 8-bit addition of all bytes in the ROM region.
+
+ Data layout
+
+ typedef struct HyperRomHeader {
+ uint16_t romSignature;
+ int8_t romLength;
+ unsigned char romEntry[4];
+ uint8_t...