17 #if defined (POK_NEEDS_PORTS_SAMPLING) || defined (POK_NEEDS_PORTS_QUEUEING)
23 extern pok_port_t pok_ports[POK_CONFIG_NB_PORTS];
25 void pok_port_init (
void)
29 #ifdef POK_NEEDS_PARTITIONS
30 #if defined (POK_NEEDS_DEBUG) || defined (POK_NEEDS_ERROR_HANDLING)
31 for (i = 0 ; i < POK_CONFIG_NB_PORTS ; i++)
35 #ifdef POK_NEEDS_DEBUG
36 printf (
"Invalid configuration, port %d owned by an unknown partition\n", i);
38 #ifdef POK_NEEDS_ERROR_HANDLING
39 pok_kernel_error (POK_ERROR_KIND_KERNEL_CONFIG);
46 for (i = 0 ; i < POK_CONFIG_NB_PORTS ; i++)
48 pok_ports[i].
size = 0;
49 pok_ports[i].
off_b = 0;
50 pok_ports[i].
off_e = 0;
53 pok_ports[i].
index = 0;