forked from Imagelibrary/rtems
@@ -39,7 +39,7 @@
|
|||||||
/*=========================================================================*\
|
/*=========================================================================*\
|
||||||
| Function: |
|
| Function: |
|
||||||
\*-------------------------------------------------------------------------*/
|
\*-------------------------------------------------------------------------*/
|
||||||
bool mbx8xx_pcmciaide_probe
|
static bool mbx8xx_pcmciaide_probe
|
||||||
(
|
(
|
||||||
/*-------------------------------------------------------------------------*\
|
/*-------------------------------------------------------------------------*\
|
||||||
| Purpose: |
|
| Purpose: |
|
||||||
@@ -108,7 +108,7 @@ bool mbx8xx_pcmciaide_probe
|
|||||||
/*=========================================================================*\
|
/*=========================================================================*\
|
||||||
| Function: |
|
| Function: |
|
||||||
\*-------------------------------------------------------------------------*/
|
\*-------------------------------------------------------------------------*/
|
||||||
void mbx8xx_pcmciaide_initialize
|
static void mbx8xx_pcmciaide_initialize
|
||||||
(
|
(
|
||||||
/*-------------------------------------------------------------------------*\
|
/*-------------------------------------------------------------------------*\
|
||||||
| Purpose: |
|
| Purpose: |
|
||||||
@@ -134,7 +134,7 @@ void mbx8xx_pcmciaide_initialize
|
|||||||
/*=========================================================================*\
|
/*=========================================================================*\
|
||||||
| Function: |
|
| Function: |
|
||||||
\*-------------------------------------------------------------------------*/
|
\*-------------------------------------------------------------------------*/
|
||||||
void mbx8xx_pcmciaide_read_reg
|
static void mbx8xx_pcmciaide_read_reg
|
||||||
(
|
(
|
||||||
/*-------------------------------------------------------------------------*\
|
/*-------------------------------------------------------------------------*\
|
||||||
| Purpose: |
|
| Purpose: |
|
||||||
@@ -172,7 +172,7 @@ void mbx8xx_pcmciaide_read_reg
|
|||||||
/*=========================================================================*\
|
/*=========================================================================*\
|
||||||
| Function: |
|
| Function: |
|
||||||
\*-------------------------------------------------------------------------*/
|
\*-------------------------------------------------------------------------*/
|
||||||
void mbx8xx_pcmciaide_write_reg
|
static void mbx8xx_pcmciaide_write_reg
|
||||||
(
|
(
|
||||||
/*-------------------------------------------------------------------------*\
|
/*-------------------------------------------------------------------------*\
|
||||||
| Purpose: |
|
| Purpose: |
|
||||||
@@ -210,7 +210,7 @@ void mbx8xx_pcmciaide_write_reg
|
|||||||
/*=========================================================================*\
|
/*=========================================================================*\
|
||||||
| Function: |
|
| Function: |
|
||||||
\*-------------------------------------------------------------------------*/
|
\*-------------------------------------------------------------------------*/
|
||||||
void mbx8xx_pcmciaide_read_block
|
static void mbx8xx_pcmciaide_read_block
|
||||||
(
|
(
|
||||||
/*-------------------------------------------------------------------------*\
|
/*-------------------------------------------------------------------------*\
|
||||||
| Purpose: |
|
| Purpose: |
|
||||||
@@ -267,7 +267,7 @@ void mbx8xx_pcmciaide_read_block
|
|||||||
/*=========================================================================*\
|
/*=========================================================================*\
|
||||||
| Function: |
|
| Function: |
|
||||||
\*-------------------------------------------------------------------------*/
|
\*-------------------------------------------------------------------------*/
|
||||||
void mbx8xx_pcmciaide_write_block
|
static void mbx8xx_pcmciaide_write_block
|
||||||
(
|
(
|
||||||
/*-------------------------------------------------------------------------*\
|
/*-------------------------------------------------------------------------*\
|
||||||
| Purpose: |
|
| Purpose: |
|
||||||
@@ -325,7 +325,7 @@ void mbx8xx_pcmciaide_write_block
|
|||||||
/*=========================================================================*\
|
/*=========================================================================*\
|
||||||
| Function: |
|
| Function: |
|
||||||
\*-------------------------------------------------------------------------*/
|
\*-------------------------------------------------------------------------*/
|
||||||
int mbx8xx_pcmciaide_control
|
static int mbx8xx_pcmciaide_control
|
||||||
(
|
(
|
||||||
/*-------------------------------------------------------------------------*\
|
/*-------------------------------------------------------------------------*\
|
||||||
| Purpose: |
|
| Purpose: |
|
||||||
@@ -348,7 +348,7 @@ int mbx8xx_pcmciaide_control
|
|||||||
/*=========================================================================*\
|
/*=========================================================================*\
|
||||||
| Function: |
|
| Function: |
|
||||||
\*-------------------------------------------------------------------------*/
|
\*-------------------------------------------------------------------------*/
|
||||||
rtems_status_code mbx8xx_pcmciaide_config_io_speed
|
static rtems_status_code mbx8xx_pcmciaide_config_io_speed
|
||||||
(
|
(
|
||||||
/*-------------------------------------------------------------------------*\
|
/*-------------------------------------------------------------------------*\
|
||||||
| Purpose: |
|
| Purpose: |
|
||||||
|
|||||||
@@ -73,6 +73,18 @@ extern int rtems_enet_driver_attach (struct rtems_bsdnet_ifconfig *config, int a
|
|||||||
*/
|
*/
|
||||||
#define RTEMS_BSP_HAS_IDE_DRIVER
|
#define RTEMS_BSP_HAS_IDE_DRIVER
|
||||||
|
|
||||||
|
extern uint32_t bsp_clock_speed;
|
||||||
|
|
||||||
|
char serial_getc(void);
|
||||||
|
|
||||||
|
int serial_tstc(void);
|
||||||
|
|
||||||
|
void serial_init(void);
|
||||||
|
|
||||||
|
int mbx8xx_console_get_configuration(void);
|
||||||
|
|
||||||
|
void _InitMBX8xx(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ const static unsigned int SIU_IvectMask[BSP_SIU_IRQ_NUMBER] =
|
|||||||
0xFFF00000, 0xFFF80000, 0xFFFC0000, 0xFFFE0000
|
0xFFF00000, 0xFFF80000, 0xFFFC0000, 0xFFFE0000
|
||||||
};
|
};
|
||||||
|
|
||||||
int BSP_irq_enable_at_cpm(const rtems_irq_number irqLine)
|
static int BSP_irq_enable_at_cpm(const rtems_irq_number irqLine)
|
||||||
{
|
{
|
||||||
int cpm_irq_index;
|
int cpm_irq_index;
|
||||||
|
|
||||||
@@ -76,7 +76,7 @@ int BSP_irq_enable_at_cpm(const rtems_irq_number irqLine)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int BSP_irq_disable_at_cpm(const rtems_irq_number irqLine)
|
static int BSP_irq_disable_at_cpm(const rtems_irq_number irqLine)
|
||||||
{
|
{
|
||||||
int cpm_irq_index;
|
int cpm_irq_index;
|
||||||
|
|
||||||
@@ -146,7 +146,7 @@ volatile unsigned int maxLoop = 0;
|
|||||||
/*
|
/*
|
||||||
* High level IRQ handler called from shared_raw_irq_code_entry
|
* High level IRQ handler called from shared_raw_irq_code_entry
|
||||||
*/
|
*/
|
||||||
int C_dispatch_irq_handler (BSP_Exception_frame *frame, unsigned int excNum)
|
static int C_dispatch_irq_handler (BSP_Exception_frame *frame, unsigned int excNum)
|
||||||
{
|
{
|
||||||
register unsigned int irq;
|
register unsigned int irq;
|
||||||
register unsigned cpmIntr; /* boolean */
|
register unsigned cpmIntr; /* boolean */
|
||||||
@@ -249,7 +249,7 @@ int C_dispatch_irq_handler (BSP_Exception_frame *frame, unsigned int excNum)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void BSP_SIU_irq_init(void)
|
static void BSP_SIU_irq_init(void)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* In theory we should initialize two registers at least :
|
* In theory we should initialize two registers at least :
|
||||||
@@ -267,7 +267,7 @@ void BSP_SIU_irq_init(void)
|
|||||||
/*
|
/*
|
||||||
* Initialize CPM interrupt management
|
* Initialize CPM interrupt management
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
BSP_CPM_irq_init(void)
|
BSP_CPM_irq_init(void)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -652,6 +652,7 @@ m8xx_Enet_retire_tx_bd (struct m8xx_enet_struct *sc)
|
|||||||
nRetired--;
|
nRetired--;
|
||||||
m = sc->txMbuf[sc->txBdTail];
|
m = sc->txMbuf[sc->txBdTail];
|
||||||
MFREE (m, n);
|
MFREE (m, n);
|
||||||
|
(void) n;
|
||||||
if (++sc->txBdTail == sc->txBdCount)
|
if (++sc->txBdTail == sc->txBdCount)
|
||||||
sc->txBdTail = 0;
|
sc->txBdTail = 0;
|
||||||
}
|
}
|
||||||
@@ -1199,7 +1200,7 @@ fec_sendpacket (struct ifnet *ifp, struct mbuf *m)
|
|||||||
/*
|
/*
|
||||||
* Driver transmit daemon
|
* Driver transmit daemon
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
scc_txDaemon (void *arg)
|
scc_txDaemon (void *arg)
|
||||||
{
|
{
|
||||||
struct m8xx_enet_struct *sc = (struct m8xx_enet_struct *)arg;
|
struct m8xx_enet_struct *sc = (struct m8xx_enet_struct *)arg;
|
||||||
@@ -1519,7 +1520,7 @@ fec_ioctl (struct ifnet *ifp, int command, caddr_t data)
|
|||||||
/*
|
/*
|
||||||
* Attach an SCC driver to the system
|
* Attach an SCC driver to the system
|
||||||
*/
|
*/
|
||||||
int
|
static int
|
||||||
rtems_scc1_driver_attach (struct rtems_bsdnet_ifconfig *config)
|
rtems_scc1_driver_attach (struct rtems_bsdnet_ifconfig *config)
|
||||||
{
|
{
|
||||||
struct m8xx_enet_struct *sc;
|
struct m8xx_enet_struct *sc;
|
||||||
|
|||||||
@@ -62,9 +62,6 @@
|
|||||||
#include <bsp/irq.h>
|
#include <bsp/irq.h>
|
||||||
#include <rtems/bspIo.h> /* for printk */
|
#include <rtems/bspIo.h> /* for printk */
|
||||||
|
|
||||||
/* BSP supplied routine */
|
|
||||||
extern int mbx8xx_console_get_configuration(void);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Interrupt-driven input buffer
|
* Interrupt-driven input buffer
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -42,6 +42,7 @@
|
|||||||
|
|
||||||
#include <stdlib.h> /* for atexit() */
|
#include <stdlib.h> /* for atexit() */
|
||||||
#include <mpc8xx.h>
|
#include <mpc8xx.h>
|
||||||
|
#include <bsp.h>
|
||||||
|
|
||||||
volatile uint32_t Clock_driver_ticks;
|
volatile uint32_t Clock_driver_ticks;
|
||||||
extern volatile m8xx_t m8xx;
|
extern volatile m8xx_t m8xx;
|
||||||
@@ -49,7 +50,6 @@ extern int BSP_get_clock_irq_level(void);
|
|||||||
extern int BSP_connect_clock_handler(rtems_isr_entry);
|
extern int BSP_connect_clock_handler(rtems_isr_entry);
|
||||||
extern int BSP_disconnect_clock_handler(void);
|
extern int BSP_disconnect_clock_handler(void);
|
||||||
extern uint32_t bsp_clicks_per_usec;
|
extern uint32_t bsp_clicks_per_usec;
|
||||||
extern uint32_t bsp_clock_speed;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Prototypes
|
* Prototypes
|
||||||
|
|||||||
@@ -50,16 +50,10 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
|
#include <bsp.h>
|
||||||
#include <bsp/irq.h>
|
#include <bsp/irq.h>
|
||||||
#include <rtems/bspIo.h> /* for printk */
|
#include <rtems/bspIo.h> /* for printk */
|
||||||
|
|
||||||
int BSP_irq_enabled_at_cpm(const rtems_irq_number irqLine);
|
|
||||||
|
|
||||||
/* BSP supplied routine */
|
|
||||||
extern int mbx8xx_console_get_configuration(void);
|
|
||||||
|
|
||||||
extern uint32_t bsp_clock_speed;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Interrupt-driven input buffer
|
* Interrupt-driven input buffer
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user