6b13f685e
김민수
BSP 최초 추가
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
#ifndef _SCC_H
#define _SCC_H
#include <uapi/linux/scc.h>
enum {TX_OFF, TX_ON};
#define VECTOR_MASK 0x06
#define TXINT 0x00
#define EXINT 0x02
#define RXINT 0x04
#define SPINT 0x06
#ifdef CONFIG_SCC_DELAY
#define Inb(port) inb_p(port)
#define Outb(port, val) outb_p(val, port)
#else
#define Inb(port) inb(port)
#define Outb(port, val) outb(val, port)
#endif
struct scc_kiss {
unsigned char txdelay;
unsigned char persist;
unsigned char slottime;
unsigned char tailtime;
unsigned char fulldup;
unsigned char waittime;
unsigned int maxkeyup;
unsigned int mintime;
unsigned int idletime;
unsigned int maxdefer;
unsigned char tx_inhibit;
unsigned char group;
unsigned char mode;
unsigned char softdcd;
};
struct scc_channel {
int init;
struct net_device *dev;
struct net_device_stats dev_stat;
char brand;
long clock;
io_port ctrl;
io_port data;
io_port special;
int irq;
char option;
char enhanced;
unsigned char wreg[16];
unsigned char status;
unsigned char dcd;
struct scc_kiss kiss;
struct scc_stat stat;
struct scc_modem modem;
struct sk_buff_head tx_queue;
struct sk_buff *rx_buff;
struct sk_buff *tx_buff;
struct timer_list tx_t;
struct timer_list tx_wdog;
spinlock_t lock;
};
#endif /* defined(_SCC_H) */
|