Linux/Linux_Device_Drivers

Linux UART device driver - Layer architecture

Roien 2015. 3. 10.
반응형
Layer architecture

+-------------------------------------+
| 회선 protocol                       |
|                                     |
|  /dev/ttySX or /dev/ircommX or ppp0 | n_tty.c (for N_TTY) or irtty_Sir.c (for N_IRDA) <-> tty_io.c (core module)
|  (TTY I/O core)                     | 
+-------------------------------------+
| tty driver layer                    | serial_core.c (wrapper)
| (I/F with low level driver)         |
+-------------------------------------+
| low level driver                    | 8250.c
+-------------------------------------+

    ex. usb-serial
    
     /driver/usb
     /driver/usb/serial/usb-serial.c (serial transformation을 위한 tty 구현의 핵심)
    
     N_TTY : 터미널
     N_IRDA : 적외선
     N_PPP : 전화


반응형

댓글