Go to the documentation of this file.
13 #ifndef KS8695_SWITCH_H
14 #define KS8695_SWITCH_H
16 #define KS8695_SWITCH_OFFSET (0xF0000 + 0xe800)
17 #define KS8695_SWITCH_VA (KS8695_IO_VA + KS8695_SWITCH_OFFSET)
18 #define KS8695_SWITCH_PA (KS8695_IO_PA + KS8695_SWITCH_OFFSET)
24 #define KS8695_SEC0 (0x00)
25 #define KS8695_SEC1 (0x04)
26 #define KS8695_SEC2 (0x08)
28 #define KS8695_SEPXCZ(x,z) (0x0c + (((x)-1)*3 + ((z)-1))*4)
30 #define KS8695_SEP12AN (0x48)
31 #define KS8695_SEP34AN (0x4c)
32 #define KS8695_SEIAC (0x50)
33 #define KS8695_SEIADH2 (0x54)
34 #define KS8695_SEIADH1 (0x58)
35 #define KS8695_SEIADL (0x5c)
36 #define KS8695_SEAFC (0x60)
37 #define KS8695_SEDSCPH (0x64)
38 #define KS8695_SEDSCPL (0x68)
39 #define KS8695_SEMAH (0x6c)
40 #define KS8695_SEMAL (0x70)
41 #define KS8695_LPPM12 (0x74)
42 #define KS8695_LPPM34 (0x78)
46 #define SEC0_LLED1S (7 << 25)
47 #define LLED1S_SPEED (0 << 25)
48 #define LLED1S_LINK (1 << 25)
49 #define LLED1S_DUPLEX (2 << 25)
50 #define LLED1S_COLLISION (3 << 25)
51 #define LLED1S_ACTIVITY (4 << 25)
52 #define LLED1S_FDX_COLLISION (5 << 25)
53 #define LLED1S_LINK_ACTIVITY (6 << 25)
54 #define SEC0_LLED0S (7 << 22)
55 #define LLED0S_SPEED (0 << 22)
56 #define LLED0S_LINK (1 << 22)
57 #define LLED0S_DUPLEX (2 << 22)
58 #define LLED0S_COLLISION (3 << 22)
59 #define LLED0S_ACTIVITY (4 << 22)
60 #define LLED0S_FDX_COLLISION (5 << 22)
61 #define LLED0S_LINK_ACTIVITY (6 << 22)
62 #define SEC0_ENABLE (1 << 0)