[国嵌攻略][129][串口驱动分析-打开设备]

用户程序调用open系统调用后,怎么传递到驱动程序

//tty子系统

1.tty_fops里面的tty_open是串口驱动对系统调用的响应入口

2.tty_open调用uart_ops里面的uart_open

3.uart_open找到了uart_start

//串口驱动

4.uart_start找到了s3c24xx_serial_ops里的s3c24xx_serial_startup

s3c24xx_serial_startup就是用来充当打开串口驱动的函数

 

s3c24xx_serial_startup如何实现

1.使能串口接收功能-rx_enabled

2.为数据接收注册中断处理程序

3.使能串口发送功能-tx_enabled

4.为数据发送注册中断处理程序

posted @ 2016-03-10 21:40  盛夏夜  阅读(209)  评论(0编辑  收藏  举报