This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
PC - larger PCI spaces
- From: Gary Thomas <gthomas at ecoscentric dot com>
- To: eCos patches <ecos-patches at sources dot redhat dot com>
- Date: 14 Aug 2002 07:19:27 -0600
- Subject: PC - larger PCI spaces
Index: hal/i386/pcmb/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/i386/pcmb/current/ChangeLog,v
retrieving revision 1.15
diff -u -5 -p -r1.15 ChangeLog
--- hal/i386/pcmb/current/ChangeLog 23 May 2002 23:03:14 -0000 1.15
+++ hal/i386/pcmb/current/ChangeLog 14 Aug 2002 12:51:42 -0000
@@ -1,5 +1,11 @@
+2002-08-14 Gary Thomas <gthomas@ecoscentric.com>
+2002-08-14 Drew Moseley <drew.moseley@intel.com>
+
+ * cdl/hal_i386_pcmb.cdl:
+ * include/pcmb_io.h: Increase PCI space to include all possible
+ busses, slots, etc. Required because defaults are often too small.
2002-04-29 Gary Thomas <gthomas@redhat.com>
* src/pcmb_misc.c (hal_pcmb_init): Disable NMI at this point since
no real handlers are in place to handle it. This fixes a problem
with manual reset code for IDE drivers which can cause NMI.
Index: hal/i386/pcmb/current/cdl/hal_i386_pcmb.cdl
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/i386/pcmb/current/cdl/hal_i386_pcmb.cdl,v
retrieving revision 1.6
diff -u -5 -p -r1.6 hal_i386_pcmb.cdl
--- hal/i386/pcmb/current/cdl/hal_i386_pcmb.cdl 23 May 2002 23:03:14 -0000 1.6
+++ hal/i386/pcmb/current/cdl/hal_i386_pcmb.cdl 14 Aug 2002 12:49:49 -0000
@@ -7,10 +7,11 @@
# ====================================================================
#####ECOSGPLCOPYRIGHTBEGIN####
## -------------------------------------------
## This file is part of eCos, the Embedded Configurable Operating System.
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
+## Copyright (C) 2002 Gary Thomas
##
## eCos is free software; you can redistribute it and/or modify it under
## the terms of the GNU General Public License as published by the Free
## Software Foundation; either version 2 or (at your option) any later version.
##
@@ -40,11 +41,11 @@
# ====================================================================
######DESCRIPTIONBEGIN####
#
# Author(s): jskov
# Original data: jskov
-# Contributors: nickg
+# Contributors: nickg, gthomas
# Date: 1999-11-01
#
#####DESCRIPTIONEND####
#
# ====================================================================
@@ -117,10 +118,22 @@ cdl_package CYGPKG_HAL_I386_PCMB {
display "Amount of Extended RAM available."
flavor data
default_value 0x00100000
active_if { CYGPKG_HAL_I386_PCMB_MEMSIZE == "HARDCODE" }
}
+ }
+
+ cdl_option CYGSEM_HAL_I386_PC_LARGE_PCI_SPACE {
+ display "Search entire PCI space"
+ flavor bool
+ default_value 0
+ description "
+ This option enables searching the entire PCI address space, including
+ up to 256 busses, etc. Probably only useful when there are bridges or
+ other PCI expanding devices (such as a board with it's own PCI bus)
+ in the system. If disabled, the system will revert to the default
+ PCI space size (typically 8 busses)."
}
cdl_option CYGNUM_HAL_I386_PC_STARTUP_VIDEO_MODE {
display "Switch the display to an alternative video mode"
flavor booldata
Index: hal/i386/pcmb/current/include/pcmb_io.h
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/i386/pcmb/current/include/pcmb_io.h,v
retrieving revision 1.8
diff -u -5 -p -r1.8 pcmb_io.h
--- hal/i386/pcmb/current/include/pcmb_io.h 23 May 2002 23:03:15 -0000 1.8
+++ hal/i386/pcmb/current/include/pcmb_io.h 14 Aug 2002 12:49:24 -0000
@@ -10,10 +10,11 @@
//=============================================================================
//####ECOSGPLCOPYRIGHTBEGIN####
// -------------------------------------------
// This file is part of eCos, the Embedded Configurable Operating System.
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
+// Copyright (C) 2002 Gary Thomas
//
// eCos is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 2 or (at your option) any later version.
//
@@ -125,10 +126,18 @@ CYG_MACRO_START
CYG_MACRO_END
//-----------------------------------------------------------------------------
// Resources
+
+#ifdef CYGSEM_HAL_I386_PC_LARGE_PCI_SPACE
+// Use unrestricted PCI space
+#define CYG_PCI_MAX_BUS 256
+#define CYG_PCI_MIN_DEV 0
+#define CYG_PCI_MAX_DEV 32
+#define CYG_PCI_MAX_FN 8
+#endif
// This is where the PCI spaces are mapped in the CPU's address space.
// In the PC the PCI address space is mapped 1-1 into the CPU physical
// address space, so these values are both zero.
--
------------------------------------------------------------
Gary Thomas |
eCosCentric, Ltd. |
+1 (970) 229-1963 | eCos & RedBoot experts
gthomas@ecoscentric.com |
http://www.ecoscentric.com/ |
------------------------------------------------------------