cvisionppc.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Phase5 CybervisionPPC (TVP4020) definitions for the Permedia2 framebuffer
  3. * driver.
  4. *
  5. * Copyright (c) 1998-1999 Ilario Nardinocchi (nardinoc@CS.UniBO.IT)
  6. * --------------------------------------------------------------------------
  7. * $Id: cvisionppc.h,v 1.1.1.1 2007/06/12 07:27:16 eyryu Exp $
  8. * --------------------------------------------------------------------------
  9. * This file is subject to the terms and conditions of the GNU General Public
  10. * License. See the file COPYING in the main directory of this archive
  11. * for more details.
  12. */
  13. #ifndef CVISIONPPC_H
  14. #define CVISIONPPC_H
  15. #ifndef PM2FB_H
  16. #include "pm2fb.h"
  17. #endif
  18. struct cvppc_par {
  19. unsigned char* pci_config;
  20. unsigned char* pci_bridge;
  21. u32 user_flags;
  22. };
  23. #define CSPPC_PCI_BRIDGE 0xfffe0000
  24. #define CSPPC_BRIDGE_ENDIAN 0x0000
  25. #define CSPPC_BRIDGE_INT 0x0010
  26. #define CVPPC_PCI_CONFIG 0xfffc0000
  27. #define CVPPC_ROM_ADDRESS 0xe2000001
  28. #define CVPPC_REGS_REGION 0xef000000
  29. #define CVPPC_FB_APERTURE_ONE 0xe0000000
  30. #define CVPPC_FB_APERTURE_TWO 0xe1000000
  31. #define CVPPC_FB_SIZE 0x00800000
  32. #define CVPPC_MEM_CONFIG_OLD 0xed61fcaa /* FIXME Fujitsu?? */
  33. #define CVPPC_MEM_CONFIG_NEW 0xed41c532 /* FIXME USA?? */
  34. #define CVPPC_MEMCLOCK 83000 /* in KHz */
  35. /* CVPPC_BRIDGE_ENDIAN */
  36. #define CSPPCF_BRIDGE_BIG_ENDIAN 0x02
  37. /* CVPPC_BRIDGE_INT */
  38. #define CSPPCF_BRIDGE_ACTIVE_INT2 0x01
  39. #endif /* CVISIONPPC_H */
  40. /*****************************************************************************
  41. * That's all folks!
  42. *****************************************************************************/