- Timestamp:
- Oct 25, 2017 1:38:41 PM (7 years ago)
- Location:
- trunk/src/VBox/Devices/PC/BIOS
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS/apm_pm.asm
r62509 r69300 1 ;; 2 ;; Copyright (C) 2006-2016 Oracle Corporation 3 ;; 4 ;; This file is part of VirtualBox Open Source Edition (OSE), as 5 ;; available from http://www.virtualbox.org. This file is free software; 6 ;; you can redistribute it and/or modify it under the terms of the GNU 7 ;; General Public License (GPL) as published by the Free Software 8 ;; Foundation, in version 2 as it comes in the "COPYING" file of the 9 ;; VirtualBox OSE distribution. VirtualBox OSE is distributed in the 10 ;; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 11 ;; 12 ;; -------------------------------------------------------------------- 13 ;; 14 ;; Protected-mode APM implementation. 15 ;; 1 ; $Id: 2 ;; @file 3 ; Protected-mode APM implementation. 4 ; 5 6 ; 7 ; Copyright (C) 2006-2016 Oracle Corporation 8 ; 9 ; This file is part of VirtualBox Open Source Edition (OSE), as 10 ; available from http://www.virtualbox.org. This file is free software; 11 ; you can redistribute it and/or modify it under the terms of the GNU 12 ; General Public License (GPL) as published by the Free Software 13 ; Foundation, in version 2 as it comes in the "COPYING" file of the 14 ; VirtualBox OSE distribution. VirtualBox OSE is distributed in the 15 ; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 16 ; 16 17 17 18 … … 134 135 135 136 mov ah, 2 ; mark as originating in 16-bit PM 136 137 137 138 ; fall through 138 139 -
trunk/src/VBox/Devices/PC/BIOS/orgs.asm
r69025 r69300 1 ;; 2 ;; Copyright (C) 2006-2017 Oracle Corporation 3 ;; 4 ;; This file is part of VirtualBox Open Source Edition (OSE), as 5 ;; available from http://www.virtualbox.org. This file is free software; 6 ;; you can redistribute it and/or modify it under the terms of the GNU 7 ;; General Public License (GPL) as published by the Free Software 8 ;; Foundation, in version 2 as it comes in the "COPYING" file of the 9 ;; VirtualBox OSE distribution. VirtualBox OSE is distributed in the 10 ;; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 11 ;; -------------------------------------------------------------------- 12 ;; 13 ;; This code is based on: 14 ;; 15 ;; ROM BIOS for use with Bochs/Plex86/QEMU emulation environment 16 ;; 17 ;; Copyright (C) 2002 MandrakeSoft S.A. 18 ;; 19 ;; MandrakeSoft S.A. 20 ;; 43, rue d'Aboukir 21 ;; 75002 Paris - France 22 ;; http://www.linux-mandrake.com/ 23 ;; http://www.mandrakesoft.com/ 24 ;; 25 ;; This library is free software; you can redistribute it and/or 26 ;; modify it under the terms of the GNU Lesser General Public 27 ;; License as published by the Free Software Foundation; either 28 ;; version 2 of the License, or (at your option) any later version. 29 ;; 30 ;; This library is distributed in the hope that it will be useful, 31 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of 32 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 33 ;; Lesser General Public License for more details. 34 ;; 35 ;; You should have received a copy of the GNU Lesser General Public 36 ;; License along with this library; if not, write to the Free Software 37 ;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 38 ;; 39 ;; 1 ; $Id$ 2 ;; @file 3 ; ??? 4 ; 5 6 ; 7 ; Copyright (C) 2006-2017 Oracle Corporation 8 ; 9 ; This file is part of VirtualBox Open Source Edition (OSE), as 10 ; available from http://www.virtualbox.org. This file is free software; 11 ; you can redistribute it and/or modify it under the terms of the GNU 12 ; General Public License (GPL) as published by the Free Software 13 ; Foundation, in version 2 as it comes in the "COPYING" file of the 14 ; VirtualBox OSE distribution. VirtualBox OSE is distributed in the 15 ; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 16 ; -------------------------------------------------------------------- 17 ; 18 ; This code is based on: 19 ; 20 ; ROM BIOS for use with Bochs/Plex86/QEMU emulation environment 21 ; 22 ; Copyright (C) 2002 MandrakeSoft S.A. 23 ; 24 ; MandrakeSoft S.A. 25 ; 43, rue d'Aboukir 26 ; 75002 Paris - France 27 ; http://www.linux-mandrake.com/ 28 ; http://www.mandrakesoft.com/ 29 ; 30 ; This library is free software; you can redistribute it and/or 31 ; modify it under the terms of the GNU Lesser General Public 32 ; License as published by the Free Software Foundation; either 33 ; version 2 of the License, or (at your option) any later version. 34 ; 35 ; This library is distributed in the hope that it will be useful, 36 ; but WITHOUT ANY WARRANTY; without even the implied warranty of 37 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 38 ; Lesser General Public License for more details. 39 ; 40 ; You should have received a copy of the GNU Lesser General Public 41 ; License along with this library; if not, write to the Free Software 42 ; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 43 ; 40 44 41 45 ; Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice … … 279 283 out 92h, al 280 284 jmp $ ; not strictly necessary in a VM 281 282 285 286 283 287 in_real_mode: 284 288 ;; read the CMOS shutdown status … … 323 327 cmp al, 0Ah 324 328 jz check_shutdown 325 329 326 330 xor al, al 327 331 … … 347 351 jne check_next_std 348 352 jmp return_blkmove 349 check_next_std: 353 check_next_std: 350 354 351 355 ;; 05h = EOI + jump through 40:67 … … 426 430 mov cx, 10h 427 431 call set_int_vects 428 432 429 433 ;; base memory in K to 40:13 430 434 mov ax, BASE_MEM_IN_K … … 638 642 mov dx, 0F000h 639 643 call rom_scan_ 640 644 641 645 if VBOX_BIOS_CPU ge 80386 642 646 ;; The POST code does not bother preserving high bits of the … … 652 656 653 657 call _print_bios_banner 654 658 655 659 ;; El Torito floppy/hard disk emulation 656 660 call _cdemu_init … … 666 670 cli 667 671 hlt 668 672 669 673 670 674 ;; … … 1698 1702 cmp ah, 87h 1699 1703 jne not_blkmove 1700 1704 1701 1705 ;; INT 15h/87h has semi-public interface because software 1702 1706 ;; may use CMOS shutdown status code 9 for its own purposes. -
trunk/src/VBox/Devices/PC/BIOS/pcibio32.asm
r62509 r69300 1 ;; 2 ;; Copyright (C) 2006-2016 Oracle Corporation 3 ;; 4 ;; This file is part of VirtualBox Open Source Edition (OSE), as 5 ;; available from http://www.virtualbox.org. This file is free software; 6 ;; you can redistribute it and/or modify it under the terms of the GNU 7 ;; General Public License (GPL) as published by the Free Software 8 ;; Foundation, in version 2 as it comes in the "COPYING" file of the 9 ;; VirtualBox OSE distribution. VirtualBox OSE is distributed in the 10 ;; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 11 ;; 12 ;; -------------------------------------------------------------------- 1 ; $Id$ 2 ;; @file 3 ; BIOS32 service directory and 32-bit PCI BIOS entry point 4 ; 13 5 6 ; 7 ; Copyright (C) 2006-2016 Oracle Corporation 8 ; 9 ; This file is part of VirtualBox Open Source Edition (OSE), as 10 ; available from http://www.virtualbox.org. This file is free software; 11 ; you can redistribute it and/or modify it under the terms of the GNU 12 ; General Public License (GPL) as published by the Free Software 13 ; Foundation, in version 2 as it comes in the "COPYING" file of the 14 ; VirtualBox OSE distribution. VirtualBox OSE is distributed in the 15 ; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 16 ; 17 ; -------------------------------------------------------------------- 14 18 15 ; BIOS32 service directory and 32-bit PCI BIOS entry point16 19 17 20 ; Public symbols for debugging only … … 94 97 95 98 end 99 -
trunk/src/VBox/Devices/PC/BIOS/pcibios.inc
r67668 r69300 1 ;; 2 ;; Copyright (C) 2006-2015 Oracle Corporation 3 ;; 4 ;; This file is part of VirtualBox Open Source Edition (OSE), as 5 ;; available from http://www.virtualbox.org. This file is free software; 6 ;; you can redistribute it and/or modify it under the terms of the GNU 7 ;; General Public License (GPL) as published by the Free Software 8 ;; Foundation, in version 2 as it comes in the "COPYING" file of the 9 ;; VirtualBox OSE distribution. VirtualBox OSE is distributed in the 10 ;; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 11 ;; -------------------------------------------------------------------- 12 ;; 13 ;; This code is based on: 14 ;; 15 ;; ROM BIOS for use with Bochs/Plex86/QEMU emulation environment 16 ;; 17 ;; Copyright (C) 2002 MandrakeSoft S.A. 18 ;; 19 ;; MandrakeSoft S.A. 20 ;; 43, rue d'Aboukir 21 ;; 75002 Paris - France 22 ;; http://www.linux-mandrake.com/ 23 ;; http://www.mandrakesoft.com/ 24 ;; 25 ;; This library is free software; you can redistribute it and/or 26 ;; modify it under the terms of the GNU Lesser General Public 27 ;; License as published by the Free Software Foundation; either 28 ;; version 2 of the License, or (at your option) any later version. 29 ;; 30 ;; This library is distributed in the hope that it will be useful, 31 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of 32 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 33 ;; Lesser General Public License for more details. 34 ;; 35 ;; You should have received a copy of the GNU Lesser General Public 36 ;; License along with this library; if not, write to the Free Software 37 ;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 38 ;; 39 ;; 40 1 ; $Id$ 2 ;; @file 3 ; ??? 4 ; 5 6 ; 7 ; Copyright (C) 2006-2015 Oracle Corporation 8 ; 9 ; This file is part of VirtualBox Open Source Edition (OSE), as 10 ; available from http://www.virtualbox.org. This file is free software; 11 ; you can redistribute it and/or modify it under the terms of the GNU 12 ; General Public License (GPL) as published by the Free Software 13 ; Foundation, in version 2 as it comes in the "COPYING" file of the 14 ; VirtualBox OSE distribution. VirtualBox OSE is distributed in the 15 ; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 16 ; -------------------------------------------------------------------- 17 ; 18 ; This code is based on: 19 ; 20 ; ROM BIOS for use with Bochs/Plex86/QEMU emulation environment 21 ; 22 ; Copyright (C) 2002 MandrakeSoft S.A. 23 ; 24 ; MandrakeSoft S.A. 25 ; 43, rue d'Aboukir 26 ; 75002 Paris - France 27 ; http://www.linux-mandrake.com/ 28 ; http://www.mandrakesoft.com/ 29 ; 30 ; This library is free software; you can redistribute it and/or 31 ; modify it under the terms of the GNU Lesser General Public 32 ; License as published by the Free Software Foundation; either 33 ; version 2 of the License, or (at your option) any later version. 34 ; 35 ; This library is distributed in the hope that it will be useful, 36 ; but WITHOUT ANY WARRANTY; without even the implied warranty of 37 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 38 ; Lesser General Public License for more details. 39 ; 40 ; You should have received a copy of the GNU Lesser General Public 41 ; License along with this library; if not, write to the Free Software 42 ; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 43 ; 41 44 42 45 ; Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice … … 46 49 ; that LGPLv2 or any later version may be used, or where a choice of which version 47 50 ; of the LGPL is applied is otherwise unspecified. 51 48 52 49 53 include pcicfg.inc … … 79 83 if not BX_ROMBIOS32 80 84 pci_irq_list: 81 db 11, 10, 9, 11 85 db 11, 10, 9, 11 82 86 83 87 pcibios_init_sel_reg: … … 97 101 mov bp, sp 98 102 ifdef VBOX 99 mov eax,19200509 103 mov eax,19200509 100 104 mov dx,410h 101 105 out dx, eax … … 205 209 add dx, 18h ; reset register if PCNet is in word I/O mode 206 210 in eax, dx ; reset is performed by reading the reset register 207 endif ; VBOX 211 endif ; VBOX 208 212 next_pci_dev: 209 213 mov byte ptr[bp-8], 10h -
trunk/src/VBox/Devices/PC/BIOS/pirq.inc
r67667 r69300 1 ;; 2 ;; Copyright (C) 2006-2015 Oracle Corporation 3 ;; 4 ;; This file is part of VirtualBox Open Source Edition (OSE), as 5 ;; available from http://www.virtualbox.org. This file is free software; 6 ;; you can redistribute it and/or modify it under the terms of the GNU 7 ;; General Public License (GPL) as published by the Free Software 8 ;; Foundation, in version 2 as it comes in the "COPYING" file of the 9 ;; VirtualBox OSE distribution. VirtualBox OSE is distributed in the 10 ;; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 11 ;; -------------------------------------------------------------------- 12 ;; 13 ;; This code is based on: 14 ;; 15 ;; ROM BIOS for use with Bochs/Plex86/QEMU emulation environment 16 ;; 17 ;; Copyright (C) 2002 MandrakeSoft S.A. 18 ;; 19 ;; MandrakeSoft S.A. 20 ;; 43, rue d'Aboukir 21 ;; 75002 Paris - France 22 ;; http://www.linux-mandrake.com/ 23 ;; http://www.mandrakesoft.com/ 24 ;; 25 ;; This library is free software; you can redistribute it and/or 26 ;; modify it under the terms of the GNU Lesser General Public 27 ;; License as published by the Free Software Foundation; either 28 ;; version 2 of the License, or (at your option) any later version. 29 ;; 30 ;; This library is distributed in the hope that it will be useful, 31 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of 32 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 33 ;; Lesser General Public License for more details. 34 ;; 35 ;; You should have received a copy of the GNU Lesser General Public 36 ;; License along with this library; if not, write to the Free Software 37 ;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 38 ;; 39 ;; 40 1 ; $Id$ 2 ;; @file 3 ; ??? 4 ; 5 6 ; 7 ; Copyright (C) 2006-2015 Oracle Corporation 8 ; 9 ; This file is part of VirtualBox Open Source Edition (OSE), as 10 ; available from http://www.virtualbox.org. This file is free software; 11 ; you can redistribute it and/or modify it under the terms of the GNU 12 ; General Public License (GPL) as published by the Free Software 13 ; Foundation, in version 2 as it comes in the "COPYING" file of the 14 ; VirtualBox OSE distribution. VirtualBox OSE is distributed in the 15 ; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 16 ; -------------------------------------------------------------------- 17 ; 18 ; This code is based on: 19 ; 20 ; ROM BIOS for use with Bochs/Plex86/QEMU emulation environment 21 ; 22 ; Copyright (C) 2002 MandrakeSoft S.A. 23 ; 24 ; MandrakeSoft S.A. 25 ; 43, rue d'Aboukir 26 ; 75002 Paris - France 27 ; http://www.linux-mandrake.com/ 28 ; http://www.mandrakesoft.com/ 29 ; 30 ; This library is free software; you can redistribute it and/or 31 ; modify it under the terms of the GNU Lesser General Public 32 ; License as published by the Free Software Foundation; either 33 ; version 2 of the License, or (at your option) any later version. 34 ; 35 ; This library is distributed in the hope that it will be useful, 36 ; but WITHOUT ANY WARRANTY; without even the implied warranty of 37 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 38 ; Lesser General Public License for more details. 39 ; 40 ; You should have received a copy of the GNU Lesser General Public 41 ; License along with this library; if not, write to the Free Software 42 ; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 43 ; 44 ; 41 45 42 46 ; Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice … … 46 50 ; that LGPLv2 or any later version may be used, or where a choice of which version 47 51 ; of the LGPL is applied is otherwise unspecified. 52 48 53 49 54 if BX_PCIBIOS -
trunk/src/VBox/Devices/PC/BIOS/pmode.inc
r60422 r69300 1 ; $Id$ 1 2 ;; @file 2 ; ;Enter and exit a minimal protected-mode environment.3 ; ;3 ; Enter and exit a minimal protected-mode environment. 4 ; 4 5 5 ; ;6 ; ;Copyright (C) 2004-2015 Oracle Corporation7 ; ;8 ; ;This file is part of VirtualBox Open Source Edition (OSE), as9 ; ;available from http://www.virtualbox.org. This file is free software;10 ; ;you can redistribute it and/or modify it under the terms of the GNU11 ; ;General Public License (GPL) as published by the Free Software12 ; ;Foundation, in version 2 as it comes in the "COPYING" file of the13 ; ;VirtualBox OSE distribution. VirtualBox OSE is distributed in the14 ; ;hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.15 ; ;6 ; 7 ; Copyright (C) 2004-2015 Oracle Corporation 8 ; 9 ; This file is part of VirtualBox Open Source Edition (OSE), as 10 ; available from http://www.virtualbox.org. This file is free software; 11 ; you can redistribute it and/or modify it under the terms of the GNU 12 ; General Public License (GPL) as published by the Free Software 13 ; Foundation, in version 2 as it comes in the "COPYING" file of the 14 ; VirtualBox OSE distribution. VirtualBox OSE is distributed in the 15 ; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 16 ; 16 17 17 18 ;; Caveats: May only be called from the F000 segment (16-bit). Does not … … 78 79 dw 0, 0, 0, 0 79 80 dw 0ffffh, 400h, 9300h, 0000h ; 16-bit data, base=0x40 81 -
trunk/src/VBox/Devices/PC/BIOS/pmsetup.inc
r60422 r69300 1 ; $Id$ 1 2 ;; @file 2 ; ;Initial system setup which needs to run in protected mode.3 ; ;3 ; Initial system setup which needs to run in protected mode. 4 ; 4 5 5 ; ;6 ; ;Copyright (C) 2004-2015 Oracle Corporation7 ; ;8 ; ;This file is part of VirtualBox Open Source Edition (OSE), as9 ; ;available from http://www.virtualbox.org. This file is free software;10 ; ;you can redistribute it and/or modify it under the terms of the GNU11 ; ;General Public License (GPL) as published by the Free Software12 ; ;Foundation, in version 2 as it comes in the "COPYING" file of the13 ; ;VirtualBox OSE distribution. VirtualBox OSE is distributed in the14 ; ;hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.15 ; ;6 ; 7 ; Copyright (C) 2004-2015 Oracle Corporation 8 ; 9 ; This file is part of VirtualBox Open Source Edition (OSE), as 10 ; available from http://www.virtualbox.org. This file is free software; 11 ; you can redistribute it and/or modify it under the terms of the GNU 12 ; General Public License (GPL) as published by the Free Software 13 ; Foundation, in version 2 as it comes in the "COPYING" file of the 14 ; VirtualBox OSE distribution. VirtualBox OSE is distributed in the 15 ; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 16 ; 16 17 17 18 SVR equ 0FEE000F0h … … 62 63 63 64 pmode_setup endp 65 -
trunk/src/VBox/Devices/PC/BIOS/smidmi.inc
r56292 r69300 1 ;; 2 ;; Copyright (C) 2006-2015 Oracle Corporation 3 ;; 4 ;; This file is part of VirtualBox Open Source Edition (OSE), as 5 ;; available from http://www.virtualbox.org. This file is free software; 6 ;; you can redistribute it and/or modify it under the terms of the GNU 7 ;; General Public License (GPL) as published by the Free Software 8 ;; Foundation, in version 2 as it comes in the "COPYING" file of the 9 ;; VirtualBox OSE distribution. VirtualBox OSE is distributed in the 10 ;; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 11 ;; -------------------------------------------------------------------- 12 ;; 13 ;; This code is based on: 14 ;; 15 ;; ROM BIOS for use with Bochs/Plex86/QEMU emulation environment 16 ;; 17 ;; Copyright (C) 2002 MandrakeSoft S.A. 18 ;; 19 ;; MandrakeSoft S.A. 20 ;; 43, rue d'Aboukir 21 ;; 75002 Paris - France 22 ;; http://www.linux-mandrake.com/ 23 ;; http://www.mandrakesoft.com/ 24 ;; 25 ;; This library is free software; you can redistribute it and/or 26 ;; modify it under the terms of the GNU Lesser General Public 27 ;; License as published by the Free Software Foundation; either 28 ;; version 2 of the License, or (at your option) any later version. 29 ;; 30 ;; This library is distributed in the hope that it will be useful, 31 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of 32 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 33 ;; Lesser General Public License for more details. 34 ;; 35 ;; You should have received a copy of the GNU Lesser General Public 36 ;; License along with this library; if not, write to the Free Software 37 ;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 38 ;; 39 ;; 40 1 ; 2 ; Copyright (C) 2006-2015 Oracle Corporation 3 ; 4 ; This file is part of VirtualBox Open Source Edition (OSE), as 5 ; available from http://www.virtualbox.org. This file is free software; 6 ; you can redistribute it and/or modify it under the terms of the GNU 7 ; General Public License (GPL) as published by the Free Software 8 ; Foundation, in version 2 as it comes in the "COPYING" file of the 9 ; VirtualBox OSE distribution. VirtualBox OSE is distributed in the 10 ; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 11 ; -------------------------------------------------------------------- 12 ; 13 ; This code is based on: 14 ; 15 ; ROM BIOS for use with Bochs/Plex86/QEMU emulation environment 16 ; 17 ; Copyright (C) 2002 MandrakeSoft S.A. 18 ; 19 ; MandrakeSoft S.A. 20 ; 43, rue d'Aboukir 21 ; 75002 Paris - France 22 ; http://www.linux-mandrake.com/ 23 ; http://www.mandrakesoft.com/ 24 ; 25 ; This library is free software; you can redistribute it and/or 26 ; modify it under the terms of the GNU Lesser General Public 27 ; License as published by the Free Software Foundation; either 28 ; version 2 of the License, or (at your option) any later version. 29 ; 30 ; This library is distributed in the hope that it will be useful, 31 ; but WITHOUT ANY WARRANTY; without even the implied warranty of 32 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 33 ; Lesser General Public License for more details. 34 ; 35 ; You should have received a copy of the GNU Lesser General Public 36 ; License along with this library; if not, write to the Free Software 37 ; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 38 ; 39 ; 41 40 42 41 ; Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice … … 60 59 db 0 ; Entry point revision 61 60 db 0, 0, 0, 0, 0 ; 16 bytes total 62 61 63 62 ;; The DMI header 64 63 db '_DMI_' ; signature … … 69 68 db VBOX_DMI_TABLE_VER ; DMI version 70 69 db 0 ; Just for alignment (16 bytes total) 70 -
trunk/src/VBox/Devices/PC/BIOS/vbdmismi.inc
r44820 r69300 1 ; $Id$ 2 ;; @file 3 ; DMI and SMBIOS definitions for VBox. 4 ; 5 6 ; 7 ; Copyright (C) 2006-2017 Oracle Corporation 8 ; 9 ; This file is part of VirtualBox Open Source Edition (OSE), as 10 ; available from http://www.virtualbox.org. This file is free software; 11 ; you can redistribute it and/or modify it under the terms of the GNU 12 ; General Public License (GPL) as published by the Free Software 13 ; Foundation, in version 2 as it comes in the "COPYING" file of the 14 ; VirtualBox OSE distribution. VirtualBox OSE is distributed in the 15 ; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 16 ; 17 1 18 ;; TODO: make dynamic 2 19 … … 8 25 VBOX_SMBIOS_MINOR_VER equ 5 9 26 VBOX_SMBIOS_MAXSS equ 0FFh 27 -
trunk/src/VBox/Devices/PC/BIOS/vds.h
r48947 r69300 1 /* $Id$ */ 2 /** @file 3 * Utility routines for calling the Virtual DMA Services. 4 */ 5 6 /* 7 * Copyright (C) 2006-2016 Oracle Corporation 8 * 9 * This file is part of VirtualBox Open Source Edition (OSE), as 10 * available from http://www.virtualbox.org. This file is free software; 11 * you can redistribute it and/or modify it under the terms of the GNU 12 * General Public License (GPL) as published by the Free Software 13 * Foundation, in version 2 as it comes in the "COPYING" file of the 14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the 15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 16 */ 17 18 1 19 /* Virtual DMA Services (VDS) */ 2 20 … … 4 22 #define VDS_PRESENT 0x20 /* The VDS present bit. */ 5 23 6 /* The DMA descriptor data structure. */7 8 typedef struct{24 /** The DMA descriptor data structure. */ 25 typedef struct 26 { 9 27 uint32_t region_size; /* Region size in bytes. */ 10 28 uint32_t offset; /* Offset. */ … … 15 33 16 34 17 /* Scatter/gather descriptor entry. */18 19 typedef struct{35 /** Scatter/gather descriptor entry. */ 36 typedef struct 37 { 20 38 uint32_t phys_addr; /* Physical address. */ 21 39 uint32_t size; /* Entry size. */ 22 40 } vds_sg; 23 41 24 /* The extended DDS for scatter/gather. Note that the EDDS contains either25 * S/G descriptors or x86-style PTEs.42 /** The extended DDS for scatter/gather. 43 * Note that the EDDS contains either S/G descriptors or x86-style PTEs. 26 44 */ 27 28 typedef struct{45 typedef struct 46 { 29 47 uint32_t region_size; /* Region size in bytes. */ 30 48 uint32_t offset; /* Offset. */ … … 33 51 uint16_t num_avail; /* Number of entries available. */ 34 52 uint16_t num_used; /* Number of entries used. */ 35 union { 53 union 54 { 36 55 vds_sg sg[1]; /* S/G entry array. */ 37 56 uint32_t pte[1]; /* Page table entry array. */ … … 94 113 95 114 uint32_t vds_real_to_lin( void __far *ptr ); 115
Note:
See TracChangeset
for help on using the changeset viewer.