~ubuntu-branches/ubuntu/raring/virtualbox-ose/raring

« back to all changes in this revision

Viewing changes to src/VBox/Devices/EFI/tools/include/IndustryStandard/EfiPci.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2009-12-18 16:44:29 UTC
  • mfrom: (0.3.3 upstream) (0.4.6 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091218164429-jd34ccexpv5na11a
Tags: 3.1.2-dfsg-1ubuntu1
* Merge from Debian unstable (LP: #498219), remaining changes:
  - Disable update action
    - debian/patches/u01-disable-update-action.dpatch
  - VirtualBox should go in Accessories, not in System tools (LP: #288590)
    - debian/virtualbox-ose-qt.files/virtualbox-ose.desktop
  - Add Apport hook
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Add Launchpad integration
    - debian/control
    - debian/lpi-bug.xpm
    - debian/patches/u02-lp-integration.dpatch
* Fixes the following bugs:
  - Kernel module fails to build with Linux >= 2.6.32 (LP: #474625)
  - X.Org drivers need to be rebuilt against X-Server 1.7 (LP: #495935)
  - The *-source packages try to build the kernel modules even though the
    kernel headers aren't available (LP: #473334)
* Replace *-source packages with transitional packages for *-dkms.
* Adapt u01-disable-update-action.dpatch and u02-lp-integration.dpatch for
  new upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/** @file
 
2
  Support for EFI PCI specification.
 
3
 
 
4
  Copyright (c) 2006 - 2008, Intel Corporation  All rights reserved.
 
5
 
 
6
  This program and the accompanying materials are licensed and made available
 
7
  under the terms and conditions of the BSD License which accompanies this
 
8
  distribution.  The full text of the license may be found at:
 
9
    http://opensource.org/licenses/bsd-license.php
 
10
 
 
11
  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 
12
  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 
13
 
 
14
  File Name:  EfiPci.h
 
15
 
 
16
**/
 
17
 
 
18
#ifndef _EFI_PCI_H_
 
19
#define _EFI_PCI_H_
 
20
 
 
21
//#include "pci22.h"
 
22
//#include "pci23.h"
 
23
//#include "pci30.h"
 
24
 
 
25
#pragma pack(push, 1)
 
26
 
 
27
typedef struct {
 
28
  UINT8 Register;
 
29
  UINT8 Function;
 
30
  UINT8 Device;
 
31
  UINT8 Bus;
 
32
  UINT8 Reserved[4];
 
33
} DEFIO_PCI_ADDR;
 
34
 
 
35
#define EFI_ROOT_BRIDGE_LIST                            'eprb'
 
36
#define EFI_PCI_EXPANSION_ROM_HEADER_EFISIGNATURE       0x0EF1
 
37
 
 
38
typedef struct {
 
39
  UINT16  Signature;    // 0xaa55
 
40
  UINT16  InitializationSize;
 
41
  UINT32  EfiSignature; // 0x0EF1
 
42
  UINT16  EfiSubsystem;
 
43
  UINT16  EfiMachineType;
 
44
  UINT16  CompressionType;
 
45
  UINT8   Reserved[8];
 
46
  UINT16  EfiImageHeaderOffset;
 
47
  UINT16  PcirOffset;
 
48
} EFI_PCI_EXPANSION_ROM_HEADER;
 
49
 
 
50
typedef union {
 
51
  UINT8                           *Raw;
 
52
  PCI_EXPANSION_ROM_HEADER        *Generic;
 
53
  EFI_PCI_EXPANSION_ROM_HEADER    *Efi;
 
54
  EFI_LEGACY_EXPANSION_ROM_HEADER *PcAt;
 
55
} EFI_PCI_ROM_HEADER;
 
56
 
 
57
#pragma pack(pop)
 
58
 
 
59
#endif