2.2.0-final
[davej-history.git] / include / net / irda / irport.h
blobc4a036a4d91f992154573eedc402401280d1da87
1 /*********************************************************************
2 *
3 * Filename: irport.h
4 * Version: 0.1
5 * Description: Serial driver for IrDA
6 * Status: Experimental.
7 * Author: Dag Brattli <dagb@cs.uit.no>
8 * Created at: Sun Aug 3 13:49:59 1997
9 * Modified at: Thu Jan 7 14:17:31 1999
10 * Modified by: Dag Brattli <dagb@cs.uit.no>
12 * Copyright (c) 1997, 1998 Dag Brattli <dagb@cs.uit.no>
13 * All Rights Reserved.
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License as
17 * published by the Free Software Foundation; either version 2 of
18 * the License, or (at your option) any later version.
20 * Neither Dag Brattli nor University of Tromsø admit liability nor
21 * provide warranty for any of this software. This material is
22 * provided "AS-IS" and at no charge.
24 ********************************************************************/
26 #ifndef IRPORT_H
27 #define IRPORT_H
29 #include <linux/netdevice.h>
30 #include <linux/skbuff.h>
31 #include <linux/types.h>
33 #include <net/irda/irda_device.h>
35 #define SPEED_DEFAULT 9600
36 #define SPEED_MAX 115200
39 * These are the supported serial types.
41 #define PORT_UNKNOWN 0
42 #define PORT_8250 1
43 #define PORT_16450 2
44 #define PORT_16550 3
45 #define PORT_16550A 4
46 #define PORT_CIRRUS 5
47 #define PORT_16650 6
48 #define PORT_MAX 6
50 #define FRAME_MAX_SIZE 2048
52 void irport_close( int iobase);
53 int irport_open( int iobase);
54 int irport_detect(struct irda_device *idev);
56 void irport_change_speed( int iobase, int speed);
57 void irport_interrupt(int irq, void *dev_id, struct pt_regs *regs);
59 int irport_hard_xmit( struct sk_buff *skb, struct device *dev);
61 #endif