All of lore.kernel.org
 help / color / mirror / Atom feed
* iop_msg_pool
@ 2013-06-26  9:45 Geert Uytterhoeven
  2013-06-26 10:48 ` iop_msg_pool Finn Thain
  0 siblings, 1 reply; 11+ messages in thread
From: Geert Uytterhoeven @ 2013-06-26  9:45 UTC (permalink / raw)
  To: Linux/m68k

arch/m68k/mac/iop.c has:

static struct iop_msg iop_msg_pool[NUM_IOP_MSGS];

As iop_msg_pool consumes 4928 bytes, it should be allocated dynamically,
especially for multi-platform kernels not running on Mac.

Furthermore:

/*
 * Initialize the IOPs, if present.
 */

void __init iop_init(void)
{
        int i;

        if (iop_scc_present) {
                printk("IOP: detected SCC IOP at %p\n", iop_base[IOP_NUM_SCC]);
        }
        if (iop_ism_present) {
                printk("IOP: detected ISM IOP at %p\n", iop_base[IOP_NUM_ISM]);
                iop_start(iop_base[IOP_NUM_ISM]);
                iop_alive(iop_base[IOP_NUM_ISM]); /* clears the alive flag */
        }

        /* Make the whole pool available and empty the queues */

        for (i = 0 ; i < NUM_IOP_MSGS ; i++) {
                iop_msg_pool[i].status = IOP_MSGSTATUS_UNUSED;
        }

        for (i = 0 ; i < NUM_IOP_CHAN ; i++) {
                iop_send_queue[IOP_NUM_SCC][i] = NULL;
                iop_send_queue[IOP_NUM_ISM][i] = NULL;
                iop_listeners[IOP_NUM_SCC][i].devname = NULL;
                iop_listeners[IOP_NUM_SCC][i].handler = NULL;
                iop_listeners[IOP_NUM_ISM][i].devname = NULL;
                iop_listeners[IOP_NUM_ISM][i].handler = NULL;
        }
}

However, despite the comment at the top, all of the above is done
unconditionally?
Do all Macs use the IOP functionality?

P.S. Before anyone mentions zorro_autocon: yes, it's on my list ;-)

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-07-01 22:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-26  9:45 iop_msg_pool Geert Uytterhoeven
2013-06-26 10:48 ` iop_msg_pool Finn Thain
2013-06-26 11:07   ` iop_msg_pool Geert Uytterhoeven
2013-06-26 12:14     ` iop_msg_pool Finn Thain
2013-06-28  8:59   ` iop_msg_pool Geert Uytterhoeven
2013-06-29  4:47     ` iop_msg_pool Finn Thain
2013-06-29  8:15       ` iop_msg_pool Geert Uytterhoeven
2013-07-01  6:57       ` iop_msg_pool Brad Boyer
2013-07-01  7:54         ` iop_msg_pool Finn Thain
2013-07-01 22:51           ` iop_msg_pool Brad Boyer
2013-07-01  7:39   ` iop_msg_pool Brad Boyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.