~peter-pearse/ubuntu/natty/pciutils/prop001

« back to all changes in this revision

Viewing changes to lib/i386-io-windows.h

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2008-04-29 16:23:38 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080429162338-v20040rx66khbl7v
Tags: 1:3.0.0-3
libpci-dev conflicts with pciutils-dev. Closes: #478290

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 */
9
9
 
10
10
#include <io.h>
 
11
#include <windows.h>
 
12
 
 
13
#ifndef __GNUC__
11
14
#include <conio.h>
12
 
#include <windows.h>
 
15
#else
 
16
int _outp(unsigned short port, int databyte);
 
17
unsigned short _outpw(unsigned short port, unsigned short dataword);
 
18
unsigned long _outpd(unsigned short port, unsigned long dataword);
 
19
int _inp(unsigned short port);
 
20
unsigned short _inpw(unsigned short port);
 
21
unsigned long _inpd(unsigned short port);
 
22
#endif
13
23
 
14
24
#define outb(x,y) _outp(y,x)
15
25
#define outw(x,y) _outpw(y,x)
26
36
  MYPROC InitializeWinIo;
27
37
  HMODULE lib;
28
38
 
29
 
  intel_iopl_set = 0;
30
 
 
31
39
  lib = LoadLibrary("WinIo.dll");
32
40
  if (!lib)
33
41
    {