/
sie.h
43 lines (35 loc) · 1.17 KB
/
sie.h
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
/*
* Milkymist VJ SoC (USB firmware
* Copyright (C 2007, 2008, 2009, 2010 Sebastien Bourdeauducq
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __SIE_H
#define __SIE_H
#include "io.h"
#define SIE_LINE_STATUS_A 0x00
#define SIE_LINE_STATUS_B 0x01
#define SIE_SEL_RX 0x04
#define SIE_SEL_TX 0x05
#define SIE_TX_DATA 0x06
#define SIE_TX_PENDING 0x07
#define SIE_TX_VALID 0x08
#define SIE_TX_BUSY 0x09
#define SIE_TX_BUSRESET 0x0a
#define SIE_RX_DATA 0x0b
#define SIE_RX_PENDING 0x0c
#define SIE_RX_ACTIVE 0x0d
#define SIE_TX_LOW_SPEED 0x0e
#define SIE_LOW_SPEED 0x0f
#define SIE_GENERATE_EOP 0x10
#endif /* __SIE_H */