这篇教程C++ tx_enabled函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中tx_enabled函数的典型用法代码示例。如果您正苦于以下问题:C++ tx_enabled函数的具体用法?C++ tx_enabled怎么用?C++ tx_enabled使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了tx_enabled函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: s3c24xx_serial_stop_txstatic void s3c24xx_serial_stop_tx(struct uart_port *port){ if (tx_enabled(port)) { disable_irq(TX_IRQ(port)); tx_enabled(port) = 0; if (port->flags & UPF_CONS_FLOW) s3c24xx_serial_rx_enable(port); }}
开发者ID:BackupTheBerlios,项目名称:tew632-brp-svn,代码行数:9,
示例2: s3c24xx_serial_start_txstatic voids3c24xx_serial_start_tx(struct uart_port *port, unsigned int tty_start){ if (!tx_enabled(port)) { if (port->flags & UPF_CONS_FLOW) s3c24xx_serial_rx_disable(port); enable_irq(TX_IRQ(port)); tx_enabled(port) = 1; }}
开发者ID:QiuLihua83,项目名称:linux-2.6.10,代码行数:11,
示例3: s3c24xx_serial_stop_txstatic void s3c24xx_serial_stop_tx(struct uart_port *port){ struct s3c24xx_uart_port *ourport = to_ourport(port); if (tx_enabled(port)) { disable_irq_nosync(ourport->tx_irq); tx_enabled(port) = 0; if (port->flags & UPF_CONS_FLOW) s3c24xx_serial_rx_enable(port); } if (port->line == 3) { //printk("485_stop_rx/n"); gpio_set_value(S3C64XX_GPK(5), 1); }}
开发者ID:mdxy2010,项目名称:forlinux-ok6410,代码行数:15,
示例4: ks8695uart_stop_txstatic void ks8695uart_stop_tx(struct uart_port *port){ if (tx_enabled(port)) { disable_irq(KS8695_IRQ_UART_TX); tx_enable(port, 0); }}
开发者ID:AppEngine,项目名称:linux-2.6,代码行数:7,
示例5: ks8695uart_start_txstatic void ks8695uart_start_tx(struct uart_port *port){ if (!tx_enabled(port)) { enable_irq(KS8695_IRQ_UART_TX); tx_enable(port, 1); }}
开发者ID:AppEngine,项目名称:linux-2.6,代码行数:7,
示例6: ks8695uart_stop_txstatic void ks8695uart_stop_tx(struct uart_port *port){ if (tx_enabled(port)) { /* use disable_irq_nosync() and not disable_irq() to avoid self * imposed deadlock by not waiting for irq handler to end, * since this ks8695uart_stop_tx() is called from interrupt context. */ disable_irq_nosync(KS8695_IRQ_UART_TX); tx_enable(port, 0); }}
开发者ID:mikuhatsune001,项目名称:linux2.6.32,代码行数:11,
示例7: s3c24xx_serial_start_txstatic void s3c24xx_serial_start_tx(struct uart_port *port){ struct s3c24xx_uart_port *ourport = to_ourport(port); static int a =1;//temp if (port->line == 3) {// printk("485_start_tx/n"); if(a){ s3c_gpio_cfgpin(S3C64XX_GPK(5), S3C_GPIO_SFN(1)); a=0; } gpio_set_value(S3C64XX_GPK(5), 1); } if (!tx_enabled(port)) { if (port->flags & UPF_CONS_FLOW) s3c24xx_serial_rx_disable(port); enable_irq(ourport->tx_irq); tx_enabled(port) = 1; }}
开发者ID:mdxy2010,项目名称:forlinux-ok6410,代码行数:21,
示例8: s3c24xx_serial_startupstatic int s3c24xx_serial_startup(struct uart_port *port){ struct s3c24xx_uart_port *ourport = to_ourport(port); unsigned long flags; int ret; dbg("s3c24xx_serial_startup: port=%p (%08lx,%p)/n", port->mapbase, port->membase); local_irq_save(flags); rx_enabled(port) = 1; ret = request_irq(RX_IRQ(port), s3c24xx_serial_rx_chars, 0, s3c24xx_serial_portname(port), ourport); if (ret != 0) { printk(KERN_ERR "cannot get irq %d/n", RX_IRQ(port)); return ret; } ourport->rx_claimed = 1; dbg("requesting tx irq.../n"); tx_enabled(port) = 1; ret = request_irq(TX_IRQ(port), s3c24xx_serial_tx_chars, 0, s3c24xx_serial_portname(port), ourport); if (ret) { printk(KERN_ERR "cannot get irq %d/n", TX_IRQ(port)); goto err; } ourport->tx_claimed = 1; dbg("s3c24xx_serial_startup ok/n"); /* the port reset code should have done the correct * register setup for the port controls */ local_irq_restore(flags); return ret; err: s3c24xx_serial_shutdown(port); local_irq_restore(flags); return ret;}
开发者ID:QiuLihua83,项目名称:linux-2.6.10,代码行数:52,
示例9: s3c24xx_serial_startupstatic int s3c24xx_serial_startup(struct uart_port *port){ struct s3c24xx_uart_port *ourport = to_ourport(port); struct s3c2410_uartcfg *cfg = s3c24xx_port_to_cfg(port); int ret; dbg("s3c24xx_serial_startup: port=%p (%08lx,%p)/n", port->mapbase, port->membase); /* runstate should be 1 before request_irq is called */ if (cfg->set_runstate) cfg->set_runstate(1); rx_enabled(port) = 1; ret = request_irq(ourport->rx_irq, s3c24xx_serial_rx_chars, 0, s3c24xx_serial_portname(port), ourport); if (ret != 0) { printk(KERN_ERR "cannot get irq %d/n", ourport->rx_irq); goto err; } ourport->rx_claimed = 1; dbg("requesting tx irq.../n"); tx_enabled(port) = 1; ret = request_irq(ourport->tx_irq, s3c24xx_serial_tx_chars, 0, s3c24xx_serial_portname(port), ourport); if (ret) { printk(KERN_ERR "cannot get irq %d/n", ourport->tx_irq); goto err; } ourport->tx_claimed = 1; dbg("s3c24xx_serial_startup ok/n"); /* the port reset code should have done the correct * register setup for the port controls */ return ret; err: s3c24xx_serial_shutdown(port); return ret;}
开发者ID:1yankeedt,项目名称:D710BST_FL24_Kernel,代码行数:50,
示例10: s3c24xx_serial_shutdownstatic void s3c24xx_serial_shutdown(struct uart_port *port){ struct s3c24xx_uart_port *ourport = to_ourport(port); struct s3c2410_uartcfg *cfg = s3c24xx_port_to_cfg(port); if (ourport->tx_claimed) { disable_irq(ourport->tx_irq); free_irq(ourport->tx_irq, ourport); tx_enabled(port) = 0; ourport->tx_claimed = 0; } if (ourport->rx_claimed) { disable_irq(ourport->rx_irq); free_irq(ourport->rx_irq, ourport); ourport->rx_claimed = 0; rx_enabled(port) = 0; } if (cfg->set_runstate) cfg->set_runstate(0);}
开发者ID:1yankeedt,项目名称:D710BST_FL24_Kernel,代码行数:22,
注:本文中的tx_enabled函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ txg_wait_synced函数代码示例 C++ tx_buf_alloc函数代码示例 |