serial-atomwide.c
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  *  linux/arch/arm/drivers/char/serial-atomwide.c
  3.  *
  4.  *  Copyright (C) 1996 Russell King.
  5.  *
  6.  * This program is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License version 2 as
  8.  * published by the Free Software Foundation.
  9.  *
  10.  *  Changelog:
  11.  *   02-05-1996 RMK Created
  12.  *   07-05-1996 RMK Altered for greater number of cards.
  13.  *   30-07-1996 RMK Now uses generic card code.
  14.  */
  15. #define MY_CARD_LIST { MANU_ATOMWIDE, PROD_ATOMWIDE_3PSERIAL }
  16. #define MY_NUMPORTS 3
  17. #define MY_BAUD_BASE (7372800 / 16)
  18. #define MY_BASE_ADDRESS(ec) 
  19. ecard_address ((ec), ECARD_IOC, ECARD_SLOW) + (0x2000 >> 2)
  20. #define MY_PORT_ADDRESS(port,cardaddr) 
  21. ((cardaddr) + 0x200 - (port) * 0x100)
  22. #define INIT serial_card_atomwide_init
  23. #define EXIT serial_card_atomwide_exit
  24. #include "serial-card.c"