OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [branches/] [stable_0_2_x/] [or1ksim/] [peripheral/] [channels/] [channel.c] - Diff between revs 1118 and 1127

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 1118 Rev 1127
Line 35... Line 35...
        const struct channel_ops * ops;
        const struct channel_ops * ops;
        struct channel_factory * next;
        struct channel_factory * next;
};
};
 
 
extern struct channel_ops fd_channel_ops, file_channel_ops,
extern struct channel_ops fd_channel_ops, file_channel_ops,
        xterm_channel_ops, tcp_channel_ops;
        xterm_channel_ops, tcp_channel_ops, tty_channel_ops;
 
 
static struct channel_factory preloaded[] =
static struct channel_factory preloaded[] =
{
{
        { "fd",     &fd_channel_ops,     &preloaded[1] },
        { "fd",     &fd_channel_ops,     &preloaded[1] },
        { "file",   &file_channel_ops,   &preloaded[2] },
        { "file",   &file_channel_ops,   &preloaded[2] },
        { "xterm",  &xterm_channel_ops,  &preloaded[3] },
        { "xterm",  &xterm_channel_ops,  &preloaded[3] },
        { "tcp",    &tcp_channel_ops,    NULL          }
        { "tcp",    &tcp_channel_ops,    &preloaded[4] },
 
        { "tty",    &tty_channel_ops,    NULL          }
};
};
 
 
static struct channel_factory * head = &preloaded[0];
static struct channel_factory * head = &preloaded[0];
 
 
static struct channel_factory * find_channel_factory(const char * name);
static struct channel_factory * find_channel_factory(const char * name);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.