VirtualBox

Ignore:
Timestamp:
Jul 23, 2012 4:48:01 PM (12 years ago)
Author:
vboxsync
Message:

BIOS: Expanded PCI service, removed old 16-bit implementation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/BIOS/timepci.c

    r38699 r42332  
    146146// in the following routines
    147147
    148 /* The PCI BIOS routine must be callable from protected mode, and
    149  * therefore must not modify any segment registers(!).
    150  */
    151 #if BX_PCIBIOS
    152 void BIOSCALL int1a_function_pci(i1apci_regs_t r)
    153 {
    154 #if 0
    155     // real mode PCI BIOS functions now handled in assembler code
    156     // this C code handles the error code for information only
    157     if (r.gr.u.r8.ah == 0xff) {
    158         BX_INFO("PCI BIOS: PCI not present\n");
    159     } else if (r.gr.u.r8.ah == 0x81) {
    160         BX_INFO("unsupported PCI BIOS function 0x%02x\n", r.gr.u.r8.al);
    161     } else if (r.gr.u.r8.ah == 0x83) {
    162         BX_INFO("bad PCI vendor ID %04x\n", r.gr.u.r16.dx);
    163     } else if (r.gr.u.r8.ah == 0x86) {
    164         if (r.gr.u.r8.ah == 0x02) {
    165             BX_INFO("PCI device %04x:%04x not found at index %d\n", r.gr.u.r16.dx, r.gr.u.r16.cx, r.gr.u.r16.si);
    166         } else {
    167             BX_INFO("no PCI device with class code 0x%02x%04x found at index %d\n", r.gr.u.r8.cl, r.gr.u.r16.dx, r.gr.u.r16.si);
    168         }
    169     }
    170 #endif
    171     //@todo: OS/2 MCP2 apparently calls us in protected mode with a DS which does not
    172     // point to the BIOS segment!?!
    173     send(BIOS_PRINTF_INFO, '!');
    174     send(BIOS_PRINTF_INFO, '\n');
    175     if (!GetCF(r.ra.flags)) {
    176         SetCF(r.ra.flags);
    177     }
    178 }
    179 #endif
    180 
    181 
    182148void BIOSCALL int1a_function(pusha_regs_t regs, uint16_t ds, uint16_t es, iret_addr_t iret_addr)
    183149{
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