void mddi_host_start_ext_display(void) { down(&mddi_host_mutex); if (!mddi_host_ext_powered) { mddi_host_init(MDDI_HOST_EXT); mddi_host_ext_powered = TRUE; } up(&mddi_host_mutex); }
void mddi_init(void) { if (mddi_host_initialized) return; mddi_host_initialized = TRUE; sema_init(&mddi_host_mutex, 1); if (!mddi_host_powered) { down(&mddi_host_mutex); mddi_host_init(MDDI_HOST_PRIM); mddi_host_powered = TRUE; up(&mddi_host_mutex); mdelay(10); } }