Changeset 34331 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Nov 24, 2010 4:24:17 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 68094
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/PCIInternal.h
r34268 r34331 24 24 typedef struct PCIIOREGION 25 25 { 26 /** Current PCI mapping address, 0xffffffff means not mapped. 26 /** Current PCI mapping address, 0xffffffff means not mapped. 27 27 @todo: make address and size 64-bit. */ 28 28 uint32_t addr; -
trunk/src/VBox/Devices/VMMDev/VMMDev.cpp
r33758 r34331 2877 2877 2878 2878 /* PCI vendor, just a free bogus value */ 2879 pThis->dev.config[0x00] = 0xee; 2880 pThis->dev.config[0x01] = 0x80; 2879 PCIDevSetVendorId(&pThis->dev, 0x80ee); 2881 2880 /* device ID */ 2882 pThis->dev.config[0x02] = 0xfe; 2883 pThis->dev.config[0x03] = 0xca; 2881 PCIDevSetDeviceId(&pThis->dev, 0xcafe); 2884 2882 /* class sub code (other type of system peripheral) */ 2885 pThis->dev.config[0x0a] = 0x80;2883 PCIDevSetClassSub(&pThis->dev, 0x80); 2886 2884 /* class base code (base system peripheral) */ 2887 pThis->dev.config[0x0b] = 0x08;2885 PCIDevSetClassBase(&pThis->dev, 0x08); 2888 2886 /* header type */ 2889 pThis->dev.config[0x0e] = 0x00;2887 PCIDevSetHeaderType(&pThis->dev, 0x00); 2890 2888 /* interrupt on pin 0 */ 2891 pThis->dev.config[0x3d] = 0x01;2889 PCIDevSetInterruptPin(&pThis->dev, 0x01); 2892 2890 2893 2891 /* … … 3044 3042 if (RT_FAILURE(rc)) 3045 3043 return rc; 3046 if (pThis->dev.devfn == 32 || iInstance != 0)3044 if (pThis->dev.devfn != 32 || iInstance != 0) 3047 3045 Log(("!!WARNING!!: pThis->dev.devfn=%d (ignore if testcase or no started by Main)\n", pThis->dev.devfn)); 3048 3046 rc = PDMDevHlpPCIIORegionRegister(pDevIns, 0, 0x20, PCI_ADDRESS_SPACE_IO, vmmdevIOPortRegionMap);
Note:
See TracChangeset
for help on using the changeset viewer.