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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [drivers/] [char/] [mcfserial.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1626 jcastillo
/*
2
 * mcfserial.h -- Definitions for the ColdFire serial driver.
3
 *
4
 * Copyright (C) 1999, Greg Ungerer (gerg@moreton.com.au)
5
 *
6
 * Based on 68332serial.h, which was:
7
 *
8
 * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
9
 * Copyright (C) 1998 TSHG
10
 */
11
#ifndef _MCF_SERIAL_H
12
#define _MCF_SERIAL_H
13
 
14
#include <linux/config.h>
15
#include <linux/serial.h>
16
 
17
#ifdef __KERNEL__
18
 
19
/*
20
 *      Define a local serial stats structure.
21
 */
22
 
23
struct mcf_stats {
24
        unsigned int    rx;
25
        unsigned int    tx;
26
        unsigned int    rxbreak;
27
        unsigned int    rxframing;
28
        unsigned int    rxparity;
29
        unsigned int    rxoverrun;
30
};
31
 
32
 
33
/*
34
 * This is our internal structure for each serial port's state.
35
 * Each serial port has one of these structures associated with it.
36
 */
37
 
38
struct mcf_serial {
39
        int                     magic;
40
        unsigned int            addr;           /* UART memory address */
41
        int                     irq;
42
        int                     flags;          /* defined in tty.h */
43
        int                     type;           /* UART type */
44
        struct tty_struct       *tty;
45
        unsigned char           imr;            /* Software imr register */
46
        unsigned int            baud;
47
        int                     sigs;
48
        int                     custom_divisor;
49
        int                     x_char; /* xon/xoff character */
50
        int                     baud_base;
51
        int                     close_delay;
52
        unsigned short          closing_wait;
53
        unsigned short          closing_wait2;
54
        unsigned long           event;
55
        int                     line;
56
        int                     count;      /* # of fd on device */
57
        int                     blocked_open; /* # of blocked opens */
58
        long                    session; /* Session of opening process */
59
        long                    pgrp; /* pgrp of opening process */
60
        unsigned char           *xmit_buf;
61
        int                     xmit_head;
62
        int                     xmit_tail;
63
        int                     xmit_cnt;
64
        struct mcf_stats        stats;
65
        struct tq_struct        tqueue;
66
        struct tq_struct        tqueue_hangup;
67
        struct termios          normal_termios;
68
        struct termios          callout_termios;
69
        struct wait_queue       *open_wait;
70
        struct wait_queue       *close_wait;
71
};
72
 
73
#endif /* __KERNEL__ */
74
 
75
#endif /* _MCF_SERIAL_H */

powered by: WebSVN 2.1.0

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