~ubuntu-branches/ubuntu/quantal/open-vm-tools/quantal-201207201942

« back to all changes in this revision

Viewing changes to modules/linux/vmmemctl/backdoor_balloon.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-10-18 12:28:19 UTC
  • mfrom: (1.1.7 upstream) (2.4.9 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091018122819-00vqew6m0ztpqcqp
Tags: 2009.10.15-201664-1
MergingĀ upstreamĀ versionĀ 2009.10.15-201664.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*********************************************************
2
 
 * Copyright (C) 2007 VMware, Inc. All rights reserved.
3
 
 *
4
 
 * This program is free software; you can redistribute it and/or modify it
5
 
 * under the terms of the GNU General Public License as published by the
6
 
 * Free Software Foundation version 2 and no later version.
7
 
 *
8
 
 * This program is distributed in the hope that it will be useful, but
9
 
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10
 
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
11
 
 * for more details.
12
 
 *
13
 
 * You should have received a copy of the GNU General Public License along
14
 
 * with this program; if not, write to the Free Software Foundation, Inc.,
15
 
 * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
16
 
 *
17
 
 *********************************************************/
18
 
 
19
 
/*
20
 
 * backdoor_balloon.h --
21
 
 *
22
 
 *    This file provides a wrapper for using the more generic backdoor library
23
 
 *    together with the vmballoon-specific backdoor.
24
 
 */
25
 
 
26
 
#ifndef _BACKDOOR_BALLOON_H_
27
 
#define _BACKDOOR_BALLOON_H_
28
 
 
29
 
#include "backdoor.h"
30
 
#include "balloon_def.h"
31
 
 
32
 
static INLINE
33
 
void Backdoor_Balloon(Backdoor_proto *myBp) {
34
 
   myBp->in.ax.word = BALLOON_BDOOR_MAGIC;
35
 
   myBp->in.dx.halfs.low = BALLOON_BDOOR_PORT;
36
 
   Backdoor_InOut(myBp);
37
 
}
38
 
 
39
 
#endif /* _BACKDOOR_BALLOON_H_ */