~steve-sk2/mingw-w64/oneiric

« back to all changes in this revision

Viewing changes to mingw-w64-headers/ddk/include/ddk/ioaccess.h

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Kitt
  • Date: 2010-11-18 00:04:46 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101118000446-xe24b423su55onyl
Tags: 1.0+20101003-1
* New maintainer. (Closes: #594371.)
* New upstream snapshot:
  - Includes getopt.h. (Closes: #569914.)
* Build g++ for Win64. (Closes: #600451.)
* Standards-Version 3.9.1 (new packaging).
* Include patch from
  http://mingw-w64.svn.sourceforge.net/viewvc/mingw-w64?view=revision&revision=3715
  as suggested by Rafaël Carré.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#endif
25
25
 
26
26
#define H2I(p) PtrToUshort(p)
27
 
    
 
27
 
28
28
#ifndef NO_PORT_MACROS
29
29
 
30
30
#if defined(_X86_) || defined(_M_AMD64)
41
41
#define WRITE_PORT_USHORT(p, v) __outword (H2I(p), (v))
42
42
#define WRITE_PORT_ULONG(p, v) __outdword (H2I(p), (v))
43
43
 
 
44
#define MEMORY_BARRIER()
 
45
 
44
46
#elif defined(_PPC_) || defined(_MIPS_) || defined(_ARM_)
45
47
 
46
48
#define READ_REGISTER_UCHAR(r)      (*(volatile UCHAR * const)(r))
57
59
#define WRITE_PORT_ULONG(p, v)      WRITE_REGISTER_ULONG(p, (ULONG) (v))
58
60
 
59
61
#else
60
 
    
 
62
 
61
63
#error Unsupported architecture
62
64
 
63
65
#endif
64
66
 
65
67
#endif /* NO_PORT_MACROS */
 
68
 
 
69
#ifdef __cplusplus
 
70
}
 
71
#endif
 
72
 
66
73
#endif /* __IOACCESS_H */