annotate libdha/sysdep/pci_win32.c @ 8651:50701f34a161

cleaning corners of green dirt ;)
author michael
date Sun, 29 Dec 2002 23:31:52 +0000
parents 4cfb6b9a6da3
children 3a727f52c4a2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4164
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
1 /*
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
2 This file is based on:
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
3 $XFree86: xc/programs/Xserver/hw/xfree86/etc/scanpci.c,v 3.34.2.17 1998/11/10 11:55:40 dawes Exp $
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
4 Modified for readability by Nick Kurshev
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
5 */
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
6 #include <windows.h>
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
7
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
8 /* Nothing to do for Win9x. For WinNT I have no solution */
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
9
4174
4cfb6b9a6da3 api changed: enable/disable_os_io returns error-code (or zero if ok) and pciconfig_read exported for mga_vid
alex
parents: 4164
diff changeset
10 static __inline__ int enable_os_io(void)
4164
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
11 {
4174
4cfb6b9a6da3 api changed: enable/disable_os_io returns error-code (or zero if ok) and pciconfig_read exported for mga_vid
alex
parents: 4164
diff changeset
12 return(0);
4164
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
13 }
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
14
4174
4cfb6b9a6da3 api changed: enable/disable_os_io returns error-code (or zero if ok) and pciconfig_read exported for mga_vid
alex
parents: 4164
diff changeset
15 static __inline__ int disable_os_io(void)
4164
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
16 {
4174
4cfb6b9a6da3 api changed: enable/disable_os_io returns error-code (or zero if ok) and pciconfig_read exported for mga_vid
alex
parents: 4164
diff changeset
17 return(0);
4164
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
18 }