Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\early_printk.c Create Date:2022-07-28 08:42:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:early_serial_hw_init

Proto:static __init void early_serial_hw_init(unsigned divisor)

Type:void

Parameter:

TypeParameterName
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)
Caller
NameDescribe
early_serial_init