18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Phase5 CybervisionPPC (TVP4020) definitions for the Permedia2 framebuffer 38c2ecf20Sopenharmony_ci * driver. 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (c) 1998-1999 Ilario Nardinocchi (nardinoc@CS.UniBO.IT) 68c2ecf20Sopenharmony_ci * -------------------------------------------------------------------------- 78c2ecf20Sopenharmony_ci * $Id: cvisionppc.h,v 1.8 1999/01/28 13:18:07 illo Exp $ 88c2ecf20Sopenharmony_ci * -------------------------------------------------------------------------- 98c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public 108c2ecf20Sopenharmony_ci * License. See the file COPYING in the main directory of this archive 118c2ecf20Sopenharmony_ci * for more details. 128c2ecf20Sopenharmony_ci */ 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci#ifndef CVISIONPPC_H 158c2ecf20Sopenharmony_ci#define CVISIONPPC_H 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci#ifndef PM2FB_H 188c2ecf20Sopenharmony_ci#include "pm2fb.h" 198c2ecf20Sopenharmony_ci#endif 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_cistruct cvppc_par { 228c2ecf20Sopenharmony_ci unsigned char* pci_config; 238c2ecf20Sopenharmony_ci unsigned char* pci_bridge; 248c2ecf20Sopenharmony_ci u32 user_flags; 258c2ecf20Sopenharmony_ci}; 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci#define CSPPC_PCI_BRIDGE 0xfffe0000 288c2ecf20Sopenharmony_ci#define CSPPC_BRIDGE_ENDIAN 0x0000 298c2ecf20Sopenharmony_ci#define CSPPC_BRIDGE_INT 0x0010 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci#define CVPPC_PCI_CONFIG 0xfffc0000 328c2ecf20Sopenharmony_ci#define CVPPC_ROM_ADDRESS 0xe2000001 338c2ecf20Sopenharmony_ci#define CVPPC_REGS_REGION 0xef000000 348c2ecf20Sopenharmony_ci#define CVPPC_FB_APERTURE_ONE 0xe0000000 358c2ecf20Sopenharmony_ci#define CVPPC_FB_APERTURE_TWO 0xe1000000 368c2ecf20Sopenharmony_ci#define CVPPC_FB_SIZE 0x00800000 378c2ecf20Sopenharmony_ci#define CVPPC_MEM_CONFIG_OLD 0xed61fcaa /* FIXME Fujitsu?? */ 388c2ecf20Sopenharmony_ci#define CVPPC_MEM_CONFIG_NEW 0xed41c532 /* FIXME USA?? */ 398c2ecf20Sopenharmony_ci#define CVPPC_MEMCLOCK 83000 /* in KHz */ 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ci/* CVPPC_BRIDGE_ENDIAN */ 428c2ecf20Sopenharmony_ci#define CSPPCF_BRIDGE_BIG_ENDIAN 0x02 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci/* CVPPC_BRIDGE_INT */ 458c2ecf20Sopenharmony_ci#define CSPPCF_BRIDGE_ACTIVE_INT2 0x01 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ci#endif /* CVISIONPPC_H */ 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ci/***************************************************************************** 508c2ecf20Sopenharmony_ci * That's all folks! 518c2ecf20Sopenharmony_ci *****************************************************************************/ 52