forked from Imagelibrary/rtems
Updated Legacy code in arm gumstix
This commit is contained in:
committed by
Joel Sherrill
parent
893d66937a
commit
e183211be1
@@ -350,9 +350,9 @@ ne_interrupt_handler (rtems_irq_hdl_param handle)
|
|||||||
/* Turn NE2000 interrupts on. */
|
/* Turn NE2000 interrupts on. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
ne_interrupt_on (const rtems_irq_connect_data *irq)
|
ne_interrupt_on (const void * handle)
|
||||||
{
|
{
|
||||||
struct ne_softc *sc = irq->handle;
|
struct ne_softc *sc = handle;
|
||||||
|
|
||||||
#ifdef DEBUG_NE
|
#ifdef DEBUG_NE
|
||||||
printk ("ne_interrupt_on()\n");
|
printk ("ne_interrupt_on()\n");
|
||||||
@@ -364,9 +364,9 @@ ne_interrupt_on (const rtems_irq_connect_data *irq)
|
|||||||
/* Turn NE2000 interrupts off. See ne_interrupt_on. */
|
/* Turn NE2000 interrupts off. See ne_interrupt_on. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
ne_interrupt_off (const rtems_irq_connect_data *irq)
|
ne_interrupt_off (const void * handle)
|
||||||
{
|
{
|
||||||
struct ne_softc *sc = irq->handle;
|
struct ne_softc *sc = handle;
|
||||||
|
|
||||||
#ifdef DEBUG_NE
|
#ifdef DEBUG_NE
|
||||||
printk ("ne_interrupt_off()\n");
|
printk ("ne_interrupt_off()\n");
|
||||||
@@ -380,9 +380,9 @@ ne_interrupt_off (const rtems_irq_connect_data *irq)
|
|||||||
*If it is eanbled, return 1
|
*If it is eanbled, return 1
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
ne_interrupt_is_on (const rtems_irq_connect_data *irq)
|
ne_interrupt_is_on (const void * handle)
|
||||||
{
|
{
|
||||||
struct ne_softc *sc = irq->handle;
|
struct ne_softc *sc = handle;
|
||||||
unsigned char imr;
|
unsigned char imr;
|
||||||
#ifdef DEBUG_NE
|
#ifdef DEBUG_NE
|
||||||
printk("ne_interrupt_is_on()\n");
|
printk("ne_interrupt_is_on()\n");
|
||||||
@@ -479,21 +479,20 @@ ne_init_hardware (struct ne_softc *sc)
|
|||||||
static void
|
static void
|
||||||
ne_init_irq_handler(struct ne_softc *sc)
|
ne_init_irq_handler(struct ne_softc *sc)
|
||||||
{
|
{
|
||||||
rtems_irq_connect_data irq;
|
rtems_status_code status = RTEMS_SUCCESSFUL;
|
||||||
|
|
||||||
#ifdef DEBUG_NE
|
#ifdef DEBUG_NE
|
||||||
printk("ne_init_irq_handler(%d)\n", sc->irno);
|
printk("ne_init_irq_handler(%d)\n", sc->irno);
|
||||||
#endif
|
#endif
|
||||||
irq.name = sc->irno;
|
status = rtems_interrupt_handler_install(
|
||||||
irq.hdl = ne_interrupt_handler;
|
sc->irno,
|
||||||
irq.handle = sc;
|
"RTL8019",
|
||||||
irq.on = ne_interrupt_on;
|
RTEMS_INTERRUPT_UNIQUE,
|
||||||
irq.off = ne_interrupt_off;
|
ne_interrupt_handler,
|
||||||
irq.isOn = ne_interrupt_is_on;
|
sc
|
||||||
|
);
|
||||||
if (!BSP_install_rtems_irq_handler (&irq))
|
assert(status == RTEMS_SUCCESSFUL);
|
||||||
rtems_panic ("Can't attach NE interrupt handler for irq %d\n", sc->irno);
|
ne_interrupt_on(sc);
|
||||||
}
|
|
||||||
|
|
||||||
/* The NE2000 packet receive daemon. This task is started when the
|
/* The NE2000 packet receive daemon. This task is started when the
|
||||||
NE2000 driver is initialized. */
|
NE2000 driver is initialized. */
|
||||||
|
|||||||
Reference in New Issue
Block a user