v86 0.4.0 → 0.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Readme.md +56 -111
- package/build/libv86-debug.js +12677 -0
- package/build/libv86-debug.mjs +732 -0
- package/build/libv86.js +710 -0
- package/build/libv86.mjs +636 -0
- package/build/v86-debug.wasm +0 -0
- package/build/v86-fallback.wasm +0 -0
- package/build/v86.wasm +0 -0
- package/package.json +12 -35
- package/bios/.gitignore +0 -1
- package/bios/COPYING.LESSER +0 -165
- package/bios/bochs-bios.bin +0 -0
- package/bios/bochs-vgabios.bin +0 -0
- package/bios/fetch-and-build-seabios.sh +0 -13
- package/bios/seabios/.config +0 -113
- package/bios/seabios/.config.old +0 -114
- package/bios/seabios/.gitignore +0 -4
- package/bios/seabios/COPYING +0 -674
- package/bios/seabios/COPYING.LESSER +0 -165
- package/bios/seabios/Makefile +0 -286
- package/bios/seabios/README +0 -17
- package/bios/seabios/docs/Build_overview.md +0 -104
- package/bios/seabios/docs/Contributing.md +0 -20
- package/bios/seabios/docs/Debugging.md +0 -111
- package/bios/seabios/docs/Developer_Documentation.md +0 -25
- package/bios/seabios/docs/Developer_links.md +0 -86
- package/bios/seabios/docs/Download.md +0 -27
- package/bios/seabios/docs/Execution_and_code_flow.md +0 -178
- package/bios/seabios/docs/Linking_overview.md +0 -160
- package/bios/seabios/docs/Mailinglist.md +0 -8
- package/bios/seabios/docs/Memory_Model.md +0 -253
- package/bios/seabios/docs/README +0 -5
- package/bios/seabios/docs/Releases.md +0 -482
- package/bios/seabios/docs/Runtime_config.md +0 -193
- package/bios/seabios/docs/SeaBIOS.md +0 -17
- package/bios/seabios/docs/SeaVGABIOS.md +0 -39
- package/bios/seabios/out/autoconf.h +0 -117
- package/bios/seabios/out/include/config/acpi/dsdt.h +0 -0
- package/bios/seabios/out/include/config/acpi.h +0 -0
- package/bios/seabios/out/include/config/ahci.h +0 -0
- package/bios/seabios/out/include/config/apmbios.h +0 -0
- package/bios/seabios/out/include/config/ata/dma.h +0 -0
- package/bios/seabios/out/include/config/ata/pio32.h +0 -0
- package/bios/seabios/out/include/config/ata.h +0 -0
- package/bios/seabios/out/include/config/auto.conf +0 -69
- package/bios/seabios/out/include/config/auto.conf.cmd +0 -9
- package/bios/seabios/out/include/config/boot.h +0 -0
- package/bios/seabios/out/include/config/bootorder.h +0 -0
- package/bios/seabios/out/include/config/build/vgabios.h +0 -0
- package/bios/seabios/out/include/config/call32/smm.h +0 -0
- package/bios/seabios/out/include/config/cdrom/boot.h +0 -0
- package/bios/seabios/out/include/config/cdrom/emu.h +0 -0
- package/bios/seabios/out/include/config/debug/level.h +0 -0
- package/bios/seabios/out/include/config/drives.h +0 -0
- package/bios/seabios/out/include/config/entry/extrastack.h +0 -0
- package/bios/seabios/out/include/config/esp/scsi.h +0 -0
- package/bios/seabios/out/include/config/flash/floppy.h +0 -0
- package/bios/seabios/out/include/config/floppy.h +0 -0
- package/bios/seabios/out/include/config/fw/romfile/load.h +0 -0
- package/bios/seabios/out/include/config/hardware/irq.h +0 -0
- package/bios/seabios/out/include/config/kbd/call/int15/4f.h +0 -0
- package/bios/seabios/out/include/config/keyboard.h +0 -0
- package/bios/seabios/out/include/config/lpt.h +0 -0
- package/bios/seabios/out/include/config/lsi/scsi.h +0 -0
- package/bios/seabios/out/include/config/malloc/uppermemory.h +0 -0
- package/bios/seabios/out/include/config/megasas.h +0 -0
- package/bios/seabios/out/include/config/mouse.h +0 -0
- package/bios/seabios/out/include/config/mpt/scsi.h +0 -0
- package/bios/seabios/out/include/config/mptable.h +0 -0
- package/bios/seabios/out/include/config/mtrr/init.h +0 -0
- package/bios/seabios/out/include/config/optionroms.h +0 -0
- package/bios/seabios/out/include/config/override/pci/id.h +0 -0
- package/bios/seabios/out/include/config/pcibios.h +0 -0
- package/bios/seabios/out/include/config/pirtable.h +0 -0
- package/bios/seabios/out/include/config/pmm.h +0 -0
- package/bios/seabios/out/include/config/pmtimer.h +0 -0
- package/bios/seabios/out/include/config/pnpbios.h +0 -0
- package/bios/seabios/out/include/config/ps2port.h +0 -0
- package/bios/seabios/out/include/config/pvscsi.h +0 -0
- package/bios/seabios/out/include/config/qemu/hardware.h +0 -0
- package/bios/seabios/out/include/config/qemu.h +0 -0
- package/bios/seabios/out/include/config/rom/size.h +0 -0
- package/bios/seabios/out/include/config/rtc/timer.h +0 -0
- package/bios/seabios/out/include/config/s3/resume.h +0 -0
- package/bios/seabios/out/include/config/sdcard.h +0 -0
- package/bios/seabios/out/include/config/serial.h +0 -0
- package/bios/seabios/out/include/config/tcgbios.h +0 -0
- package/bios/seabios/out/include/config/threads.h +0 -0
- package/bios/seabios/out/include/config/tristate.conf +0 -4
- package/bios/seabios/out/include/config/tsc/timer.h +0 -0
- package/bios/seabios/out/include/config/use/smm.h +0 -0
- package/bios/seabios/out/include/config/vga/allocate/extra/stack.h +0 -0
- package/bios/seabios/out/include/config/vga/bochs/stdvga.h +0 -0
- package/bios/seabios/out/include/config/vga/bochs.h +0 -0
- package/bios/seabios/out/include/config/vga/did.h +0 -0
- package/bios/seabios/out/include/config/vga/extra/stack/size.h +0 -0
- package/bios/seabios/out/include/config/vga/fixup/asm.h +0 -0
- package/bios/seabios/out/include/config/vga/pci.h +0 -0
- package/bios/seabios/out/include/config/vga/stdvga/ports.h +0 -0
- package/bios/seabios/out/include/config/vga/vbe.h +0 -0
- package/bios/seabios/out/include/config/vga/vid.h +0 -0
- package/bios/seabios/out/include/config/vgahooks.h +0 -0
- package/bios/seabios/out/include/config/virtio/blk.h +0 -0
- package/bios/seabios/out/include/config/virtio/scsi.h +0 -0
- package/bios/seabios/out/include/config/xen.h +0 -0
- package/bios/seabios/out/scripts/kconfig/conf +0 -0
- package/bios/seabios/out/scripts/kconfig/conf.o +0 -0
- package/bios/seabios/out/scripts/kconfig/zconf.hash.c +0 -289
- package/bios/seabios/out/scripts/kconfig/zconf.lex.c +0 -2420
- package/bios/seabios/out/scripts/kconfig/zconf.tab.c +0 -2538
- package/bios/seabios/out/scripts/kconfig/zconf.tab.o +0 -0
- package/bios/seabios/scripts/acpi_extract.py +0 -366
- package/bios/seabios/scripts/acpi_extract_preprocess.py +0 -41
- package/bios/seabios/scripts/buildrom.py +0 -56
- package/bios/seabios/scripts/buildversion.py +0 -134
- package/bios/seabios/scripts/checkrom.py +0 -95
- package/bios/seabios/scripts/checkstack.py +0 -226
- package/bios/seabios/scripts/checksum.py +0 -16
- package/bios/seabios/scripts/encodeint.py +0 -21
- package/bios/seabios/scripts/gen-offsets.sh +0 -17
- package/bios/seabios/scripts/kconfig/.gitignore +0 -22
- package/bios/seabios/scripts/kconfig/Makefile +0 -331
- package/bios/seabios/scripts/kconfig/POTFILES.in +0 -12
- package/bios/seabios/scripts/kconfig/check.sh +0 -13
- package/bios/seabios/scripts/kconfig/conf.c +0 -718
- package/bios/seabios/scripts/kconfig/confdata.c +0 -1250
- package/bios/seabios/scripts/kconfig/expr.c +0 -1168
- package/bios/seabios/scripts/kconfig/expr.h +0 -241
- package/bios/seabios/scripts/kconfig/gconf.c +0 -1542
- package/bios/seabios/scripts/kconfig/gconf.glade +0 -661
- package/bios/seabios/scripts/kconfig/images.c +0 -326
- package/bios/seabios/scripts/kconfig/kxgettext.c +0 -235
- package/bios/seabios/scripts/kconfig/lex.zconf.c +0 -2430
- package/bios/seabios/scripts/kconfig/list.h +0 -131
- package/bios/seabios/scripts/kconfig/lkc.h +0 -200
- package/bios/seabios/scripts/kconfig/lkc_proto.h +0 -57
- package/bios/seabios/scripts/kconfig/lxdialog/.gitignore +0 -4
- package/bios/seabios/scripts/kconfig/lxdialog/BIG.FAT.WARNING +0 -4
- package/bios/seabios/scripts/kconfig/lxdialog/check-lxdialog.sh +0 -87
- package/bios/seabios/scripts/kconfig/lxdialog/checklist.c +0 -332
- package/bios/seabios/scripts/kconfig/lxdialog/dialog.h +0 -257
- package/bios/seabios/scripts/kconfig/lxdialog/inputbox.c +0 -301
- package/bios/seabios/scripts/kconfig/lxdialog/menubox.c +0 -437
- package/bios/seabios/scripts/kconfig/lxdialog/textbox.c +0 -408
- package/bios/seabios/scripts/kconfig/lxdialog/util.c +0 -713
- package/bios/seabios/scripts/kconfig/lxdialog/yesno.c +0 -114
- package/bios/seabios/scripts/kconfig/mconf.c +0 -1036
- package/bios/seabios/scripts/kconfig/menu.c +0 -697
- package/bios/seabios/scripts/kconfig/merge_config.sh +0 -150
- package/bios/seabios/scripts/kconfig/nconf.c +0 -1556
- package/bios/seabios/scripts/kconfig/nconf.gui.c +0 -656
- package/bios/seabios/scripts/kconfig/nconf.h +0 -96
- package/bios/seabios/scripts/kconfig/qconf.cc +0 -1795
- package/bios/seabios/scripts/kconfig/qconf.h +0 -338
- package/bios/seabios/scripts/kconfig/streamline_config.pl +0 -647
- package/bios/seabios/scripts/kconfig/symbol.c +0 -1373
- package/bios/seabios/scripts/kconfig/util.c +0 -157
- package/bios/seabios/scripts/kconfig/zconf.gperf +0 -48
- package/bios/seabios/scripts/kconfig/zconf.hash.c_shipped +0 -289
- package/bios/seabios/scripts/kconfig/zconf.l +0 -363
- package/bios/seabios/scripts/kconfig/zconf.lex.c_shipped +0 -2420
- package/bios/seabios/scripts/kconfig/zconf.tab.c_shipped +0 -2538
- package/bios/seabios/scripts/kconfig/zconf.y +0 -733
- package/bios/seabios/scripts/layoutrom.py +0 -705
- package/bios/seabios/scripts/python23compat.py +0 -14
- package/bios/seabios/scripts/readserial.py +0 -190
- package/bios/seabios/scripts/tarball.sh +0 -36
- package/bios/seabios/scripts/test-build.sh +0 -90
- package/bios/seabios/scripts/transdump.py +0 -53
- package/bios/seabios/scripts/vgafixup.py +0 -96
- package/bios/seabios/src/Kconfig +0 -579
- package/bios/seabios/src/apm.c +0 -215
- package/bios/seabios/src/asm-offsets.c +0 -23
- package/bios/seabios/src/biosvar.h +0 -130
- package/bios/seabios/src/block.c +0 -623
- package/bios/seabios/src/block.h +0 -121
- package/bios/seabios/src/bmp.c +0 -117
- package/bios/seabios/src/boot.c +0 -793
- package/bios/seabios/src/bootsplash.c +0 -255
- package/bios/seabios/src/bregs.h +0 -80
- package/bios/seabios/src/byteorder.h +0 -71
- package/bios/seabios/src/cdrom.c +0 -322
- package/bios/seabios/src/clock.c +0 -506
- package/bios/seabios/src/code16gcc.s +0 -1
- package/bios/seabios/src/config.h +0 -108
- package/bios/seabios/src/cp437.c +0 -275
- package/bios/seabios/src/cp437.h +0 -1
- package/bios/seabios/src/disk.c +0 -779
- package/bios/seabios/src/e820map.c +0 -152
- package/bios/seabios/src/e820map.h +0 -26
- package/bios/seabios/src/entryfuncs.S +0 -165
- package/bios/seabios/src/farptr.h +0 -208
- package/bios/seabios/src/font.c +0 -139
- package/bios/seabios/src/fw/acpi-dsdt-cpu-hotplug.dsl +0 -78
- package/bios/seabios/src/fw/acpi-dsdt-dbug.dsl +0 -26
- package/bios/seabios/src/fw/acpi-dsdt-hpet.dsl +0 -36
- package/bios/seabios/src/fw/acpi-dsdt-isa.dsl +0 -102
- package/bios/seabios/src/fw/acpi-dsdt-pci-crs.dsl +0 -90
- package/bios/seabios/src/fw/acpi-dsdt.dsl +0 -342
- package/bios/seabios/src/fw/acpi-dsdt.hex +0 -554
- package/bios/seabios/src/fw/acpi.c +0 -685
- package/bios/seabios/src/fw/biostables.c +0 -491
- package/bios/seabios/src/fw/coreboot.c +0 -569
- package/bios/seabios/src/fw/csm.c +0 -347
- package/bios/seabios/src/fw/dev-pci.h +0 -52
- package/bios/seabios/src/fw/dev-piix.h +0 -29
- package/bios/seabios/src/fw/dev-q35.h +0 -52
- package/bios/seabios/src/fw/lzmadecode.c +0 -398
- package/bios/seabios/src/fw/lzmadecode.h +0 -67
- package/bios/seabios/src/fw/mptable.c +0 -197
- package/bios/seabios/src/fw/mtrr.c +0 -105
- package/bios/seabios/src/fw/multiboot.c +0 -111
- package/bios/seabios/src/fw/paravirt.c +0 -624
- package/bios/seabios/src/fw/paravirt.h +0 -63
- package/bios/seabios/src/fw/pciinit.c +0 -1187
- package/bios/seabios/src/fw/pirtable.c +0 -103
- package/bios/seabios/src/fw/q35-acpi-dsdt.dsl +0 -450
- package/bios/seabios/src/fw/romfile_loader.c +0 -259
- package/bios/seabios/src/fw/romfile_loader.h +0 -91
- package/bios/seabios/src/fw/shadow.c +0 -208
- package/bios/seabios/src/fw/smbios.c +0 -585
- package/bios/seabios/src/fw/smm.c +0 -269
- package/bios/seabios/src/fw/smp.c +0 -194
- package/bios/seabios/src/fw/ssdt-misc.dsl +0 -104
- package/bios/seabios/src/fw/ssdt-misc.hex +0 -88
- package/bios/seabios/src/fw/ssdt-pcihp.dsl +0 -36
- package/bios/seabios/src/fw/ssdt-pcihp.hex +0 -38
- package/bios/seabios/src/fw/ssdt-proc.dsl +0 -48
- package/bios/seabios/src/fw/ssdt-proc.hex +0 -35
- package/bios/seabios/src/fw/xen.c +0 -149
- package/bios/seabios/src/fw/xen.h +0 -125
- package/bios/seabios/src/gen-defs.h +0 -19
- package/bios/seabios/src/hw/ahci.c +0 -697
- package/bios/seabios/src/hw/ahci.h +0 -201
- package/bios/seabios/src/hw/ata.c +0 -1046
- package/bios/seabios/src/hw/ata.h +0 -163
- package/bios/seabios/src/hw/blockcmd.c +0 -372
- package/bios/seabios/src/hw/blockcmd.h +0 -114
- package/bios/seabios/src/hw/dma.c +0 -67
- package/bios/seabios/src/hw/esp-scsi.c +0 -241
- package/bios/seabios/src/hw/esp-scsi.h +0 -8
- package/bios/seabios/src/hw/floppy.c +0 -741
- package/bios/seabios/src/hw/lsi-scsi.c +0 -221
- package/bios/seabios/src/hw/lsi-scsi.h +0 -8
- package/bios/seabios/src/hw/megasas.c +0 -405
- package/bios/seabios/src/hw/megasas.h +0 -8
- package/bios/seabios/src/hw/mpt-scsi.c +0 -319
- package/bios/seabios/src/hw/mpt-scsi.h +0 -8
- package/bios/seabios/src/hw/nvme-int.h +0 -199
- package/bios/seabios/src/hw/nvme.c +0 -708
- package/bios/seabios/src/hw/nvme.h +0 -17
- package/bios/seabios/src/hw/pci.c +0 -133
- package/bios/seabios/src/hw/pci.h +0 -47
- package/bios/seabios/src/hw/pci_ids.h +0 -2632
- package/bios/seabios/src/hw/pci_regs.h +0 -556
- package/bios/seabios/src/hw/pcidevice.c +0 -192
- package/bios/seabios/src/hw/pcidevice.h +0 -76
- package/bios/seabios/src/hw/pic.c +0 -115
- package/bios/seabios/src/hw/pic.h +0 -60
- package/bios/seabios/src/hw/ps2port.c +0 -543
- package/bios/seabios/src/hw/ps2port.h +0 -67
- package/bios/seabios/src/hw/pvscsi.c +0 -333
- package/bios/seabios/src/hw/pvscsi.h +0 -8
- package/bios/seabios/src/hw/ramdisk.c +0 -108
- package/bios/seabios/src/hw/rtc.c +0 -100
- package/bios/seabios/src/hw/rtc.h +0 -75
- package/bios/seabios/src/hw/sdcard.c +0 -572
- package/bios/seabios/src/hw/serialio.c +0 -113
- package/bios/seabios/src/hw/serialio.h +0 -29
- package/bios/seabios/src/hw/timer.c +0 -259
- package/bios/seabios/src/hw/tpm_drivers.c +0 -636
- package/bios/seabios/src/hw/tpm_drivers.h +0 -127
- package/bios/seabios/src/hw/usb-ehci.c +0 -650
- package/bios/seabios/src/hw/usb-ehci.h +0 -177
- package/bios/seabios/src/hw/usb-hid.c +0 -442
- package/bios/seabios/src/hw/usb-hid.h +0 -29
- package/bios/seabios/src/hw/usb-hub.c +0 -205
- package/bios/seabios/src/hw/usb-hub.h +0 -64
- package/bios/seabios/src/hw/usb-msc.c +0 -222
- package/bios/seabios/src/hw/usb-msc.h +0 -10
- package/bios/seabios/src/hw/usb-ohci.c +0 -568
- package/bios/seabios/src/hw/usb-ohci.h +0 -144
- package/bios/seabios/src/hw/usb-uas.c +0 -289
- package/bios/seabios/src/hw/usb-uas.h +0 -9
- package/bios/seabios/src/hw/usb-uhci.c +0 -571
- package/bios/seabios/src/hw/usb-uhci.h +0 -128
- package/bios/seabios/src/hw/usb-xhci.c +0 -1161
- package/bios/seabios/src/hw/usb-xhci.h +0 -133
- package/bios/seabios/src/hw/usb.c +0 -499
- package/bios/seabios/src/hw/usb.h +0 -254
- package/bios/seabios/src/hw/virtio-blk.c +0 -211
- package/bios/seabios/src/hw/virtio-blk.h +0 -43
- package/bios/seabios/src/hw/virtio-pci.c +0 -501
- package/bios/seabios/src/hw/virtio-pci.h +0 -151
- package/bios/seabios/src/hw/virtio-ring.c +0 -147
- package/bios/seabios/src/hw/virtio-ring.h +0 -121
- package/bios/seabios/src/hw/virtio-scsi.c +0 -220
- package/bios/seabios/src/hw/virtio-scsi.h +0 -47
- package/bios/seabios/src/jpeg.c +0 -1055
- package/bios/seabios/src/kbd.c +0 -599
- package/bios/seabios/src/list.h +0 -91
- package/bios/seabios/src/malloc.c +0 -561
- package/bios/seabios/src/malloc.h +0 -70
- package/bios/seabios/src/memmap.h +0 -21
- package/bios/seabios/src/misc.c +0 -195
- package/bios/seabios/src/mouse.c +0 -342
- package/bios/seabios/src/optionroms.c +0 -475
- package/bios/seabios/src/output.c +0 -584
- package/bios/seabios/src/output.h +0 -68
- package/bios/seabios/src/pcibios.c +0 -241
- package/bios/seabios/src/pmm.c +0 -176
- package/bios/seabios/src/pnpbios.c +0 -88
- package/bios/seabios/src/post.c +0 -337
- package/bios/seabios/src/resume.c +0 -157
- package/bios/seabios/src/romfile.c +0 -146
- package/bios/seabios/src/romfile.h +0 -21
- package/bios/seabios/src/romlayout.S +0 -698
- package/bios/seabios/src/sercon.c +0 -677
- package/bios/seabios/src/serial.c +0 -317
- package/bios/seabios/src/sha1.c +0 -147
- package/bios/seabios/src/sha1.h +0 -8
- package/bios/seabios/src/stacks.c +0 -771
- package/bios/seabios/src/stacks.h +0 -68
- package/bios/seabios/src/std/LegacyBios.h +0 -985
- package/bios/seabios/src/std/acpi.h +0 -323
- package/bios/seabios/src/std/bda.h +0 -174
- package/bios/seabios/src/std/disk.h +0 -175
- package/bios/seabios/src/std/mptable.h +0 -77
- package/bios/seabios/src/std/multiboot.h +0 -260
- package/bios/seabios/src/std/optionrom.h +0 -59
- package/bios/seabios/src/std/pirtable.h +0 -35
- package/bios/seabios/src/std/pmm.h +0 -19
- package/bios/seabios/src/std/pnpbios.h +0 -24
- package/bios/seabios/src/std/smbios.h +0 -167
- package/bios/seabios/src/std/tcg.h +0 -554
- package/bios/seabios/src/std/vbe.h +0 -156
- package/bios/seabios/src/std/vga.h +0 -63
- package/bios/seabios/src/string.c +0 -251
- package/bios/seabios/src/string.h +0 -31
- package/bios/seabios/src/system.c +0 -357
- package/bios/seabios/src/tcgbios.c +0 -2014
- package/bios/seabios/src/tcgbios.h +0 -19
- package/bios/seabios/src/types.h +0 -156
- package/bios/seabios/src/util.h +0 -251
- package/bios/seabios/src/version.c +0 -5
- package/bios/seabios/src/vgahooks.c +0 -355
- package/bios/seabios/src/x86.c +0 -23
- package/bios/seabios/src/x86.h +0 -277
- package/bios/seabios/vgasrc/Kconfig +0 -211
- package/bios/seabios/vgasrc/bochsdisplay.c +0 -59
- package/bios/seabios/vgasrc/bochsvga.c +0 -447
- package/bios/seabios/vgasrc/bochsvga.h +0 -57
- package/bios/seabios/vgasrc/cbvga.c +0 -337
- package/bios/seabios/vgasrc/clext.c +0 -627
- package/bios/seabios/vgasrc/geodevga.c +0 -434
- package/bios/seabios/vgasrc/geodevga.h +0 -89
- package/bios/seabios/vgasrc/ramfb.c +0 -163
- package/bios/seabios/vgasrc/stdvga.c +0 -485
- package/bios/seabios/vgasrc/stdvga.h +0 -81
- package/bios/seabios/vgasrc/stdvgaio.c +0 -186
- package/bios/seabios/vgasrc/stdvgamodes.c +0 -534
- package/bios/seabios/vgasrc/swcursor.c +0 -96
- package/bios/seabios/vgasrc/vbe.c +0 -432
- package/bios/seabios/vgasrc/vgabios.c +0 -1131
- package/bios/seabios/vgasrc/vgabios.h +0 -88
- package/bios/seabios/vgasrc/vgaentry.S +0 -161
- package/bios/seabios/vgasrc/vgafb.c +0 -661
- package/bios/seabios/vgasrc/vgafb.h +0 -42
- package/bios/seabios/vgasrc/vgafonts.c +0 -785
- package/bios/seabios/vgasrc/vgahw.h +0 -152
- package/bios/seabios/vgasrc/vgainit.c +0 -202
- package/bios/seabios/vgasrc/vgalayout.lds.S +0 -23
- package/bios/seabios/vgasrc/vgautil.h +0 -103
- package/bios/seabios/vgasrc/vgaversion.c +0 -6
- package/bios/seabios-debug.bin +0 -0
- package/bios/seabios-debug.config +0 -117
- package/bios/seabios.bin +0 -0
- package/bios/seabios.config +0 -114
- package/bios/vgabios-debug.bin +0 -0
- package/bios/vgabios.bin +0 -0
- package/build/binaries.js +0 -1
- package/build/index-debug.cjs +0 -1
- package/build/index-debug.js +0 -1
- package/build/index.cjs +0 -1
- package/build/index.js +0 -1
- package/v86.css +0 -259
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
#ifndef __MPTABLE_H
|
|
2
|
-
#define __MPTABLE_H
|
|
3
|
-
|
|
4
|
-
#include "types.h" // u32
|
|
5
|
-
|
|
6
|
-
#define MPTABLE_SIGNATURE 0x5f504d5f // "_MP_"
|
|
7
|
-
|
|
8
|
-
struct mptable_floating_s {
|
|
9
|
-
u32 signature;
|
|
10
|
-
u32 physaddr;
|
|
11
|
-
u8 length;
|
|
12
|
-
u8 spec_rev;
|
|
13
|
-
u8 checksum;
|
|
14
|
-
u8 feature1;
|
|
15
|
-
u8 feature2;
|
|
16
|
-
u8 reserved[3];
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
#define MPCONFIG_SIGNATURE 0x504d4350 // "PCMP"
|
|
20
|
-
|
|
21
|
-
struct mptable_config_s {
|
|
22
|
-
u32 signature;
|
|
23
|
-
u16 length;
|
|
24
|
-
u8 spec;
|
|
25
|
-
u8 checksum;
|
|
26
|
-
char oemid[8];
|
|
27
|
-
char productid[12];
|
|
28
|
-
u32 oemptr;
|
|
29
|
-
u16 oemsize;
|
|
30
|
-
u16 entrycount;
|
|
31
|
-
u32 lapic;
|
|
32
|
-
u16 exttable_length;
|
|
33
|
-
u8 exttable_checksum;
|
|
34
|
-
u8 reserved;
|
|
35
|
-
} PACKED;
|
|
36
|
-
|
|
37
|
-
#define MPT_TYPE_CPU 0
|
|
38
|
-
#define MPT_TYPE_BUS 1
|
|
39
|
-
#define MPT_TYPE_IOAPIC 2
|
|
40
|
-
#define MPT_TYPE_INTSRC 3
|
|
41
|
-
#define MPT_TYPE_LOCAL_INT 4
|
|
42
|
-
|
|
43
|
-
struct mpt_cpu {
|
|
44
|
-
u8 type;
|
|
45
|
-
u8 apicid;
|
|
46
|
-
u8 apicver;
|
|
47
|
-
u8 cpuflag;
|
|
48
|
-
u32 cpusignature;
|
|
49
|
-
u32 featureflag;
|
|
50
|
-
u32 reserved[2];
|
|
51
|
-
} PACKED;
|
|
52
|
-
|
|
53
|
-
struct mpt_bus {
|
|
54
|
-
u8 type;
|
|
55
|
-
u8 busid;
|
|
56
|
-
char bustype[6];
|
|
57
|
-
} PACKED;
|
|
58
|
-
|
|
59
|
-
struct mpt_ioapic {
|
|
60
|
-
u8 type;
|
|
61
|
-
u8 apicid;
|
|
62
|
-
u8 apicver;
|
|
63
|
-
u8 flags;
|
|
64
|
-
u32 apicaddr;
|
|
65
|
-
} PACKED;
|
|
66
|
-
|
|
67
|
-
struct mpt_intsrc {
|
|
68
|
-
u8 type;
|
|
69
|
-
u8 irqtype;
|
|
70
|
-
u16 irqflag;
|
|
71
|
-
u8 srcbus;
|
|
72
|
-
u8 srcbusirq;
|
|
73
|
-
u8 dstapic;
|
|
74
|
-
u8 dstirq;
|
|
75
|
-
} PACKED;
|
|
76
|
-
|
|
77
|
-
#endif // mptable.h
|
|
@@ -1,260 +0,0 @@
|
|
|
1
|
-
/* multiboot.h - Multiboot header file. */
|
|
2
|
-
/* Copyright (C) 1999,2003,2007,2008,2009,2010 Free Software Foundation, Inc.
|
|
3
|
-
*
|
|
4
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
* of this software and associated documentation files (the "Software"), to
|
|
6
|
-
* deal in the Software without restriction, including without limitation the
|
|
7
|
-
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
8
|
-
* sell copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
* furnished to do so, subject to the following conditions:
|
|
10
|
-
*
|
|
11
|
-
* The above copyright notice and this permission notice shall be included in
|
|
12
|
-
* all copies or substantial portions of the Software.
|
|
13
|
-
*
|
|
14
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL ANY
|
|
17
|
-
* DEVELOPER OR DISTRIBUTOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
18
|
-
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
19
|
-
* IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
#ifndef MULTIBOOT_HEADER
|
|
23
|
-
#define MULTIBOOT_HEADER 1
|
|
24
|
-
|
|
25
|
-
/* How many bytes from the start of the file we search for the header. */
|
|
26
|
-
#define MULTIBOOT_SEARCH 8192
|
|
27
|
-
#define MULTIBOOT_HEADER_ALIGN 4
|
|
28
|
-
|
|
29
|
-
/* The magic field should contain this. */
|
|
30
|
-
#define MULTIBOOT_HEADER_MAGIC 0x1BADB002
|
|
31
|
-
|
|
32
|
-
/* This should be in %eax. */
|
|
33
|
-
#define MULTIBOOT_BOOTLOADER_MAGIC 0x2BADB002
|
|
34
|
-
|
|
35
|
-
/* Alignment of multiboot modules. */
|
|
36
|
-
#define MULTIBOOT_MOD_ALIGN 0x00001000
|
|
37
|
-
|
|
38
|
-
/* Alignment of the multiboot info structure. */
|
|
39
|
-
#define MULTIBOOT_INFO_ALIGN 0x00000004
|
|
40
|
-
|
|
41
|
-
/* Flags set in the 'flags' member of the multiboot header. */
|
|
42
|
-
|
|
43
|
-
/* Align all boot modules on i386 page (4KB) boundaries. */
|
|
44
|
-
#define MULTIBOOT_PAGE_ALIGN 0x00000001
|
|
45
|
-
|
|
46
|
-
/* Must pass memory information to OS. */
|
|
47
|
-
#define MULTIBOOT_MEMORY_INFO 0x00000002
|
|
48
|
-
|
|
49
|
-
/* Must pass video information to OS. */
|
|
50
|
-
#define MULTIBOOT_VIDEO_MODE 0x00000004
|
|
51
|
-
|
|
52
|
-
/* This flag indicates the use of the address fields in the header. */
|
|
53
|
-
#define MULTIBOOT_AOUT_KLUDGE 0x00010000
|
|
54
|
-
|
|
55
|
-
/* Flags to be set in the 'flags' member of the multiboot info structure. */
|
|
56
|
-
|
|
57
|
-
/* is there basic lower/upper memory information? */
|
|
58
|
-
#define MULTIBOOT_INFO_MEMORY 0x00000001
|
|
59
|
-
/* is there a boot device set? */
|
|
60
|
-
#define MULTIBOOT_INFO_BOOTDEV 0x00000002
|
|
61
|
-
/* is the command-line defined? */
|
|
62
|
-
#define MULTIBOOT_INFO_CMDLINE 0x00000004
|
|
63
|
-
/* are there modules to do something with? */
|
|
64
|
-
#define MULTIBOOT_INFO_MODS 0x00000008
|
|
65
|
-
|
|
66
|
-
/* These next two are mutually exclusive */
|
|
67
|
-
|
|
68
|
-
/* is there a symbol table loaded? */
|
|
69
|
-
#define MULTIBOOT_INFO_AOUT_SYMS 0x00000010
|
|
70
|
-
/* is there an ELF section header table? */
|
|
71
|
-
#define MULTIBOOT_INFO_ELF_SHDR 0X00000020
|
|
72
|
-
|
|
73
|
-
/* is there a full memory map? */
|
|
74
|
-
#define MULTIBOOT_INFO_MEM_MAP 0x00000040
|
|
75
|
-
|
|
76
|
-
/* Is there drive info? */
|
|
77
|
-
#define MULTIBOOT_INFO_DRIVE_INFO 0x00000080
|
|
78
|
-
|
|
79
|
-
/* Is there a config table? */
|
|
80
|
-
#define MULTIBOOT_INFO_CONFIG_TABLE 0x00000100
|
|
81
|
-
|
|
82
|
-
/* Is there a boot loader name? */
|
|
83
|
-
#define MULTIBOOT_INFO_BOOT_LOADER_NAME 0x00000200
|
|
84
|
-
|
|
85
|
-
/* Is there a APM table? */
|
|
86
|
-
#define MULTIBOOT_INFO_APM_TABLE 0x00000400
|
|
87
|
-
|
|
88
|
-
/* Is there video information? */
|
|
89
|
-
#define MULTIBOOT_INFO_VBE_INFO 0x00000800
|
|
90
|
-
#define MULTIBOOT_INFO_FRAMEBUFFER_INFO 0x00001000
|
|
91
|
-
|
|
92
|
-
#ifndef ASM_FILE
|
|
93
|
-
|
|
94
|
-
typedef unsigned char multiboot_uint8_t;
|
|
95
|
-
typedef unsigned short multiboot_uint16_t;
|
|
96
|
-
typedef unsigned int multiboot_uint32_t;
|
|
97
|
-
typedef unsigned long long multiboot_uint64_t;
|
|
98
|
-
|
|
99
|
-
struct multiboot_header
|
|
100
|
-
{
|
|
101
|
-
/* Must be MULTIBOOT_MAGIC - see above. */
|
|
102
|
-
multiboot_uint32_t magic;
|
|
103
|
-
|
|
104
|
-
/* Feature flags. */
|
|
105
|
-
multiboot_uint32_t flags;
|
|
106
|
-
|
|
107
|
-
/* The above fields plus this one must equal 0 mod 2^32. */
|
|
108
|
-
multiboot_uint32_t checksum;
|
|
109
|
-
|
|
110
|
-
/* These are only valid if MULTIBOOT_AOUT_KLUDGE is set. */
|
|
111
|
-
multiboot_uint32_t header_addr;
|
|
112
|
-
multiboot_uint32_t load_addr;
|
|
113
|
-
multiboot_uint32_t load_end_addr;
|
|
114
|
-
multiboot_uint32_t bss_end_addr;
|
|
115
|
-
multiboot_uint32_t entry_addr;
|
|
116
|
-
|
|
117
|
-
/* These are only valid if MULTIBOOT_VIDEO_MODE is set. */
|
|
118
|
-
multiboot_uint32_t mode_type;
|
|
119
|
-
multiboot_uint32_t width;
|
|
120
|
-
multiboot_uint32_t height;
|
|
121
|
-
multiboot_uint32_t depth;
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
/* The symbol table for a.out. */
|
|
125
|
-
struct multiboot_aout_symbol_table
|
|
126
|
-
{
|
|
127
|
-
multiboot_uint32_t tabsize;
|
|
128
|
-
multiboot_uint32_t strsize;
|
|
129
|
-
multiboot_uint32_t addr;
|
|
130
|
-
multiboot_uint32_t reserved;
|
|
131
|
-
};
|
|
132
|
-
typedef struct multiboot_aout_symbol_table multiboot_aout_symbol_table_t;
|
|
133
|
-
|
|
134
|
-
/* The section header table for ELF. */
|
|
135
|
-
struct multiboot_elf_section_header_table
|
|
136
|
-
{
|
|
137
|
-
multiboot_uint32_t num;
|
|
138
|
-
multiboot_uint32_t size;
|
|
139
|
-
multiboot_uint32_t addr;
|
|
140
|
-
multiboot_uint32_t shndx;
|
|
141
|
-
};
|
|
142
|
-
typedef struct multiboot_elf_section_header_table multiboot_elf_section_header_table_t;
|
|
143
|
-
|
|
144
|
-
struct multiboot_info
|
|
145
|
-
{
|
|
146
|
-
/* Multiboot info version number */
|
|
147
|
-
multiboot_uint32_t flags;
|
|
148
|
-
|
|
149
|
-
/* Available memory from BIOS */
|
|
150
|
-
multiboot_uint32_t mem_lower;
|
|
151
|
-
multiboot_uint32_t mem_upper;
|
|
152
|
-
|
|
153
|
-
/* "root" partition */
|
|
154
|
-
multiboot_uint32_t boot_device;
|
|
155
|
-
|
|
156
|
-
/* Kernel command line */
|
|
157
|
-
multiboot_uint32_t cmdline;
|
|
158
|
-
|
|
159
|
-
/* Boot-Module list */
|
|
160
|
-
multiboot_uint32_t mods_count;
|
|
161
|
-
multiboot_uint32_t mods_addr;
|
|
162
|
-
|
|
163
|
-
union
|
|
164
|
-
{
|
|
165
|
-
multiboot_aout_symbol_table_t aout_sym;
|
|
166
|
-
multiboot_elf_section_header_table_t elf_sec;
|
|
167
|
-
} u;
|
|
168
|
-
|
|
169
|
-
/* Memory Mapping buffer */
|
|
170
|
-
multiboot_uint32_t mmap_length;
|
|
171
|
-
multiboot_uint32_t mmap_addr;
|
|
172
|
-
|
|
173
|
-
/* Drive Info buffer */
|
|
174
|
-
multiboot_uint32_t drives_length;
|
|
175
|
-
multiboot_uint32_t drives_addr;
|
|
176
|
-
|
|
177
|
-
/* ROM configuration table */
|
|
178
|
-
multiboot_uint32_t config_table;
|
|
179
|
-
|
|
180
|
-
/* Boot Loader Name */
|
|
181
|
-
multiboot_uint32_t boot_loader_name;
|
|
182
|
-
|
|
183
|
-
/* APM table */
|
|
184
|
-
multiboot_uint32_t apm_table;
|
|
185
|
-
|
|
186
|
-
/* Video */
|
|
187
|
-
multiboot_uint32_t vbe_control_info;
|
|
188
|
-
multiboot_uint32_t vbe_mode_info;
|
|
189
|
-
multiboot_uint16_t vbe_mode;
|
|
190
|
-
multiboot_uint16_t vbe_interface_seg;
|
|
191
|
-
multiboot_uint16_t vbe_interface_off;
|
|
192
|
-
multiboot_uint16_t vbe_interface_len;
|
|
193
|
-
|
|
194
|
-
multiboot_uint64_t framebuffer_addr;
|
|
195
|
-
multiboot_uint32_t framebuffer_pitch;
|
|
196
|
-
multiboot_uint32_t framebuffer_width;
|
|
197
|
-
multiboot_uint32_t framebuffer_height;
|
|
198
|
-
multiboot_uint8_t framebuffer_bpp;
|
|
199
|
-
#define MULTIBOOT_FRAMEBUFFER_TYPE_INDEXED 0
|
|
200
|
-
#define MULTIBOOT_FRAMEBUFFER_TYPE_RGB 1
|
|
201
|
-
#define MULTIBOOT_FRAMEBUFFER_TYPE_EGA_TEXT 2
|
|
202
|
-
multiboot_uint8_t framebuffer_type;
|
|
203
|
-
union
|
|
204
|
-
{
|
|
205
|
-
struct
|
|
206
|
-
{
|
|
207
|
-
multiboot_uint32_t framebuffer_palette_addr;
|
|
208
|
-
multiboot_uint16_t framebuffer_palette_num_colors;
|
|
209
|
-
};
|
|
210
|
-
struct
|
|
211
|
-
{
|
|
212
|
-
multiboot_uint8_t framebuffer_red_field_position;
|
|
213
|
-
multiboot_uint8_t framebuffer_red_mask_size;
|
|
214
|
-
multiboot_uint8_t framebuffer_green_field_position;
|
|
215
|
-
multiboot_uint8_t framebuffer_green_mask_size;
|
|
216
|
-
multiboot_uint8_t framebuffer_blue_field_position;
|
|
217
|
-
multiboot_uint8_t framebuffer_blue_mask_size;
|
|
218
|
-
};
|
|
219
|
-
};
|
|
220
|
-
};
|
|
221
|
-
typedef struct multiboot_info multiboot_info_t;
|
|
222
|
-
|
|
223
|
-
struct multiboot_color
|
|
224
|
-
{
|
|
225
|
-
multiboot_uint8_t red;
|
|
226
|
-
multiboot_uint8_t green;
|
|
227
|
-
multiboot_uint8_t blue;
|
|
228
|
-
};
|
|
229
|
-
|
|
230
|
-
struct multiboot_mmap_entry
|
|
231
|
-
{
|
|
232
|
-
multiboot_uint32_t size;
|
|
233
|
-
multiboot_uint64_t addr;
|
|
234
|
-
multiboot_uint64_t len;
|
|
235
|
-
#define MULTIBOOT_MEMORY_AVAILABLE 1
|
|
236
|
-
#define MULTIBOOT_MEMORY_RESERVED 2
|
|
237
|
-
#define MULTIBOOT_MEMORY_ACPI_RECLAIMABLE 3
|
|
238
|
-
#define MULTIBOOT_MEMORY_NVS 4
|
|
239
|
-
#define MULTIBOOT_MEMORY_BADRAM 5
|
|
240
|
-
multiboot_uint32_t type;
|
|
241
|
-
} __attribute__((packed));
|
|
242
|
-
typedef struct multiboot_mmap_entry multiboot_memory_map_t;
|
|
243
|
-
|
|
244
|
-
struct multiboot_mod_list
|
|
245
|
-
{
|
|
246
|
-
/* the memory used goes from bytes 'mod_start' to 'mod_end-1' inclusive */
|
|
247
|
-
multiboot_uint32_t mod_start;
|
|
248
|
-
multiboot_uint32_t mod_end;
|
|
249
|
-
|
|
250
|
-
/* Module command line */
|
|
251
|
-
multiboot_uint32_t cmdline;
|
|
252
|
-
|
|
253
|
-
/* padding to take it to 16 bytes (must be zero) */
|
|
254
|
-
multiboot_uint32_t pad;
|
|
255
|
-
};
|
|
256
|
-
typedef struct multiboot_mod_list multiboot_module_t;
|
|
257
|
-
|
|
258
|
-
#endif /* ! ASM_FILE */
|
|
259
|
-
|
|
260
|
-
#endif /* ! MULTIBOOT_HEADER */
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
#ifndef __OPTIONROMS_H
|
|
2
|
-
#define __OPTIONROMS_H
|
|
3
|
-
|
|
4
|
-
#include "types.h" // u32
|
|
5
|
-
|
|
6
|
-
#define OPTION_ROM_SIGNATURE 0xaa55
|
|
7
|
-
|
|
8
|
-
struct rom_header {
|
|
9
|
-
u16 signature;
|
|
10
|
-
u8 size;
|
|
11
|
-
u8 initVector[4];
|
|
12
|
-
u8 reserved[17];
|
|
13
|
-
u16 pcioffset;
|
|
14
|
-
u16 pnpoffset;
|
|
15
|
-
} PACKED;
|
|
16
|
-
|
|
17
|
-
#define PCI_ROM_SIGNATURE 0x52494350 // "PCIR"
|
|
18
|
-
|
|
19
|
-
struct pci_data {
|
|
20
|
-
u32 signature;
|
|
21
|
-
u16 vendor;
|
|
22
|
-
u16 device;
|
|
23
|
-
u16 vitaldata;
|
|
24
|
-
u16 dlen;
|
|
25
|
-
u8 drevision;
|
|
26
|
-
u8 class_lo;
|
|
27
|
-
u16 class_hi;
|
|
28
|
-
u16 ilen;
|
|
29
|
-
u16 irevision;
|
|
30
|
-
u8 type;
|
|
31
|
-
u8 indicator;
|
|
32
|
-
u16 reserved;
|
|
33
|
-
} PACKED;
|
|
34
|
-
|
|
35
|
-
struct pnp_data {
|
|
36
|
-
u32 signature;
|
|
37
|
-
u8 revision;
|
|
38
|
-
u8 len;
|
|
39
|
-
u16 nextoffset;
|
|
40
|
-
u8 reserved_08;
|
|
41
|
-
u8 checksum;
|
|
42
|
-
u32 devid;
|
|
43
|
-
u16 manufacturer;
|
|
44
|
-
u16 productname;
|
|
45
|
-
u8 type_lo;
|
|
46
|
-
u16 type_hi;
|
|
47
|
-
u8 dev_flags;
|
|
48
|
-
u16 bcv;
|
|
49
|
-
u16 dv;
|
|
50
|
-
u16 bev;
|
|
51
|
-
u16 reserved_1c;
|
|
52
|
-
u16 staticresource;
|
|
53
|
-
} PACKED;
|
|
54
|
-
|
|
55
|
-
#define OPTION_ROM_ALIGN 2048
|
|
56
|
-
#define OPTION_ROM_INITVECTOR offsetof(struct rom_header, initVector[0])
|
|
57
|
-
#define PCIROM_CODETYPE_X86 0
|
|
58
|
-
|
|
59
|
-
#endif
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
#ifndef __PIRTABLE_H
|
|
2
|
-
#define __PIRTABLE_H
|
|
3
|
-
|
|
4
|
-
#include "types.h" // u32
|
|
5
|
-
|
|
6
|
-
struct link_info {
|
|
7
|
-
u8 link;
|
|
8
|
-
u16 bitmap;
|
|
9
|
-
} PACKED;
|
|
10
|
-
|
|
11
|
-
struct pir_slot {
|
|
12
|
-
u8 bus;
|
|
13
|
-
u8 dev;
|
|
14
|
-
struct link_info links[4];
|
|
15
|
-
u8 slot_nr;
|
|
16
|
-
u8 reserved;
|
|
17
|
-
} PACKED;
|
|
18
|
-
|
|
19
|
-
struct pir_header {
|
|
20
|
-
u32 signature;
|
|
21
|
-
u16 version;
|
|
22
|
-
u16 size;
|
|
23
|
-
u8 router_bus;
|
|
24
|
-
u8 router_devfunc;
|
|
25
|
-
u16 exclusive_irqs;
|
|
26
|
-
u32 compatible_devid;
|
|
27
|
-
u32 miniport_data;
|
|
28
|
-
u8 reserved[11];
|
|
29
|
-
u8 checksum;
|
|
30
|
-
struct pir_slot slots[0];
|
|
31
|
-
} PACKED;
|
|
32
|
-
|
|
33
|
-
#define PIR_SIGNATURE 0x52495024 // $PIR
|
|
34
|
-
|
|
35
|
-
#endif // pirtable.h
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
#ifndef __PMM_H
|
|
2
|
-
#define __PMM_H
|
|
3
|
-
|
|
4
|
-
#include "types.h" // u32
|
|
5
|
-
|
|
6
|
-
#define PMM_SIGNATURE 0x4d4d5024 // $PMM
|
|
7
|
-
|
|
8
|
-
struct pmmheader {
|
|
9
|
-
u32 signature;
|
|
10
|
-
u8 version;
|
|
11
|
-
u8 length;
|
|
12
|
-
u8 checksum;
|
|
13
|
-
struct segoff_s entry;
|
|
14
|
-
u8 reserved[5];
|
|
15
|
-
} PACKED;
|
|
16
|
-
|
|
17
|
-
#define PMM_FUNCTION_NOT_SUPPORTED 0xffffffff
|
|
18
|
-
|
|
19
|
-
#endif // pmm.h
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
#ifndef __PNPHEADER_H
|
|
2
|
-
#define __PNPHEADER_H
|
|
3
|
-
|
|
4
|
-
#define PNP_SIGNATURE 0x506e5024 // $PnP
|
|
5
|
-
|
|
6
|
-
struct pnpheader {
|
|
7
|
-
u32 signature;
|
|
8
|
-
u8 version;
|
|
9
|
-
u8 length;
|
|
10
|
-
u16 control;
|
|
11
|
-
u8 checksum;
|
|
12
|
-
u32 eventloc;
|
|
13
|
-
u16 real_ip;
|
|
14
|
-
u16 real_cs;
|
|
15
|
-
u16 prot_ip;
|
|
16
|
-
u32 prot_base;
|
|
17
|
-
u32 oemid;
|
|
18
|
-
u16 real_ds;
|
|
19
|
-
u32 prot_database;
|
|
20
|
-
} PACKED;
|
|
21
|
-
|
|
22
|
-
#define FUNCTION_NOT_SUPPORTED 0x82
|
|
23
|
-
|
|
24
|
-
#endif // pnpheader.h
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
#ifndef __SMBIOS_H
|
|
2
|
-
#define __SMBIOS_H
|
|
3
|
-
|
|
4
|
-
#include "types.h" // u32
|
|
5
|
-
|
|
6
|
-
#define SMBIOS_SIGNATURE 0x5f4d535f // "_SM_"
|
|
7
|
-
|
|
8
|
-
/* SMBIOS entry point -- must be written to a 16-bit aligned address
|
|
9
|
-
between 0xf0000 and 0xfffff.
|
|
10
|
-
*/
|
|
11
|
-
struct smbios_entry_point {
|
|
12
|
-
u32 signature;
|
|
13
|
-
u8 checksum;
|
|
14
|
-
u8 length;
|
|
15
|
-
u8 smbios_major_version;
|
|
16
|
-
u8 smbios_minor_version;
|
|
17
|
-
u16 max_structure_size;
|
|
18
|
-
u8 entry_point_revision;
|
|
19
|
-
u8 formatted_area[5];
|
|
20
|
-
char intermediate_anchor_string[5];
|
|
21
|
-
u8 intermediate_checksum;
|
|
22
|
-
u16 structure_table_length;
|
|
23
|
-
u32 structure_table_address;
|
|
24
|
-
u16 number_of_structures;
|
|
25
|
-
u8 smbios_bcd_revision;
|
|
26
|
-
} PACKED;
|
|
27
|
-
|
|
28
|
-
/* This goes at the beginning of every SMBIOS structure. */
|
|
29
|
-
struct smbios_structure_header {
|
|
30
|
-
u8 type;
|
|
31
|
-
u8 length;
|
|
32
|
-
u16 handle;
|
|
33
|
-
} PACKED;
|
|
34
|
-
|
|
35
|
-
/* SMBIOS type 0 - BIOS Information */
|
|
36
|
-
struct smbios_type_0 {
|
|
37
|
-
struct smbios_structure_header header;
|
|
38
|
-
u8 vendor_str;
|
|
39
|
-
u8 bios_version_str;
|
|
40
|
-
u16 bios_starting_address_segment;
|
|
41
|
-
u8 bios_release_date_str;
|
|
42
|
-
u8 bios_rom_size;
|
|
43
|
-
u8 bios_characteristics[8];
|
|
44
|
-
u8 bios_characteristics_extension_bytes[2];
|
|
45
|
-
u8 system_bios_major_release;
|
|
46
|
-
u8 system_bios_minor_release;
|
|
47
|
-
u8 embedded_controller_major_release;
|
|
48
|
-
u8 embedded_controller_minor_release;
|
|
49
|
-
} PACKED;
|
|
50
|
-
|
|
51
|
-
/* SMBIOS type 1 - System Information */
|
|
52
|
-
struct smbios_type_1 {
|
|
53
|
-
struct smbios_structure_header header;
|
|
54
|
-
u8 manufacturer_str;
|
|
55
|
-
u8 product_name_str;
|
|
56
|
-
u8 version_str;
|
|
57
|
-
u8 serial_number_str;
|
|
58
|
-
u8 uuid[16];
|
|
59
|
-
u8 wake_up_type;
|
|
60
|
-
u8 sku_number_str;
|
|
61
|
-
u8 family_str;
|
|
62
|
-
} PACKED;
|
|
63
|
-
|
|
64
|
-
/* SMBIOS type 3 - System Enclosure (v2.3) */
|
|
65
|
-
struct smbios_type_3 {
|
|
66
|
-
struct smbios_structure_header header;
|
|
67
|
-
u8 manufacturer_str;
|
|
68
|
-
u8 type;
|
|
69
|
-
u8 version_str;
|
|
70
|
-
u8 serial_number_str;
|
|
71
|
-
u8 asset_tag_number_str;
|
|
72
|
-
u8 boot_up_state;
|
|
73
|
-
u8 power_supply_state;
|
|
74
|
-
u8 thermal_state;
|
|
75
|
-
u8 security_status;
|
|
76
|
-
u32 oem_defined;
|
|
77
|
-
u8 height;
|
|
78
|
-
u8 number_of_power_cords;
|
|
79
|
-
u8 contained_element_count;
|
|
80
|
-
// contained elements follow
|
|
81
|
-
} PACKED;
|
|
82
|
-
|
|
83
|
-
/* SMBIOS type 4 - Processor Information (v2.0) */
|
|
84
|
-
struct smbios_type_4 {
|
|
85
|
-
struct smbios_structure_header header;
|
|
86
|
-
u8 socket_designation_str;
|
|
87
|
-
u8 processor_type;
|
|
88
|
-
u8 processor_family;
|
|
89
|
-
u8 processor_manufacturer_str;
|
|
90
|
-
u32 processor_id[2];
|
|
91
|
-
u8 processor_version_str;
|
|
92
|
-
u8 voltage;
|
|
93
|
-
u16 external_clock;
|
|
94
|
-
u16 max_speed;
|
|
95
|
-
u16 current_speed;
|
|
96
|
-
u8 status;
|
|
97
|
-
u8 processor_upgrade;
|
|
98
|
-
u16 l1_cache_handle;
|
|
99
|
-
u16 l2_cache_handle;
|
|
100
|
-
u16 l3_cache_handle;
|
|
101
|
-
} PACKED;
|
|
102
|
-
|
|
103
|
-
/* SMBIOS type 16 - Physical Memory Array
|
|
104
|
-
* Associated with one type 17 (Memory Device).
|
|
105
|
-
*/
|
|
106
|
-
struct smbios_type_16 {
|
|
107
|
-
struct smbios_structure_header header;
|
|
108
|
-
u8 location;
|
|
109
|
-
u8 use;
|
|
110
|
-
u8 error_correction;
|
|
111
|
-
u32 maximum_capacity;
|
|
112
|
-
u16 memory_error_information_handle;
|
|
113
|
-
u16 number_of_memory_devices;
|
|
114
|
-
} PACKED;
|
|
115
|
-
|
|
116
|
-
/* SMBIOS type 17 - Memory Device
|
|
117
|
-
* Associated with one type 19
|
|
118
|
-
*/
|
|
119
|
-
struct smbios_type_17 {
|
|
120
|
-
struct smbios_structure_header header;
|
|
121
|
-
u16 physical_memory_array_handle;
|
|
122
|
-
u16 memory_error_information_handle;
|
|
123
|
-
u16 total_width;
|
|
124
|
-
u16 data_width;
|
|
125
|
-
u16 size;
|
|
126
|
-
u8 form_factor;
|
|
127
|
-
u8 device_set;
|
|
128
|
-
u8 device_locator_str;
|
|
129
|
-
u8 bank_locator_str;
|
|
130
|
-
u8 memory_type;
|
|
131
|
-
u16 type_detail;
|
|
132
|
-
} PACKED;
|
|
133
|
-
|
|
134
|
-
/* SMBIOS type 19 - Memory Array Mapped Address */
|
|
135
|
-
struct smbios_type_19 {
|
|
136
|
-
struct smbios_structure_header header;
|
|
137
|
-
u32 starting_address;
|
|
138
|
-
u32 ending_address;
|
|
139
|
-
u16 memory_array_handle;
|
|
140
|
-
u8 partition_width;
|
|
141
|
-
} PACKED;
|
|
142
|
-
|
|
143
|
-
/* SMBIOS type 20 - Memory Device Mapped Address */
|
|
144
|
-
struct smbios_type_20 {
|
|
145
|
-
struct smbios_structure_header header;
|
|
146
|
-
u32 starting_address;
|
|
147
|
-
u32 ending_address;
|
|
148
|
-
u16 memory_device_handle;
|
|
149
|
-
u16 memory_array_mapped_address_handle;
|
|
150
|
-
u8 partition_row_position;
|
|
151
|
-
u8 interleave_position;
|
|
152
|
-
u8 interleaved_data_depth;
|
|
153
|
-
} PACKED;
|
|
154
|
-
|
|
155
|
-
/* SMBIOS type 32 - System Boot Information */
|
|
156
|
-
struct smbios_type_32 {
|
|
157
|
-
struct smbios_structure_header header;
|
|
158
|
-
u8 reserved[6];
|
|
159
|
-
u8 boot_status;
|
|
160
|
-
} PACKED;
|
|
161
|
-
|
|
162
|
-
/* SMBIOS type 127 -- End-of-table */
|
|
163
|
-
struct smbios_type_127 {
|
|
164
|
-
struct smbios_structure_header header;
|
|
165
|
-
} PACKED;
|
|
166
|
-
|
|
167
|
-
#endif // smbios.h
|