函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\early_printk.c Create Date:2022-07-27 09:41:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:early_serial_hw_init

函数原型:static __init void early_serial_hw_init(unsigned divisor)

返回类型:void

参数:

类型参数名称
unsigneddivisor
137  serial_out(yS0 , Line control , 0x3)
138  serial_out(yS0 , Interrupt Enable , 0)
139  serial_out(yS0 , FIFO control , 0)
140  serial_out(yS0 , Modem control , 0x3)
142  c等于serial_in(yS0 , Line control )
143  serial_out(yS0 , Line control , c | DLAB)
144  serial_out(yS0 , Divisor Latch Low , divisor & 0xff)
145  serial_out(yS0 , Divisor latch High , (divisor >> 8) & 0xff)
146  serial_out(yS0 , Line control , c & ~DLAB)
调用者
名称描述
early_serial_init串口初始化