Put CPU specific bus_space routines into separate files

The code in rtemsbsd/freebsd/machine/bus.h assumed that all bus space
accesses were through memory in a simple fashion. The i386 has a true
distinction between I/O and memory space which must be accounted for.

This may not be the eventual structure of this code but we must
have different bus space accessors for different hardware configurations.
And in many, if not most, cases we will want these to be inlined for
performance.
This commit is contained in:
Joel Sherrill
2012-07-06 10:57:12 -05:00
parent 4d28b934bb
commit dbda80875a
6 changed files with 2534 additions and 594 deletions

View File

@@ -482,7 +482,6 @@ rtems.addRTEMSHeaderFiles(
'rtems/machine/bus_dma.h',
'rtems/machine/rtems-bsd-config.h',
'rtems/machine/clock.h',
'rtems/machine/cpufunc.h',
'rtems/machine/endian.h',
'rtems/macpue/_limits.h',
'rtems/machine/_align.h',
@@ -1212,6 +1211,7 @@ devNic.addCPUDependentHeaderFiles(
'i386/include/intr_machdep.h',
'i386/include/legacyvar.h',
'i386/include/pci_cfgreg.h',
'i386/include/cpufunc.h',
]
)
devNic.addCPUDependentSourceFiles(