162306a36Sopenharmony_ci/*
262306a36Sopenharmony_ci * Phase5 CybervisionPPC (TVP4020) definitions for the Permedia2 framebuffer
362306a36Sopenharmony_ci * driver.
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Copyright (c) 1998-1999 Ilario Nardinocchi (nardinoc@CS.UniBO.IT)
662306a36Sopenharmony_ci * --------------------------------------------------------------------------
762306a36Sopenharmony_ci * $Id: cvisionppc.h,v 1.8 1999/01/28 13:18:07 illo Exp $
862306a36Sopenharmony_ci * --------------------------------------------------------------------------
962306a36Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public
1062306a36Sopenharmony_ci * License.  See the file COPYING in the main directory of this archive
1162306a36Sopenharmony_ci * for more details.
1262306a36Sopenharmony_ci */
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci#ifndef CVISIONPPC_H
1562306a36Sopenharmony_ci#define CVISIONPPC_H
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci#ifndef PM2FB_H
1862306a36Sopenharmony_ci#include "pm2fb.h"
1962306a36Sopenharmony_ci#endif
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_cistruct cvppc_par {
2262306a36Sopenharmony_ci	unsigned char* pci_config;
2362306a36Sopenharmony_ci	unsigned char* pci_bridge;
2462306a36Sopenharmony_ci	u32 user_flags;
2562306a36Sopenharmony_ci};
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ci#define CSPPC_PCI_BRIDGE		0xfffe0000
2862306a36Sopenharmony_ci#define CSPPC_BRIDGE_ENDIAN		0x0000
2962306a36Sopenharmony_ci#define CSPPC_BRIDGE_INT		0x0010
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ci#define	CVPPC_PCI_CONFIG		0xfffc0000
3262306a36Sopenharmony_ci#define CVPPC_ROM_ADDRESS		0xe2000001
3362306a36Sopenharmony_ci#define CVPPC_REGS_REGION		0xef000000
3462306a36Sopenharmony_ci#define CVPPC_FB_APERTURE_ONE		0xe0000000
3562306a36Sopenharmony_ci#define CVPPC_FB_APERTURE_TWO		0xe1000000
3662306a36Sopenharmony_ci#define CVPPC_FB_SIZE			0x00800000
3762306a36Sopenharmony_ci#define CVPPC_MEM_CONFIG_OLD		0xed61fcaa	/* FIXME Fujitsu?? */
3862306a36Sopenharmony_ci#define CVPPC_MEM_CONFIG_NEW		0xed41c532	/* FIXME USA?? */
3962306a36Sopenharmony_ci#define CVPPC_MEMCLOCK			83000		/* in KHz */
4062306a36Sopenharmony_ci
4162306a36Sopenharmony_ci/* CVPPC_BRIDGE_ENDIAN */
4262306a36Sopenharmony_ci#define CSPPCF_BRIDGE_BIG_ENDIAN	0x02
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_ci/* CVPPC_BRIDGE_INT */
4562306a36Sopenharmony_ci#define CSPPCF_BRIDGE_ACTIVE_INT2	0x01
4662306a36Sopenharmony_ci
4762306a36Sopenharmony_ci#endif	/* CVISIONPPC_H */
4862306a36Sopenharmony_ci
4962306a36Sopenharmony_ci/*****************************************************************************
5062306a36Sopenharmony_ci * That's all folks!
5162306a36Sopenharmony_ci *****************************************************************************/
52