ibm_emac_tah.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Defines for the IBM TAH
  3. *
  4. * Copyright 2004 MontaVista Software, Inc.
  5. * Matt Porter <mporter@kernel.crashing.org>
  6. *
  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.
  11. */
  12. #ifndef _IBM_EMAC_TAH_H
  13. #define _IBM_EMAC_TAH_H
  14. /* TAH */
  15. typedef struct tah_regs {
  16. u32 tah_revid;
  17. u32 pad[3];
  18. u32 tah_mr;
  19. u32 tah_ssr0;
  20. u32 tah_ssr1;
  21. u32 tah_ssr2;
  22. u32 tah_ssr3;
  23. u32 tah_ssr4;
  24. u32 tah_ssr5;
  25. u32 tah_tsr;
  26. } tah_t;
  27. /* TAH engine */
  28. #define TAH_MR_CVR 0x80000000
  29. #define TAH_MR_SR 0x40000000
  30. #define TAH_MR_ST_256 0x01000000
  31. #define TAH_MR_ST_512 0x02000000
  32. #define TAH_MR_ST_768 0x03000000
  33. #define TAH_MR_ST_1024 0x04000000
  34. #define TAH_MR_ST_1280 0x05000000
  35. #define TAH_MR_ST_1536 0x06000000
  36. #define TAH_MR_TFS_16KB 0x00000000
  37. #define TAH_MR_TFS_2KB 0x00200000
  38. #define TAH_MR_TFS_4KB 0x00400000
  39. #define TAH_MR_TFS_6KB 0x00600000
  40. #define TAH_MR_TFS_8KB 0x00800000
  41. #define TAH_MR_TFS_10KB 0x00a00000
  42. #define TAH_MR_DTFP 0x00100000
  43. #define TAH_MR_DIG 0x00080000
  44. #endif /* _IBM_EMAC_TAH_H */