uart tty
2021-03-30 16:11:48 1 举报
uart tty
作者其他创作
大纲/内容
minor
nr
uart_driver
driver_name
dev_name
...
* state
* tty_driver
tty_driver
*head
struct tty_struct
struct
struct
int
char
... ...
void
->
tty_port
struct cdev
struct list_head
dev_t
unsigned int
*driver_name
*ops
*ldisc
发送缓冲区
硬件设备
*tty
tty_operations
struct uart_driver
const char
struct console
struct n_tty_data
size_t read_head
size_t connon_head
size_t read_tail
char read_buf[N_TTY_BUF_SIZE]
*owner
state[1]
uart_state
tty_port_operations
*driver_data
name[64]
struct tty_driver
unsigned int
short
void
const struct
head
tty_struct
num
uart_port
xmit
*uart_port
index
*driver
device
tty_driver
[
**ports
dev
file_operations
struct tty_port_operations uart_port_ops
carrier_raised
dtr_rts
activate
shutdown
]
*dev
iobase
membase
irq
ops
ktermios
UART0
uart_add_one_port
uart_ops
flags
module
tty_ldisc_ops
uart_register_driver
struct tty_port
wait_queue_head_t
unsigned long
unsigned char
tail
type
struct tty_operations
open
close
write
start
set_ldisc
ioctl
tty_core
struct uart_port
... ...
pm
tx_empty
startup
request_port
*dev_name
port
UART1
kobj
tty_struct
struct uart_state
buf
serial_core
xxx_uart_ops
specific driver
*xmit_buf
ktermios
cdev
major
**cdevs
tty_drivers
**termios
tty_buffer
xxx_uart_driver
应用层
xxx_uart_port
open_wait
list
*port
*buff
struct tty_bufhead
*state
Hardware
uart_add_one_port()
*name
*cons
*disc_data
tty_ldiscs[ ]
*driver_state
**ttys
count
struct ktermios
tcflag_t c_iflag
tcflag_t c_oflag
tcflag_t c_cflag
tcflag_t c_lfag
cc_t c_line
cc_t c_cc[NCCS]
speed_t c_ispeed
speed_t c_ospeed
Line disc
circ_buf
line
tty_bufhead
*tail
work
work_struct
struct circ_buf
int
tty_ldisc
*tty_driver
state[0]
minor_start
tty subsystem
kobject
list_head
struct uart_ops xxx_uart_ops
start_tx
start_rx
0 条评论
下一页
为你推荐
查看更多