linux-old/drivers/char/ip2/ip2types.h
<<
>>
Prefs
   1/*******************************************************************************
   2*
   3*   (c) 1998 by Computone Corporation
   4*
   5********************************************************************************
   6*
   7*
   8*   PACKAGE:     Linux tty Device Driver for IntelliPort II family of multiport
   9*                serial I/O controllers.
  10*
  11*   DESCRIPTION: Driver constants and type definitions.
  12*
  13*   NOTES:
  14*
  15*******************************************************************************/
  16#ifndef IP2TYPES_H
  17#define IP2TYPES_H
  18
  19//*************
  20//* Constants *
  21//*************
  22
  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.
  26//
  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)
  30
  31#define ISA    0
  32#define PCI    1
  33#define EISA   2
  34
  35//********************
  36//* Type Definitions *
  37//********************
  38
  39typedef struct tty_struct *   PTTY;
  40typedef wait_queue_head_t   PWAITQ;
  41
  42typedef unsigned char         UCHAR;
  43typedef unsigned int          UINT;
  44typedef unsigned short        USHORT;
  45typedef unsigned long         ULONG;
  46
  47typedef struct 
  48{
  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
  56} ip2config_t;
  57
  58#endif
  59
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.