17 #ifdef POK_NEEDS_PORTS_VIRTUAL
27 extern uint8_t pok_ports_nb_destinations[POK_CONFIG_NB_PORTS];
29 extern uint8_t* pok_ports_destinations[POK_CONFIG_NB_PORTS];
30 extern uint8_t pok_ports_kind[POK_CONFIG_NB_PORTS];
31 extern uint8_t pok_local_ports_to_global_ports[POK_CONFIG_NB_PORTS];
35 if (local >= POK_CONFIG_NB_PORTS)
40 if (! pok_own_port (POK_SCHED_CURRENT_PARTITION, local))
45 if (pok_ports_kind[local] != POK_PORT_KIND_VIRTUAL)
50 *global = (
pok_port_id_t) pok_local_ports_to_global_ports[local];