OpenCores
URL https://opencores.org/ocsvn/test_project/test_project/trunk

Subversion Repositories test_project

[/] [test_project/] [trunk/] [linux_sd_driver/] [include/] [linux/] [isicom.h] - Blame information for rev 81

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 62 marcus.erl
#ifndef _LINUX_ISICOM_H
2
#define _LINUX_ISICOM_H
3
 
4
/*#define               ISICOM_DEBUG*/
5
/*#define               ISICOM_DEBUG_DTR_RTS*/
6
 
7
#ifdef __KERNEL__
8
 
9
#define         YES     1
10
#define         NO      0
11
 
12
/*
13
 *  ISICOM Driver definitions ...
14
 *
15
 */
16
 
17
#define         ISICOM_NAME     "ISICom"
18
 
19
/*
20
 *      PCI definitions
21
 */
22
 
23
#define         DEVID_COUNT     9
24
#define         VENDOR_ID       0x10b5
25
 
26
/*
27
 *      These are now officially allocated numbers
28
 */
29
 
30
#define         ISICOM_NMAJOR   112     /* normal  */
31
#define         ISICOM_CMAJOR   113     /* callout */
32
#define         ISICOM_MAGIC    (('M' << 8) | 'T')
33
 
34
#define         WAKEUP_CHARS    256     /* hard coded for now   */
35
#define         TX_SIZE         254
36
 
37
#define         BOARD_COUNT     4
38
#define         PORT_COUNT      (BOARD_COUNT*16)
39
 
40
#define         SERIAL_TYPE_NORMAL      1
41
 
42
/*   character sizes  */
43
 
44
#define         ISICOM_CS5              0x0000
45
#define         ISICOM_CS6              0x0001
46
#define         ISICOM_CS7              0x0002
47
#define         ISICOM_CS8              0x0003
48
 
49
/* stop bits */
50
 
51
#define         ISICOM_1SB              0x0000
52
#define         ISICOM_2SB              0x0004
53
 
54
/* parity */
55
 
56
#define         ISICOM_NOPAR            0x0000
57
#define         ISICOM_ODPAR            0x0008
58
#define         ISICOM_EVPAR            0x0018
59
 
60
/* flow control */
61
 
62
#define         ISICOM_CTSRTS           0x03
63
#define         ISICOM_INITIATE_XONXOFF 0x04
64
#define         ISICOM_RESPOND_XONXOFF  0x08
65
 
66
#define BOARD(line)  (((line) >> 4) & 0x3)
67
 
68
        /*      isi kill queue bitmap   */
69
 
70
#define         ISICOM_KILLTX           0x01
71
#define         ISICOM_KILLRX           0x02
72
 
73
        /* isi_board status bitmap */
74
 
75
#define         FIRMWARE_LOADED         0x0001
76
#define         BOARD_ACTIVE            0x0002
77
 
78
        /* isi_port status bitmap  */
79
 
80
#define         ISI_CTS                 0x1000
81
#define         ISI_DSR                 0x2000
82
#define         ISI_RI                  0x4000
83
#define         ISI_DCD                 0x8000
84
#define         ISI_DTR                 0x0100
85
#define         ISI_RTS                 0x0200
86
 
87
 
88
#define         ISI_TXOK                0x0001
89
 
90
#endif  /*      __KERNEL__      */
91
 
92
#endif  /*      ISICOM_H        */

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.