4 * Copyright (C) 2003,2004 Develer S.r.l. (http://www.develer.com/)
8 * \brief Hardware dependent serial driver (interface)
12 * \author Stefano Fedrigo <aleph@develer.com>
13 * \author Giovanni Bajo <rasky@develer.com>
18 * Revision 1.2 2004/05/23 18:21:53 bernie
19 * Trim CVS logs and cleanup header info.
26 struct SerialHardware;
29 struct SerialHardwareVT
31 void (*init)(struct SerialHardware* ctx, struct Serial* ser);
32 void (*cleanup)(struct SerialHardware* ctx);
33 void (*setbaudrate)(struct SerialHardware* ctx, unsigned long rate);
34 void (*setparity)(struct SerialHardware* ctx, int parity);
35 void (*enabletxirq)(struct SerialHardware* ctx);
40 const struct SerialHardwareVT* table;
43 struct SerialHardware* ser_hw_getdesc(int unit);
45 #endif /* DRV_SER_P_H */