4 * Copyright 2003,2004 Develer S.r.l. (http://www.develer.com/)
5 * This file is part of DevLib - See devlib/README for information.
8 * \brief Hardware dependent serial driver (interface)
12 * \author Stefano Fedrigo <aleph@develer.com>
13 * \author Giovanni Bajo <rasky@develer.com>
18 *#* Revision 1.5 2004/09/06 21:40:50 bernie
19 *#* Move buffer handling in chip-specific driver.
21 *#* Revision 1.4 2004/08/25 14:12:08 rasky
22 *#* Aggiornato il comment block dei log RCS
24 *#* Revision 1.3 2004/06/03 11:27:09 bernie
25 *#* Add dual-license information.
27 *#* Revision 1.2 2004/05/23 18:21:53 bernie
28 *#* Trim CVS logs and cleanup header info.
35 struct SerialHardware;
38 struct SerialHardwareVT
40 void (*init)(struct SerialHardware* ctx, struct Serial* ser);
41 void (*cleanup)(struct SerialHardware* ctx);
42 void (*setbaudrate)(struct SerialHardware* ctx, unsigned long rate);
43 void (*setparity)(struct SerialHardware* ctx, int parity);
44 void (*enabletxirq)(struct SerialHardware* ctx);
49 const struct SerialHardwareVT* table;
50 unsigned char *txbuffer;
51 unsigned char *rxbuffer;
56 struct SerialHardware* ser_hw_getdesc(int unit);
58 #endif /* DRV_SER_P_H */