From 3ab04b5faa39ff5418e8afceb1521be33a9964fb Mon Sep 17 00:00:00 2001 From: Sir Richard Date: Thu, 1 Apr 2010 19:07:40 +0000 Subject: [PATCH] [PCI]: New PCI driver, for the future. Needed for embedded support (ARM/etc) and anything other than your 3 emulators and neighboor's custom-made-to-barely-boot-your-OS machine. svn path=/trunk/; revision=46645 --- reactos/drivers/bus/directory.rbuild | 3 ++ reactos/drivers/bus/pcix/arb/ar_busno.c | 19 ++++++++ reactos/drivers/bus/pcix/arb/ar_memio.c | 19 ++++++++ reactos/drivers/bus/pcix/arb/arb_comn.c | 19 ++++++++ reactos/drivers/bus/pcix/arb/tr_irq.c | 19 ++++++++ reactos/drivers/bus/pcix/debug.c | 19 ++++++++ reactos/drivers/bus/pcix/device.c | 19 ++++++++ reactos/drivers/bus/pcix/dispatch.c | 19 ++++++++ reactos/drivers/bus/pcix/enum.c | 19 ++++++++ reactos/drivers/bus/pcix/fdo.c | 19 ++++++++ reactos/drivers/bus/pcix/guid.c | 19 ++++++++ reactos/drivers/bus/pcix/hookhal.c | 19 ++++++++ reactos/drivers/bus/pcix/init.c | 30 ++++++++++++ reactos/drivers/bus/pcix/intrface/agpintrf.c | 19 ++++++++ reactos/drivers/bus/pcix/intrface/busintrf.c | 19 ++++++++ reactos/drivers/bus/pcix/intrface/cardbus.c | 19 ++++++++ reactos/drivers/bus/pcix/intrface/ideintrf.c | 19 ++++++++ reactos/drivers/bus/pcix/intrface/intrface.c | 19 ++++++++ reactos/drivers/bus/pcix/intrface/lddintrf.c | 19 ++++++++ reactos/drivers/bus/pcix/intrface/locintrf.c | 19 ++++++++ reactos/drivers/bus/pcix/intrface/pmeintf.c | 19 ++++++++ reactos/drivers/bus/pcix/intrface/routintf.c | 19 ++++++++ reactos/drivers/bus/pcix/pci.h | 11 +++++ reactos/drivers/bus/pcix/pci.rc | 5 ++ reactos/drivers/bus/pcix/pci/busno.c | 19 ++++++++ reactos/drivers/bus/pcix/pci/config.c | 19 ++++++++ reactos/drivers/bus/pcix/pci/devhere.c | 19 ++++++++ reactos/drivers/bus/pcix/pci/id.c | 19 ++++++++ reactos/drivers/bus/pcix/pci/ppbridge.c | 19 ++++++++ reactos/drivers/bus/pcix/pci/romimage.c | 19 ++++++++ reactos/drivers/bus/pcix/pci/state.c | 19 ++++++++ reactos/drivers/bus/pcix/pcivrify.c | 19 ++++++++ reactos/drivers/bus/pcix/pcix.rbuild | 49 ++++++++++++++++++++ reactos/drivers/bus/pcix/pdo.c | 19 ++++++++ reactos/drivers/bus/pcix/power.c | 19 ++++++++ reactos/drivers/bus/pcix/usage.c | 19 ++++++++ reactos/drivers/bus/pcix/utils.c | 19 ++++++++ 37 files changed, 706 insertions(+) create mode 100644 reactos/drivers/bus/pcix/arb/ar_busno.c create mode 100644 reactos/drivers/bus/pcix/arb/ar_memio.c create mode 100644 reactos/drivers/bus/pcix/arb/arb_comn.c create mode 100644 reactos/drivers/bus/pcix/arb/tr_irq.c create mode 100644 reactos/drivers/bus/pcix/debug.c create mode 100644 reactos/drivers/bus/pcix/device.c create mode 100644 reactos/drivers/bus/pcix/dispatch.c create mode 100644 reactos/drivers/bus/pcix/enum.c create mode 100644 reactos/drivers/bus/pcix/fdo.c create mode 100644 reactos/drivers/bus/pcix/guid.c create mode 100644 reactos/drivers/bus/pcix/hookhal.c create mode 100644 reactos/drivers/bus/pcix/init.c create mode 100644 reactos/drivers/bus/pcix/intrface/agpintrf.c create mode 100644 reactos/drivers/bus/pcix/intrface/busintrf.c create mode 100644 reactos/drivers/bus/pcix/intrface/cardbus.c create mode 100644 reactos/drivers/bus/pcix/intrface/ideintrf.c create mode 100644 reactos/drivers/bus/pcix/intrface/intrface.c create mode 100644 reactos/drivers/bus/pcix/intrface/lddintrf.c create mode 100644 reactos/drivers/bus/pcix/intrface/locintrf.c create mode 100644 reactos/drivers/bus/pcix/intrface/pmeintf.c create mode 100644 reactos/drivers/bus/pcix/intrface/routintf.c create mode 100644 reactos/drivers/bus/pcix/pci.h create mode 100644 reactos/drivers/bus/pcix/pci.rc create mode 100644 reactos/drivers/bus/pcix/pci/busno.c create mode 100644 reactos/drivers/bus/pcix/pci/config.c create mode 100644 reactos/drivers/bus/pcix/pci/devhere.c create mode 100644 reactos/drivers/bus/pcix/pci/id.c create mode 100644 reactos/drivers/bus/pcix/pci/ppbridge.c create mode 100644 reactos/drivers/bus/pcix/pci/romimage.c create mode 100644 reactos/drivers/bus/pcix/pci/state.c create mode 100644 reactos/drivers/bus/pcix/pcivrify.c create mode 100644 reactos/drivers/bus/pcix/pcix.rbuild create mode 100644 reactos/drivers/bus/pcix/pdo.c create mode 100644 reactos/drivers/bus/pcix/power.c create mode 100644 reactos/drivers/bus/pcix/usage.c create mode 100644 reactos/drivers/bus/pcix/utils.c diff --git a/reactos/drivers/bus/directory.rbuild b/reactos/drivers/bus/directory.rbuild index a6904a2b137..11a8fbe3852 100644 --- a/reactos/drivers/bus/directory.rbuild +++ b/reactos/drivers/bus/directory.rbuild @@ -10,4 +10,7 @@ + + + diff --git a/reactos/drivers/bus/pcix/arb/ar_busno.c b/reactos/drivers/bus/pcix/arb/ar_busno.c new file mode 100644 index 00000000000..5086357c836 --- /dev/null +++ b/reactos/drivers/bus/pcix/arb/ar_busno.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/arb/ar_busno.c + * PURPOSE: Bus Number Arbitration + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/arb/ar_memio.c b/reactos/drivers/bus/pcix/arb/ar_memio.c new file mode 100644 index 00000000000..47d6e07b150 --- /dev/null +++ b/reactos/drivers/bus/pcix/arb/ar_memio.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/arb/ar_memiono.c + * PURPOSE: Memory and I/O Port Resource Arbitration + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/arb/arb_comn.c b/reactos/drivers/bus/pcix/arb/arb_comn.c new file mode 100644 index 00000000000..37591694584 --- /dev/null +++ b/reactos/drivers/bus/pcix/arb/arb_comn.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/arb/arb_comn.c + * PURPOSE: Common Arbitration Code + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/arb/tr_irq.c b/reactos/drivers/bus/pcix/arb/tr_irq.c new file mode 100644 index 00000000000..7d27173b463 --- /dev/null +++ b/reactos/drivers/bus/pcix/arb/tr_irq.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/arb/tr_irq.c + * PURPOSE: IRQ Resource Translation + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/debug.c b/reactos/drivers/bus/pcix/debug.c new file mode 100644 index 00000000000..2185b02482a --- /dev/null +++ b/reactos/drivers/bus/pcix/debug.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/debug.c + * PURPOSE: Debug Helpers + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/device.c b/reactos/drivers/bus/pcix/device.c new file mode 100644 index 00000000000..7f08dcf0b46 --- /dev/null +++ b/reactos/drivers/bus/pcix/device.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/device.c + * PURPOSE: Device Management + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/dispatch.c b/reactos/drivers/bus/pcix/dispatch.c new file mode 100644 index 00000000000..e69416d156e --- /dev/null +++ b/reactos/drivers/bus/pcix/dispatch.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/dispatch.c + * PURPOSE: WDM Dispatch Routines + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/enum.c b/reactos/drivers/bus/pcix/enum.c new file mode 100644 index 00000000000..d67db2862ae --- /dev/null +++ b/reactos/drivers/bus/pcix/enum.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/enum.c + * PURPOSE: PCI Bus/Device Enumeration + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/fdo.c b/reactos/drivers/bus/pcix/fdo.c new file mode 100644 index 00000000000..f4d30951e4e --- /dev/null +++ b/reactos/drivers/bus/pcix/fdo.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/fdo.c + * PURPOSE: FDO Device Management + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/guid.c b/reactos/drivers/bus/pcix/guid.c new file mode 100644 index 00000000000..7dd27e965ce --- /dev/null +++ b/reactos/drivers/bus/pcix/guid.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/guid.c + * PURPOSE: GUID Data + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/hookhal.c b/reactos/drivers/bus/pcix/hookhal.c new file mode 100644 index 00000000000..786add8376e --- /dev/null +++ b/reactos/drivers/bus/pcix/hookhal.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/hookhal.c + * PURPOSE: HAL Bus Handler Dispatch Routine Support + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/init.c b/reactos/drivers/bus/pcix/init.c new file mode 100644 index 00000000000..18cbed0677b --- /dev/null +++ b/reactos/drivers/bus/pcix/init.c @@ -0,0 +1,30 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/init.c + * PURPOSE: Driver Initialization + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +NTSTATUS +NTAPI +DriverEntry(IN PDRIVER_OBJECT DriverObject, + IN PUNICODE_STRING RegistryPath) +{ + DPRINT1("PCI: DriverEntry!\n"); + + /* FIXME: TODO */ + return STATUS_NOT_SUPPORTED; +} + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/intrface/agpintrf.c b/reactos/drivers/bus/pcix/intrface/agpintrf.c new file mode 100644 index 00000000000..351ae575b9d --- /dev/null +++ b/reactos/drivers/bus/pcix/intrface/agpintrf.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/intrface/agpintrf.c + * PURPOSE: AGP Interface + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/intrface/busintrf.c b/reactos/drivers/bus/pcix/intrface/busintrf.c new file mode 100644 index 00000000000..468d9edd1f0 --- /dev/null +++ b/reactos/drivers/bus/pcix/intrface/busintrf.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/intrface/busintrf.c + * PURPOSE: Bus Interface + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/intrface/cardbus.c b/reactos/drivers/bus/pcix/intrface/cardbus.c new file mode 100644 index 00000000000..a36f2d886f4 --- /dev/null +++ b/reactos/drivers/bus/pcix/intrface/cardbus.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/intrface/cardbus.c + * PURPOSE: CardBus Interface + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/intrface/ideintrf.c b/reactos/drivers/bus/pcix/intrface/ideintrf.c new file mode 100644 index 00000000000..ec2ff82ee8e --- /dev/null +++ b/reactos/drivers/bus/pcix/intrface/ideintrf.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/intrface/ideintrf.c + * PURPOSE: IDE Interface + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/intrface/intrface.c b/reactos/drivers/bus/pcix/intrface/intrface.c new file mode 100644 index 00000000000..e8d0dd5e91a --- /dev/null +++ b/reactos/drivers/bus/pcix/intrface/intrface.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/intrface/intrface.c + * PURPOSE: Common Interface Support Routines + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/intrface/lddintrf.c b/reactos/drivers/bus/pcix/intrface/lddintrf.c new file mode 100644 index 00000000000..43224559e85 --- /dev/null +++ b/reactos/drivers/bus/pcix/intrface/lddintrf.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/intrface/lddintrf.c + * PURPOSE: Legacy Device Detection Interface + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/intrface/locintrf.c b/reactos/drivers/bus/pcix/intrface/locintrf.c new file mode 100644 index 00000000000..a633d98654a --- /dev/null +++ b/reactos/drivers/bus/pcix/intrface/locintrf.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/intrface/locintrf.c + * PURPOSE: Location Interface + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/intrface/pmeintf.c b/reactos/drivers/bus/pcix/intrface/pmeintf.c new file mode 100644 index 00000000000..ecb3b6e88e9 --- /dev/null +++ b/reactos/drivers/bus/pcix/intrface/pmeintf.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/intrface/pmeintf.c + * PURPOSE: Power Management Event# Signal Interface + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/intrface/routintf.c b/reactos/drivers/bus/pcix/intrface/routintf.c new file mode 100644 index 00000000000..6332953d685 --- /dev/null +++ b/reactos/drivers/bus/pcix/intrface/routintf.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/intrface/routinf.c + * PURPOSE: Routing Interface + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/pci.h b/reactos/drivers/bus/pcix/pci.h new file mode 100644 index 00000000000..63432115bb8 --- /dev/null +++ b/reactos/drivers/bus/pcix/pci.h @@ -0,0 +1,11 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/pci.h + * PURPOSE: Main Header File + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +#include + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/pci.rc b/reactos/drivers/bus/pcix/pci.rc new file mode 100644 index 00000000000..001529b970c --- /dev/null +++ b/reactos/drivers/bus/pcix/pci.rc @@ -0,0 +1,5 @@ +#define REACTOS_VERSION_DLL +#define REACTOS_STR_FILE_DESCRIPTION "PCI Bus Driver\0" +#define REACTOS_STR_INTERNAL_NAME "pci\0" +#define REACTOS_STR_ORIGINAL_FILENAME "pci.sys\0" +#include diff --git a/reactos/drivers/bus/pcix/pci/busno.c b/reactos/drivers/bus/pcix/pci/busno.c new file mode 100644 index 00000000000..e5a981631c4 --- /dev/null +++ b/reactos/drivers/bus/pcix/pci/busno.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/pci/busno.c + * PURPOSE: Bus Number Management + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/pci/config.c b/reactos/drivers/bus/pcix/pci/config.c new file mode 100644 index 00000000000..9bdbb0f2741 --- /dev/null +++ b/reactos/drivers/bus/pcix/pci/config.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/pci/config.c + * PURPOSE: PCI Configuration Space Routines + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/pci/devhere.c b/reactos/drivers/bus/pcix/pci/devhere.c new file mode 100644 index 00000000000..4a666b9fefc --- /dev/null +++ b/reactos/drivers/bus/pcix/pci/devhere.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/pci/devhere.c + * PURPOSE: PCI Device Detection and Location + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/pci/id.c b/reactos/drivers/bus/pcix/pci/id.c new file mode 100644 index 00000000000..d4fd9102cfc --- /dev/null +++ b/reactos/drivers/bus/pcix/pci/id.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/pci/id.c + * PURPOSE: PCI Device Identification + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/pci/ppbridge.c b/reactos/drivers/bus/pcix/pci/ppbridge.c new file mode 100644 index 00000000000..738b5c047b9 --- /dev/null +++ b/reactos/drivers/bus/pcix/pci/ppbridge.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/pci/ppbridge.c + * PURPOSE: PCI-to-PCI Bridge Support + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/pci/romimage.c b/reactos/drivers/bus/pcix/pci/romimage.c new file mode 100644 index 00000000000..96575f39099 --- /dev/null +++ b/reactos/drivers/bus/pcix/pci/romimage.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/pci/romimage.c + * PURPOSE: PCI ROM Image Support + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/pci/state.c b/reactos/drivers/bus/pcix/pci/state.c new file mode 100644 index 00000000000..d2f3048bf9e --- /dev/null +++ b/reactos/drivers/bus/pcix/pci/state.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/pci/state.c + * PURPOSE: Bus/Device State Support + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/pcivrify.c b/reactos/drivers/bus/pcix/pcivrify.c new file mode 100644 index 00000000000..15ed1b6f3d4 --- /dev/null +++ b/reactos/drivers/bus/pcix/pcivrify.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/pcivrify.c + * PURPOSE: PCI Driver Verifier Support + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/pcix.rbuild b/reactos/drivers/bus/pcix/pcix.rbuild new file mode 100644 index 00000000000..257387b1c1f --- /dev/null +++ b/reactos/drivers/bus/pcix/pcix.rbuild @@ -0,0 +1,49 @@ + + + + + . + ntoskrnl + hal + + ar_busno.c + ar_memio.c + arb_comn.c + tr_irq.c + + + agpintrf.c + busintrf.c + cardbus.c + ideintrf.c + intrface.c + lddintrf.c + locintrf.c + pmeintf.c + routintf.c + + + busno.c + config.c + devhere.c + id.c + ppbridge.c + romimage.c + state.c + + debug.c + device.c + dispatch.c + enum.c + fdo.c + guid.c + hookhal.c + init.c + pcivrify.c + pdo.c + power.c + usage.c + utils.c + pci.rc + pci.h + diff --git a/reactos/drivers/bus/pcix/pdo.c b/reactos/drivers/bus/pcix/pdo.c new file mode 100644 index 00000000000..b54dda4bac7 --- /dev/null +++ b/reactos/drivers/bus/pcix/pdo.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/pdo.c + * PURPOSE: PDO Device Management + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/power.c b/reactos/drivers/bus/pcix/power.c new file mode 100644 index 00000000000..71a745b8fdf --- /dev/null +++ b/reactos/drivers/bus/pcix/power.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/power.c + * PURPOSE: Bus/Device Power Management + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/usage.c b/reactos/drivers/bus/pcix/usage.c new file mode 100644 index 00000000000..b317439fc42 --- /dev/null +++ b/reactos/drivers/bus/pcix/usage.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/usage.c + * PURPOSE: Bus/Device Usage Reporting + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */ diff --git a/reactos/drivers/bus/pcix/utils.c b/reactos/drivers/bus/pcix/utils.c new file mode 100644 index 00000000000..a73b0de719a --- /dev/null +++ b/reactos/drivers/bus/pcix/utils.c @@ -0,0 +1,19 @@ +/* + * PROJECT: ReactOS PCI Bus Driver + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: drivers/bus/pci/utils.c + * PURPOSE: Utility/Helper Support Code + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *******************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS ********************************************************************/ + +/* FUNCTIONS ******************************************************************/ + +/* EOF */