ccci_tty.h 646 B

1234567891011121314151617181920212223242526
  1. #ifndef __CCCI_TTY_H__
  2. #define __CCCI_TTY_H__
  3. #define CCCI_TTY_MODEM 0
  4. #define CCCI_TTY_META 1
  5. #define CCCI_TTY_IPC 2
  6. #define CCCI_TTY_ICUSB 3
  7. struct buffer_control_tty_t {
  8. unsigned read;
  9. unsigned write;
  10. unsigned length;
  11. };
  12. struct shared_mem_tty_t {
  13. struct buffer_control_tty_t rx_control;
  14. struct buffer_control_tty_t tx_control;
  15. unsigned char buffer[0]; /* [RX | TX] */
  16. /* unsigned char *tx_buffer; */
  17. };
  18. extern void ccci_reset_buffers(struct shared_mem_tty_t *shared_mem, int size);
  19. extern int __init ccci_tty_init(int);
  20. extern void __exit ccci_tty_exit(int);
  21. #endif /* __CCCI_TTY_H__ */