x86/amd-iommu: Add function to complete a tlb flush
[linux/fpc-iii.git] / drivers / char / ip2 / ip2types.h
blob9d67b260b2f629f8b2457da81e1c1d88e2159360
1 /*******************************************************************************
3 * (c) 1998 by Computone Corporation
5 ********************************************************************************
8 * PACKAGE: Linux tty Device Driver for IntelliPort II family of multiport
9 * serial I/O controllers.
11 * DESCRIPTION: Driver constants and type definitions.
13 * NOTES:
15 *******************************************************************************/
16 #ifndef IP2TYPES_H
17 #define IP2TYPES_H
19 //*************
20 //* Constants *
21 //*************
23 // Define some limits for this driver. Ports per board is a hardware limitation
24 // that will not change. Current hardware limits this to 64 ports per board.
25 // Boards per driver is a self-imposed limit.
27 #define IP2_MAX_BOARDS 4
28 #define IP2_PORTS_PER_BOARD ABS_MOST_PORTS
29 #define IP2_MAX_PORTS (IP2_MAX_BOARDS*IP2_PORTS_PER_BOARD)
31 #define ISA 0
32 #define PCI 1
33 #define EISA 2
35 //********************
36 //* Type Definitions *
37 //********************
39 typedef struct tty_struct * PTTY;
40 typedef wait_queue_head_t PWAITQ;
42 typedef unsigned char UCHAR;
43 typedef unsigned int UINT;
44 typedef unsigned short USHORT;
45 typedef unsigned long ULONG;
47 typedef struct
49 short irq[IP2_MAX_BOARDS];
50 unsigned short addr[IP2_MAX_BOARDS];
51 int type[IP2_MAX_BOARDS];
52 #ifdef CONFIG_PCI
53 struct pci_dev *pci_dev[IP2_MAX_BOARDS];
54 #endif
55 } ip2config_t;
57 #endif