forked from Imagelibrary/rtems
2004-03-05 Joel Sherrill <joel@OARcorp.com>
* bootloader/pci.c: Remove warnings by adding include <string.h>. * irq/irq.c: Clean up includes to remove warnings. * pci/pci.c, pci/pci.h, startup/bspstart.c: Better use of const on struct _int_map.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2004-03-05 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* bootloader/pci.c: Remove warnings by adding include <string.h>.
|
||||
* irq/irq.c: Clean up includes to remove warnings.
|
||||
* pci/pci.c, pci/pci.h, startup/bspstart.c: Better use of const
|
||||
on struct _int_map.
|
||||
|
||||
2004-03-03 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* vectors/vectors.h, vectors/vectors_init.c: Undo previous change.
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <libcpu/page.h>
|
||||
#include <bsp/consoleIo.h>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
||||
typedef unsigned int u32;
|
||||
|
||||
@@ -11,13 +11,13 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <rtems/system.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <bsp.h>
|
||||
#include <bsp/irq.h>
|
||||
#include <bsp/VME.h>
|
||||
#include <bsp/openpic.h>
|
||||
#include <rtems/score/thread.h>
|
||||
#include <rtems/score/apiext.h>
|
||||
#include <rtems/score/apiext.h> /* for post ISR signal processing */
|
||||
#include <libcpu/raw_exception.h>
|
||||
#include <libcpu/io.h>
|
||||
#include <bsp/vectors.h>
|
||||
|
||||
@@ -236,7 +236,8 @@ const pci_config_access_functions pci_direct_functions = {
|
||||
** Validate a test interrupt name and print a warning if its not one of
|
||||
** the names defined in the routing record.
|
||||
*/
|
||||
static int test_intname( struct _int_map *row, int pbus, int pslot, int int_pin, int int_name )
|
||||
static int test_intname(
|
||||
const struct _int_map *row, int pbus, int pslot, int int_pin, int int_name )
|
||||
{
|
||||
int j,k;
|
||||
int _nopin= -1, _noname= -1;
|
||||
@@ -333,7 +334,7 @@ static int FindPCIbridge( int mybus, struct pcibridge *pb )
|
||||
|
||||
|
||||
|
||||
void FixupPCI( struct _int_map *bspmap, int (*swizzler)(int,int) )
|
||||
void FixupPCI( const struct _int_map *bspmap, int (*swizzler)(int,int) )
|
||||
{
|
||||
unsigned char cvalue;
|
||||
unsigned16 devid;
|
||||
|
||||
@@ -1164,7 +1164,7 @@ struct _int_map
|
||||
struct _pin_routes pin_route[5];
|
||||
};
|
||||
|
||||
void FixupPCI( struct _int_map *, int (*swizzler)(int,int) );
|
||||
void FixupPCI( const struct _int_map *, int (*swizzler)(int,int) );
|
||||
|
||||
|
||||
/* scan for a specific device */
|
||||
|
||||
@@ -309,7 +309,7 @@ void bsp_start( void )
|
||||
InitializePCI();
|
||||
|
||||
{
|
||||
struct _int_map *bspmap = motorolaIntMap(currentBoard);
|
||||
const struct _int_map *bspmap = motorolaIntMap(currentBoard);
|
||||
if( bspmap )
|
||||
{
|
||||
printk("pci : Configuring interrupt routing for '%s'\n", motorolaBoardToString(currentBoard));
|
||||
|
||||
Reference in New Issue
Block a user