这篇教程C++ uart_resume_port函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中uart_resume_port函数的典型用法代码示例。如果您正苦于以下问题:C++ uart_resume_port函数的具体用法?C++ uart_resume_port怎么用?C++ uart_resume_port使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了uart_resume_port函数的25个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: sirfsoc_uart_resumestatic int sirfsoc_uart_resume(struct platform_device *pdev){ struct sirfsoc_uart_port *sirfport = platform_get_drvdata(pdev); struct uart_port *port = &sirfport->port; uart_resume_port(&sirfsoc_uart_drv, port); return 0;}
开发者ID:Cool-Joe,项目名称:imx23-audio,代码行数:7,
示例2: sw_uart_resumestatic int sw_uart_resume(struct device *dev){#ifdef CONFIG_EVB_PLATFORM unsigned long flags = 0;#endif struct uart_port *port = dev_get_drvdata(dev); struct sw_uart_port *sw_uport = UART_TO_SPORT(port); if (port) { if (SW_UART_NEED_SUSPEND(port)) { sw_uart_regulator_enable(dev->platform_data); sw_uart_select_gpio_state(sw_uport->pctrl, PINCTRL_STATE_DEFAULT, sw_uport->id); }#ifdef CONFIG_EVB_PLATFORM /* It's used only in super-standby mode. FPGA maybe fall into sw_uart_force_lcr(), so comment it. */ if (sw_is_console_port(port) && !console_suspend_enabled) { spin_lock_irqsave(&port->lock, flags); sw_uart_reset(sw_uport); serial_out(port, sw_uport->fcr, SW_UART_FCR); serial_out(port, sw_uport->mcr, SW_UART_MCR); serial_out(port, sw_uport->lcr|SW_UART_LCR_DLAB, SW_UART_LCR); serial_out(port, sw_uport->dll, SW_UART_DLL); serial_out(port, sw_uport->dlh, SW_UART_DLH); serial_out(port, sw_uport->lcr, SW_UART_LCR); serial_out(port, sw_uport->ier, SW_UART_IER); spin_unlock_irqrestore(&port->lock, flags); }#endif uart_resume_port(&sw_uart_driver, port); SERIAL_MSG("uart%d resume. DLH: %d, DLL: %d. /n", port->line, sw_uport->dlh, sw_uport->dll); } return 0;}
开发者ID:GREYFOXRGR,项目名称:BPI-M3-bsp,代码行数:35,
示例3: tegra_uart_resumestatic int tegra_uart_resume(struct device *dev){ struct tegra_uart_port *tup = dev_get_drvdata(dev); struct uart_port *u = &tup->uport; return uart_resume_port(&tegra_uart_driver, u);}
开发者ID:Lyude,项目名称:linux,代码行数:7,
|