TB_TYPE_PORT
if (type == TB_TYPE_PORT) {
if ((port & ICM_PORT_TYPE_MASK) != TB_TYPE_PORT)
if (port->config.type == TB_TYPE_PORT) {
if (port->config.type != TB_TYPE_PORT)
return port && port->port && port->config.type == TB_TYPE_PORT;
.out_type = TB_TYPE_PORT,
.in_type = TB_TYPE_PORT,
.out_type = TB_TYPE_PORT,
sw->ports[3].config.type = TB_TYPE_PORT;
.in_type = TB_TYPE_PORT,
.out_type = TB_TYPE_PORT,
.in_type = TB_TYPE_PORT,
sw->ports[4].config.type = TB_TYPE_PORT;
.out_type = TB_TYPE_PORT,
.in_type = TB_TYPE_PORT,
.out_type = TB_TYPE_PORT,
.in_type = TB_TYPE_PORT,
.out_type = TB_TYPE_PORT,
.in_type = TB_TYPE_PORT,
.out_type = TB_TYPE_PORT,
.in_type = TB_TYPE_PORT,
.out_type = TB_TYPE_PORT,
.in_type = TB_TYPE_PORT,
.out_type = TB_TYPE_PORT,
.in_type = TB_TYPE_PORT,
.out_type = TB_TYPE_PORT,
.in_type = TB_TYPE_PORT,
.out_type = TB_TYPE_PORT,
.in_type = TB_TYPE_PORT,
.out_type = TB_TYPE_PORT,
.in_type = TB_TYPE_PORT,
.out_type = TB_TYPE_PORT,
.in_type = TB_TYPE_PORT,
.out_type = TB_TYPE_PORT,
.in_type = TB_TYPE_PORT,
sw->ports[0].config.type = TB_TYPE_PORT;
sw->ports[1].config.type = TB_TYPE_PORT;
sw->ports[2].config.type = TB_TYPE_PORT;
sw->ports[3].config.type = TB_TYPE_PORT;
sw->ports[4].config.type = TB_TYPE_PORT;
sw->ports[5].config.type = TB_TYPE_PORT;
sw->ports[6].config.type = TB_TYPE_PORT;
sw->ports[7].config.type = TB_TYPE_PORT;
sw->ports[8].config.type = TB_TYPE_PORT;
{ .route = 0x0, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x1, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x0, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x1, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x1, .port = 3, .type = TB_TYPE_PORT },
{ .route = 0x301, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x0, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x1, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x1, .port = 5, .type = TB_TYPE_PORT },
{ .route = 0x501, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x50301, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x301, .port = 5, .type = TB_TYPE_PORT },
{ .route = 0x301, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x1, .port = 3, .type = TB_TYPE_PORT },
{ .route = 0x1, .port = 7, .type = TB_TYPE_PORT },
{ .route = 0x701, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x701, .port = 7, .type = TB_TYPE_PORT },
{ .route = 0x70701, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x70701, .port = 3, .type = TB_TYPE_PORT },
{ .route = 0x3070701, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x3070701, .port = 5, .type = TB_TYPE_PORT },
{ .route = 0x503070701, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x30303030301, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x303030301, .port = 3, .type = TB_TYPE_PORT },
{ .route = 0x303030301, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x3030301, .port = 3, .type = TB_TYPE_PORT },
{ .route = 0x3030301, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x30301, .port = 3, .type = TB_TYPE_PORT },
{ .route = 0x30301, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x301, .port = 3, .type = TB_TYPE_PORT },
{ .route = 0x301, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x1, .port = 3, .type = TB_TYPE_PORT },
{ .route = 0x1, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x0, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x0, .port = 3, .type = TB_TYPE_PORT },
{ .route = 0x3, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x3, .port = 3, .type = TB_TYPE_PORT },
{ .route = 0x303, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x303, .port = 3, .type = TB_TYPE_PORT },
{ .route = 0x30303, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x30303, .port = 3, .type = TB_TYPE_PORT },
{ .route = 0x3030303, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x3030303, .port = 3, .type = TB_TYPE_PORT },
{ .route = 0x303030303, .port = 1, .type = TB_TYPE_PORT },
{ .route = 0x303030303, .port = 3, .type = TB_TYPE_PORT },
{ .route = 0x30303030303, .port = 1, .type = TB_TYPE_PORT },
sw->ports[0].config.type = TB_TYPE_PORT;
sw->ports[1].config.type = TB_TYPE_PORT;
.out_type = TB_TYPE_PORT,
.in_type = TB_TYPE_PORT,
sw->ports[2].config.type = TB_TYPE_PORT;
.out_type = TB_TYPE_PORT,
.in_type = TB_TYPE_PORT,