2002-11-01 Joel Sherrill <joel@OARcorp.com>

* canbus/canbus.c, clock/p_clock.c, console/console.c,
	network/network.c, startup/bspstart.c: Removed warnings.
This commit is contained in:
Joel Sherrill
2002-11-01 21:54:20 +00:00
parent 52a2cd9139
commit bbb71a1573
6 changed files with 20 additions and 12 deletions

View File

@@ -1,3 +1,8 @@
2002-11-01 Joel Sherrill <joel@OARcorp.com>
* canbus/canbus.c, clock/p_clock.c, console/console.c,
network/network.c, startup/bspstart.c: Removed warnings.
2002-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* .cvsignore: Reformat.

View File

@@ -109,10 +109,12 @@ rtems_device_driver canbus_initialize(
)
{
int i,j;
#if 0
char dev_str[16]; /* This allows us to have a device name up to */
/* 15 chars long. If we only use names like */
/* /dev/can0 (9 chars) we will be fine up to */
/* /dev/can9999999 */
#endif
rtems_status_code status;
rtems_isr_entry old_handler;
@@ -311,7 +313,7 @@ rtems_device_driver canbus_open(
case 0: m8xx.simask |= M8xx_SIMASK_IRM3; break;
case 1: m8xx.simask |= M8xx_SIMASK_IRM4; break;
case 2: m8xx.simask |= M8xx_SIMASK_IRM2; break;
default: return;
default: return 0xffffffff;
}
return RTEMS_SUCCESSFUL;

View File

@@ -16,6 +16,7 @@
#include <bsp.h>
#include <bsp/irq.h>
#include <rtems/bspIo.h>
extern void clockOn(void*);
extern void clockOff (void*);

View File

@@ -32,6 +32,8 @@
#include <termios.h>
#include <rtems/bspIo.h>
extern void rtems_panic(char *,int);
static void _BSP_null_char( char c ) {return;}
BSP_output_char_function_type BSP_output_char = _BSP_null_char;
@@ -124,7 +126,7 @@ rtems_device_driver console_open(rtems_device_major_number major,
sccregs = &m8xx.scc4;
break;
default:
rtems_panic ("CONSOLE: bad minor number");
rtems_panic ("CONSOLE: bad minor number", 0);
}
if (sccregs)

View File

@@ -32,6 +32,8 @@
#include <netinet/if_ether.h>
#include <bsp/irq.h>
extern void rtems_panic(char *,int);
/*
* Number of interfaces supported by this driver
*/
@@ -127,7 +129,7 @@ static void m8xx_scc1_ethernet_off(const rtems_irq_connect_data* ptr)
static void m8xx_scc1_ethernet_isOn(const rtems_irq_connect_data* ptr)
{
return BSP_irq_enabled_at_cpm (ptr->name);
BSP_irq_enabled_at_cpm (ptr->name);
}
/*
@@ -201,8 +203,6 @@ m860_scc_initialize_hardware (struct m860_enet_struct *sc)
{
int i;
unsigned char *hwaddr;
rtems_status_code status;
rtems_isr_entry old_handler;
/*
* Configure port A CLK1, CLK2, TXD1 and RXD1 pins
@@ -241,7 +241,7 @@ m860_scc_initialize_hardware (struct m860_enet_struct *sc)
sc->txMbuf = malloc (sc->txBdCount * sizeof *sc->txMbuf,
M_MBUF, M_NOWAIT);
if (!sc->rxMbuf || !sc->txMbuf)
rtems_panic ("No memory for mbuf pointers");
rtems_panic ("No memory for mbuf pointers",0);
/*
* Set receiver and transmitter buffer descriptor bases
@@ -361,7 +361,7 @@ m860_scc_initialize_hardware (struct m860_enet_struct *sc)
* Set up interrupts
*/
if (!BSP_install_rtems_irq_handler (&ethernetSCC1IrqData)) {
rtems_panic ("Can't attach M8xx SCC1 interrupt handler\n");
rtems_panic ("Can't attach M8xx SCC1 interrupt handler\n",0);
}
m8xx.scc1.sccm = 0; /* No interrupts unmasked till necessary */
@@ -428,7 +428,6 @@ m860_fec_initialize_hardware (struct m860_enet_struct *sc)
int i;
unsigned char *hwaddr;
rtems_status_code status;
rtems_isr_entry old_handler;
/*
* Issue reset to FEC
@@ -494,7 +493,7 @@ m860_fec_initialize_hardware (struct m860_enet_struct *sc)
sc->txMbuf = malloc (sc->txBdCount * sizeof *sc->txMbuf,
M_MBUF, M_NOWAIT);
if (!sc->rxMbuf || !sc->txMbuf)
rtems_panic ("No memory for mbuf pointers");
rtems_panic ("No memory for mbuf pointers",0);
/*
* Set receiver and transmitter buffer descriptor bases
@@ -571,7 +570,7 @@ m860_fec_initialize_hardware (struct m860_enet_struct *sc)
* Set up interrupts
*/
if (!BSP_install_rtems_irq_handler (&ethernetFECIrqData))
rtems_panic ("Can't attach M860 FEC interrupt handler\n");
rtems_panic ("Can't attach M860 FEC interrupt handler\n", 0);
}
@@ -1620,8 +1619,6 @@ rtems_fec_driver_attach (struct rtems_bsdnet_ifconfig *config)
int
rtems_enet_driver_attach (struct rtems_bsdnet_ifconfig *config)
{
int i;
if ((m8xx.fec.mii_data & 0xffff) == 0x2000) {
/* rtems_scc1_driver_attach(config);*/
return rtems_fec_driver_attach(config);

View File

@@ -118,6 +118,7 @@ void bsp_start(void)
ppc_cpu_revision_t myCpuRevision;
register unsigned char* intrStack;
register unsigned int intrNestingLevel = 0;
extern void cpu_init(void);
/*
* Get CPU identification dynamically. Note that the get_ppc_cpu_type() function