VirtualBox

Changeset 69300 in vbox for trunk/src


Ignore:
Timestamp:
Oct 25, 2017 1:38:41 PM (7 years ago)
Author:
vboxsync
Message:

PC/BIOS: scm updates

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;
    1617
    1718
     
    134135
    135136                mov     ah, 2           ; mark as originating in 16-bit PM
    136                
     137
    137138                                        ; fall through
    138139
  • 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;
    4044
    4145; Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
     
    279283                out     92h, al
    280284                jmp     $               ; not strictly necessary in a VM
    281                
    282                
     285
     286
    283287in_real_mode:
    284288                ;; read the CMOS shutdown status
     
    323327                cmp     al, 0Ah
    324328                jz      check_shutdown
    325                
     329
    326330                xor     al, al
    327331
     
    347351                jne     check_next_std
    348352                jmp     return_blkmove
    349 check_next_std:         
     353check_next_std:
    350354
    351355                ;; 05h = EOI + jump through 40:67
     
    426430                mov     cx, 10h
    427431                call    set_int_vects
    428                
     432
    429433                ;; base memory in K to 40:13
    430434                mov     ax, BASE_MEM_IN_K
     
    638642                mov     dx, 0F000h
    639643                call    rom_scan_
    640                
     644
    641645if VBOX_BIOS_CPU ge 80386
    642646                ;; The POST code does not bother preserving high bits of the
     
    652656
    653657                call    _print_bios_banner
    654                
     658
    655659                ;; El Torito floppy/hard disk emulation
    656660                call    _cdemu_init
     
    666670                cli
    667671                hlt
    668                
     672
    669673
    670674;;
     
    16981702                cmp     ah, 87h
    16991703                jne     not_blkmove
    1700                
     1704
    17011705                ;; INT 15h/87h has semi-public interface because software
    17021706                ;; 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;
    135
     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; --------------------------------------------------------------------
    1418
    15 ; BIOS32 service directory and 32-bit PCI BIOS entry point
    1619
    1720; Public symbols for debugging only
     
    9497
    9598                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;
    4144
    4245; Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
     
    4649; that LGPLv2 or any later version may be used, or where a choice of which version
    4750; of the LGPL is applied is otherwise unspecified.
     51
    4852
    4953include pcicfg.inc
     
    7983if not BX_ROMBIOS32
    8084pci_irq_list:
    81                 db 11, 10, 9, 11 
     85                db 11, 10, 9, 11
    8286
    8387pcibios_init_sel_reg:
     
    97101                mov     bp, sp
    98102ifdef VBOX
    99                 mov     eax,19200509 
     103                mov     eax,19200509
    100104                mov     dx,410h
    101105                out     dx,  eax
     
    205209                add     dx, 18h ; reset register if PCNet is in word I/O mode
    206210                in      eax, dx ; reset is performed by reading the reset register
    207 endif ; VBOX 
     211endif ; VBOX
    208212next_pci_dev:
    209213                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;
    4145
    4246; Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
     
    4650; that LGPLv2 or any later version may be used, or where a choice of which version
    4751; of the LGPL is applied is otherwise unspecified.
     52
    4853
    4954if BX_PCIBIOS
  • trunk/src/VBox/Devices/PC/BIOS/pmode.inc

    r60422 r69300  
     1; $Id$
    12;; @file
    2 ;; Enter and exit a minimal protected-mode environment.
    3 ;;
     3; Enter and exit a minimal protected-mode environment.
     4;
    45
    5 ;;
    6 ;; Copyright (C) 2004-2015 Oracle Corporation
    7 ;;
    8 ;; This file is part of VirtualBox Open Source Edition (OSE), as
    9 ;; 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 GNU
    11 ;; General Public License (GPL) as published by the Free Software
    12 ;; Foundation, in version 2 as it comes in the "COPYING" file of the
    13 ;; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
    14 ;; 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;
    1617
    1718;; Caveats: May only be called from the F000 segment (16-bit). Does not
     
    7879                dw 0, 0, 0, 0
    7980                dw 0ffffh, 400h, 9300h, 0000h   ; 16-bit data, base=0x40
     81
  • trunk/src/VBox/Devices/PC/BIOS/pmsetup.inc

    r60422 r69300  
     1; $Id$
    12;; @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;
    45
    5 ;;
    6 ;; Copyright (C) 2004-2015 Oracle Corporation
    7 ;;
    8 ;; This file is part of VirtualBox Open Source Edition (OSE), as
    9 ;; 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 GNU
    11 ;; General Public License (GPL) as published by the Free Software
    12 ;; Foundation, in version 2 as it comes in the "COPYING" file of the
    13 ;; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
    14 ;; 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;
    1617
    1718SVR             equ     0FEE000F0h
     
    6263
    6364pmode_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;
    4140
    4241; Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
     
    6059                db      0               ; Entry point revision
    6160                db      0, 0, 0, 0, 0   ; 16 bytes total
    62        
     61
    6362                ;; The DMI header
    6463                db      '_DMI_'         ; signature
     
    6968                db      VBOX_DMI_TABLE_VER ; DMI version
    7069                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
    118;; TODO: make dynamic
    219
     
    825VBOX_SMBIOS_MINOR_VER   equ     5
    926VBOX_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
    119/* Virtual DMA Services (VDS) */
    220
     
    422#define VDS_PRESENT     0x20    /* The VDS present bit. */
    523
    6 /* The DMA descriptor data structure. */
    7 
    8 typedef struct {
     24/** The DMA descriptor data structure. */
     25typedef struct
     26{
    927    uint32_t    region_size;    /* Region size in bytes. */
    1028    uint32_t    offset;         /* Offset. */
     
    1533
    1634
    17 /* Scatter/gather descriptor entry. */
    18 
    19 typedef struct {
     35/** Scatter/gather descriptor entry. */
     36typedef struct
     37{
    2038    uint32_t    phys_addr;      /* Physical address. */
    2139    uint32_t    size;           /* Entry size. */
    2240} vds_sg;
    2341
    24 /* The extended DDS for scatter/gather. Note that the EDDS contains either
    25  * 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.
    2644 */
    27 
    28 typedef struct {
     45typedef struct
     46{
    2947    uint32_t    region_size;    /* Region size in bytes. */
    3048    uint32_t    offset;         /* Offset. */
     
    3351    uint16_t    num_avail;      /* Number of entries available. */
    3452    uint16_t    num_used;       /* Number of entries used. */
    35     union {
     53    union
     54    {
    3655        vds_sg      sg[1];      /* S/G entry array. */
    3756        uint32_t    pte[1];     /* Page table entry array. */
     
    94113
    95114uint32_t vds_real_to_lin( void __far *ptr );
     115
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette