mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Build pci with w32api
svn path=/trunk/; revision=15556
This commit is contained in:
parent
cc481fc89f
commit
09d22dbdea
4 changed files with 15 additions and 4 deletions
|
@ -6,7 +6,7 @@ TARGET_TYPE = driver
|
||||||
|
|
||||||
TARGET_NAME = pci
|
TARGET_NAME = pci
|
||||||
|
|
||||||
TARGET_CFLAGS = -Wall -Werror
|
TARGET_CFLAGS = -Wall -Werror -D__USE_W32API
|
||||||
|
|
||||||
TARGET_OBJECTS = fdo.o pci.o pdo.o
|
TARGET_OBJECTS = fdo.o pci.o pdo.o
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include <ddk/ntddk.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "pcidef.h"
|
#include "pcidef.h"
|
||||||
#include "pci.h"
|
#include "pci.h"
|
||||||
|
|
|
@ -9,15 +9,14 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include <ddk/ntddk.h>
|
||||||
|
#include <initguid.h>
|
||||||
|
#include <ddk/wdmguid.h>
|
||||||
#include "pcidef.h"
|
#include "pcidef.h"
|
||||||
#include "pci.h"
|
#include "pci.h"
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
DEFINE_GUID(GUID_BUS_TYPE_PCI, 0xc8ebdfb0L, 0xb510, 0x11d0, 0x80, 0xe5, 0x00, 0xa0, 0xc9, 0x25, 0x42, 0xe3);
|
|
||||||
|
|
||||||
/*** PRIVATE *****************************************************************/
|
/*** PRIVATE *****************************************************************/
|
||||||
|
|
||||||
static NTSTATUS
|
static NTSTATUS
|
||||||
|
|
|
@ -3231,6 +3231,17 @@ typedef struct _PCI_COMMON_CONFIG {
|
||||||
#define PCI_INVALID_VENDORID 0xFFFF
|
#define PCI_INVALID_VENDORID 0xFFFF
|
||||||
#define PCI_COMMON_HDR_LENGTH (FIELD_OFFSET(PCI_COMMON_CONFIG, DeviceSpecific))
|
#define PCI_COMMON_HDR_LENGTH (FIELD_OFFSET(PCI_COMMON_CONFIG, DeviceSpecific))
|
||||||
|
|
||||||
|
#define PCI_ADDRESS_IO_SPACE 0x01
|
||||||
|
#define PCI_ADDRESS_MEMORY_TYPE_MASK 0x06
|
||||||
|
#define PCI_ADDRESS_MEMORY_PREFETCHABLE 0x08
|
||||||
|
#define PCI_ADDRESS_IO_ADDRESS_MASK 0xfffffffc
|
||||||
|
#define PCI_ADDRESS_MEMORY_ADDRESS_MASK 0xfffffff0
|
||||||
|
#define PCI_ADDRESS_ROM_ADDRESS_MASK 0xfffff800
|
||||||
|
|
||||||
|
#define PCI_TYPE_32BIT 0
|
||||||
|
#define PCI_TYPE_20BIT 2
|
||||||
|
#define PCI_TYPE_64BIT 4
|
||||||
|
|
||||||
typedef struct _PCI_SLOT_NUMBER {
|
typedef struct _PCI_SLOT_NUMBER {
|
||||||
union {
|
union {
|
||||||
struct {
|
struct {
|
||||||
|
|
Loading…
Reference in a new issue