Linux-2.6.12-rc2
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / drivers / net / ibm_emac / ibm_emac_tah.h
blobecfc69805521a0daf9b818b627a7d9f20eee69e8
1 /*
2 * Defines for the IBM TAH
4 * Copyright 2004 MontaVista Software, Inc.
5 * Matt Porter <mporter@kernel.crashing.org>
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the License, or (at your
10 * option) any later version.
13 #ifndef _IBM_EMAC_TAH_H
14 #define _IBM_EMAC_TAH_H
16 /* TAH */
17 typedef struct tah_regs {
18 u32 tah_revid;
19 u32 pad[3];
20 u32 tah_mr;
21 u32 tah_ssr0;
22 u32 tah_ssr1;
23 u32 tah_ssr2;
24 u32 tah_ssr3;
25 u32 tah_ssr4;
26 u32 tah_ssr5;
27 u32 tah_tsr;
28 } tah_t;
30 /* TAH engine */
31 #define TAH_MR_CVR 0x80000000
32 #define TAH_MR_SR 0x40000000
33 #define TAH_MR_ST_256 0x01000000
34 #define TAH_MR_ST_512 0x02000000
35 #define TAH_MR_ST_768 0x03000000
36 #define TAH_MR_ST_1024 0x04000000
37 #define TAH_MR_ST_1280 0x05000000
38 #define TAH_MR_ST_1536 0x06000000
39 #define TAH_MR_TFS_16KB 0x00000000
40 #define TAH_MR_TFS_2KB 0x00200000
41 #define TAH_MR_TFS_4KB 0x00400000
42 #define TAH_MR_TFS_6KB 0x00600000
43 #define TAH_MR_TFS_8KB 0x00800000
44 #define TAH_MR_TFS_10KB 0x00a00000
45 #define TAH_MR_DTFP 0x00100000
46 #define TAH_MR_DIG 0x00080000
48 #endif /* _IBM_EMAC_TAH_H */