162306a36Sopenharmony_ci/* 262306a36Sopenharmony_ci * vg468.h 1.11 1999/10/25 20:03:34 362306a36Sopenharmony_ci * 462306a36Sopenharmony_ci * The contents of this file are subject to the Mozilla Public License 562306a36Sopenharmony_ci * Version 1.1 (the "License"); you may not use this file except in 662306a36Sopenharmony_ci * compliance with the License. You may obtain a copy of the License 762306a36Sopenharmony_ci * at http://www.mozilla.org/MPL/ 862306a36Sopenharmony_ci * 962306a36Sopenharmony_ci * Software distributed under the License is distributed on an "AS IS" 1062306a36Sopenharmony_ci * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See 1162306a36Sopenharmony_ci * the License for the specific language governing rights and 1262306a36Sopenharmony_ci * limitations under the License. 1362306a36Sopenharmony_ci * 1462306a36Sopenharmony_ci * The initial developer of the original code is David A. Hinds 1562306a36Sopenharmony_ci * <dahinds@users.sourceforge.net>. Portions created by David A. Hinds 1662306a36Sopenharmony_ci * are Copyright (C) 1999 David A. Hinds. All Rights Reserved. 1762306a36Sopenharmony_ci * 1862306a36Sopenharmony_ci * Alternatively, the contents of this file may be used under the 1962306a36Sopenharmony_ci * terms of the GNU General Public License version 2 (the "GPL"), in which 2062306a36Sopenharmony_ci * case the provisions of the GPL are applicable instead of the 2162306a36Sopenharmony_ci * above. If you wish to allow the use of your version of this file 2262306a36Sopenharmony_ci * only under the terms of the GPL and not to allow others to use 2362306a36Sopenharmony_ci * your version of this file under the MPL, indicate your decision by 2462306a36Sopenharmony_ci * deleting the provisions above and replace them with the notice and 2562306a36Sopenharmony_ci * other provisions required by the GPL. If you do not delete the 2662306a36Sopenharmony_ci * provisions above, a recipient may use your version of this file 2762306a36Sopenharmony_ci * under either the MPL or the GPL. 2862306a36Sopenharmony_ci */ 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ci#ifndef _LINUX_VG468_H 3162306a36Sopenharmony_ci#define _LINUX_VG468_H 3262306a36Sopenharmony_ci 3362306a36Sopenharmony_ci/* Special bit in I365_IDENT used for Vadem chip detection */ 3462306a36Sopenharmony_ci#define I365_IDENT_VADEM 0x08 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ci/* Special definitions in I365_POWER */ 3762306a36Sopenharmony_ci#define VG468_VPP2_MASK 0x0c 3862306a36Sopenharmony_ci#define VG468_VPP2_5V 0x04 3962306a36Sopenharmony_ci#define VG468_VPP2_12V 0x08 4062306a36Sopenharmony_ci 4162306a36Sopenharmony_ci/* Unique Vadem registers */ 4262306a36Sopenharmony_ci#define VG469_VSENSE 0x1f /* Card voltage sense */ 4362306a36Sopenharmony_ci#define VG469_VSELECT 0x2f /* Card voltage select */ 4462306a36Sopenharmony_ci#define VG468_CTL 0x38 /* Control register */ 4562306a36Sopenharmony_ci#define VG468_TIMER 0x39 /* Timer control */ 4662306a36Sopenharmony_ci#define VG468_MISC 0x3a /* Miscellaneous */ 4762306a36Sopenharmony_ci#define VG468_GPIO_CFG 0x3b /* GPIO configuration */ 4862306a36Sopenharmony_ci#define VG469_EXT_MODE 0x3c /* Extended mode register */ 4962306a36Sopenharmony_ci#define VG468_SELECT 0x3d /* Programmable chip select */ 5062306a36Sopenharmony_ci#define VG468_SELECT_CFG 0x3e /* Chip select configuration */ 5162306a36Sopenharmony_ci#define VG468_ATA 0x3f /* ATA control */ 5262306a36Sopenharmony_ci 5362306a36Sopenharmony_ci/* Flags for VG469_VSENSE */ 5462306a36Sopenharmony_ci#define VG469_VSENSE_A_VS1 0x01 5562306a36Sopenharmony_ci#define VG469_VSENSE_A_VS2 0x02 5662306a36Sopenharmony_ci#define VG469_VSENSE_B_VS1 0x04 5762306a36Sopenharmony_ci#define VG469_VSENSE_B_VS2 0x08 5862306a36Sopenharmony_ci 5962306a36Sopenharmony_ci/* Flags for VG469_VSELECT */ 6062306a36Sopenharmony_ci#define VG469_VSEL_VCC 0x03 6162306a36Sopenharmony_ci#define VG469_VSEL_5V 0x00 6262306a36Sopenharmony_ci#define VG469_VSEL_3V 0x03 6362306a36Sopenharmony_ci#define VG469_VSEL_MAX 0x0c 6462306a36Sopenharmony_ci#define VG469_VSEL_EXT_STAT 0x10 6562306a36Sopenharmony_ci#define VG469_VSEL_EXT_BUS 0x20 6662306a36Sopenharmony_ci#define VG469_VSEL_MIXED 0x40 6762306a36Sopenharmony_ci#define VG469_VSEL_ISA 0x80 6862306a36Sopenharmony_ci 6962306a36Sopenharmony_ci/* Flags for VG468_CTL */ 7062306a36Sopenharmony_ci#define VG468_CTL_SLOW 0x01 /* 600ns memory timing */ 7162306a36Sopenharmony_ci#define VG468_CTL_ASYNC 0x02 /* Asynchronous bus clocking */ 7262306a36Sopenharmony_ci#define VG468_CTL_TSSI 0x08 /* Tri-state some outputs */ 7362306a36Sopenharmony_ci#define VG468_CTL_DELAY 0x10 /* Card detect debounce */ 7462306a36Sopenharmony_ci#define VG468_CTL_INPACK 0x20 /* Obey INPACK signal? */ 7562306a36Sopenharmony_ci#define VG468_CTL_POLARITY 0x40 /* VCCEN polarity */ 7662306a36Sopenharmony_ci#define VG468_CTL_COMPAT 0x80 /* Compatibility stuff */ 7762306a36Sopenharmony_ci 7862306a36Sopenharmony_ci#define VG469_CTL_WS_COMPAT 0x04 /* Wait state compatibility */ 7962306a36Sopenharmony_ci#define VG469_CTL_STRETCH 0x10 /* LED stretch */ 8062306a36Sopenharmony_ci 8162306a36Sopenharmony_ci/* Flags for VG468_TIMER */ 8262306a36Sopenharmony_ci#define VG468_TIMER_ZEROPWR 0x10 /* Zero power control */ 8362306a36Sopenharmony_ci#define VG468_TIMER_SIGEN 0x20 /* Power up */ 8462306a36Sopenharmony_ci#define VG468_TIMER_STATUS 0x40 /* Activity timer status */ 8562306a36Sopenharmony_ci#define VG468_TIMER_RES 0x80 /* Timer resolution */ 8662306a36Sopenharmony_ci#define VG468_TIMER_MASK 0x0f /* Activity timer timeout */ 8762306a36Sopenharmony_ci 8862306a36Sopenharmony_ci/* Flags for VG468_MISC */ 8962306a36Sopenharmony_ci#define VG468_MISC_GPIO 0x04 /* General-purpose IO */ 9062306a36Sopenharmony_ci#define VG468_MISC_DMAWSB 0x08 /* DMA wait state control */ 9162306a36Sopenharmony_ci#define VG469_MISC_LEDENA 0x10 /* LED enable */ 9262306a36Sopenharmony_ci#define VG468_MISC_VADEMREV 0x40 /* Vadem revision control */ 9362306a36Sopenharmony_ci#define VG468_MISC_UNLOCK 0x80 /* Unique register lock */ 9462306a36Sopenharmony_ci 9562306a36Sopenharmony_ci/* Flags for VG469_EXT_MODE_A */ 9662306a36Sopenharmony_ci#define VG469_MODE_VPPST 0x03 /* Vpp steering control */ 9762306a36Sopenharmony_ci#define VG469_MODE_INT_SENSE 0x04 /* Internal voltage sense */ 9862306a36Sopenharmony_ci#define VG469_MODE_CABLE 0x08 9962306a36Sopenharmony_ci#define VG469_MODE_COMPAT 0x10 /* i82365sl B or DF step */ 10062306a36Sopenharmony_ci#define VG469_MODE_TEST 0x20 10162306a36Sopenharmony_ci#define VG469_MODE_RIO 0x40 /* Steer RIO to INTR? */ 10262306a36Sopenharmony_ci 10362306a36Sopenharmony_ci/* Flags for VG469_EXT_MODE_B */ 10462306a36Sopenharmony_ci#define VG469_MODE_B_3V 0x01 /* 3.3v for socket B */ 10562306a36Sopenharmony_ci 10662306a36Sopenharmony_ci#endif /* _LINUX_VG468_H */ 107