~ubuntu-branches/ubuntu/trusty/virtualbox/trusty-proposed

« back to all changes in this revision

Viewing changes to src/VBox/Devices/EFI/Firmware2/VBoxPkg/PlatformPei/Cmos.h

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2013-03-07 16:38:36 UTC
  • mfrom: (1.1.13) (3.1.20 experimental)
  • Revision ID: package-import@ubuntu.com-20130307163836-p93jpbgx39tp3gb4
Tags: 4.2.8-dfsg-0ubuntu1
* New upstream release. (Closes: #691148)
  - Fixes compatibility with kernel 3.8. (Closes: #700823; LP: #1101867)
* Switch to my @debian.org email address.
* Move package to contrib as virtualbox 4.2 needs a non-free compiler to
  build the BIOS.
* Build-depend on libdevmapper-dev.
* Refresh patches.
  - Drop 36-fix-ftbfs-xserver-112.patch, cve-2012-3221.patch,
    CVE-2013-0420.patch 37-kcompat-3.6.patch and 38-kcompat-3.7.patch.
* Drop all virtualbox-ose transitional packages.
* Drop the virtualbox-fuse package as vdfuse fails to build with
  virtualbox 4.2.
* Update install files and VBox.sh.
* Bump required kbuild version to 0.1.9998svn2577.
* Fix path to VBoxCreateUSBNode.sh in virtualbox.postinst. (Closes: #700479)
* Add an init script to virtuabox-guest-x11 which loads the vboxvideo
  kernel module. The X Server 1.13 doesn't load it anymore. (Closes: #686994)
* Update man pages. (Closes: #680053)
* Add 36-python-multiarch.patch from Rico Tzschichholz to fix detection of
  python in multiarch paths using pkg-config.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Id: Cmos.h $ */
 
2
/** @file
 
3
 * Cmos.h
 
4
 */
 
5
 
 
6
/*
 
7
 * Copyright (C) 2012 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
/** @file
 
19
  PC/AT CMOS access routines
 
20
 
 
21
  Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
 
22
  This program and the accompanying materials
 
23
  are licensed and made available under the terms and conditions of the BSD License
 
24
  which accompanies this distribution.  The full text of the license may be found at
 
25
  http://opensource.org/licenses/bsd-license.php
 
26
 
 
27
  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 
28
  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 
29
 
 
30
**/
 
31
 
 
32
#ifndef __CMOS_H__
 
33
#define __CMOS_H__
 
34
 
 
35
/**
 
36
  Reads 8-bits of CMOS data.
 
37
 
 
38
  Reads the 8-bits of CMOS data at the location specified by Index.
 
39
  The 8-bit read value is returned.
 
40
 
 
41
  @param  Index  The CMOS location to read.
 
42
 
 
43
  @return The value read.
 
44
 
 
45
**/
 
46
UINT8
 
47
EFIAPI
 
48
CmosRead8 (
 
49
  IN      UINTN                     Index
 
50
  );
 
51
 
 
52
/**
 
53
  Writes 8-bits of CMOS data.
 
54
 
 
55
  Writes 8-bits of CMOS data to the location specified by Index
 
56
  with the value specified by Value and returns Value.
 
57
 
 
58
  @param  Index  The CMOS location to write.
 
59
  @param  Value  The value to write to CMOS.
 
60
 
 
61
  @return The value written to CMOS.
 
62
 
 
63
**/
 
64
UINT8
 
65
EFIAPI
 
66
CmosWrite8 (
 
67
  IN      UINTN                     Index,
 
68
  IN      UINT8                     Value
 
69
  );
 
70
 
 
71
 
 
72
#endif
 
73