18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * vg468.h 1.11 1999/10/25 20:03:34 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * The contents of this file are subject to the Mozilla Public License 58c2ecf20Sopenharmony_ci * Version 1.1 (the "License"); you may not use this file except in 68c2ecf20Sopenharmony_ci * compliance with the License. You may obtain a copy of the License 78c2ecf20Sopenharmony_ci * at http://www.mozilla.org/MPL/ 88c2ecf20Sopenharmony_ci * 98c2ecf20Sopenharmony_ci * Software distributed under the License is distributed on an "AS IS" 108c2ecf20Sopenharmony_ci * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See 118c2ecf20Sopenharmony_ci * the License for the specific language governing rights and 128c2ecf20Sopenharmony_ci * limitations under the License. 138c2ecf20Sopenharmony_ci * 148c2ecf20Sopenharmony_ci * The initial developer of the original code is David A. Hinds 158c2ecf20Sopenharmony_ci * <dahinds@users.sourceforge.net>. Portions created by David A. Hinds 168c2ecf20Sopenharmony_ci * are Copyright (C) 1999 David A. Hinds. All Rights Reserved. 178c2ecf20Sopenharmony_ci * 188c2ecf20Sopenharmony_ci * Alternatively, the contents of this file may be used under the 198c2ecf20Sopenharmony_ci * terms of the GNU General Public License version 2 (the "GPL"), in which 208c2ecf20Sopenharmony_ci * case the provisions of the GPL are applicable instead of the 218c2ecf20Sopenharmony_ci * above. If you wish to allow the use of your version of this file 228c2ecf20Sopenharmony_ci * only under the terms of the GPL and not to allow others to use 238c2ecf20Sopenharmony_ci * your version of this file under the MPL, indicate your decision by 248c2ecf20Sopenharmony_ci * deleting the provisions above and replace them with the notice and 258c2ecf20Sopenharmony_ci * other provisions required by the GPL. If you do not delete the 268c2ecf20Sopenharmony_ci * provisions above, a recipient may use your version of this file 278c2ecf20Sopenharmony_ci * under either the MPL or the GPL. 288c2ecf20Sopenharmony_ci */ 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci#ifndef _LINUX_VG468_H 318c2ecf20Sopenharmony_ci#define _LINUX_VG468_H 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci/* Special bit in I365_IDENT used for Vadem chip detection */ 348c2ecf20Sopenharmony_ci#define I365_IDENT_VADEM 0x08 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ci/* Special definitions in I365_POWER */ 378c2ecf20Sopenharmony_ci#define VG468_VPP2_MASK 0x0c 388c2ecf20Sopenharmony_ci#define VG468_VPP2_5V 0x04 398c2ecf20Sopenharmony_ci#define VG468_VPP2_12V 0x08 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ci/* Unique Vadem registers */ 428c2ecf20Sopenharmony_ci#define VG469_VSENSE 0x1f /* Card voltage sense */ 438c2ecf20Sopenharmony_ci#define VG469_VSELECT 0x2f /* Card voltage select */ 448c2ecf20Sopenharmony_ci#define VG468_CTL 0x38 /* Control register */ 458c2ecf20Sopenharmony_ci#define VG468_TIMER 0x39 /* Timer control */ 468c2ecf20Sopenharmony_ci#define VG468_MISC 0x3a /* Miscellaneous */ 478c2ecf20Sopenharmony_ci#define VG468_GPIO_CFG 0x3b /* GPIO configuration */ 488c2ecf20Sopenharmony_ci#define VG469_EXT_MODE 0x3c /* Extended mode register */ 498c2ecf20Sopenharmony_ci#define VG468_SELECT 0x3d /* Programmable chip select */ 508c2ecf20Sopenharmony_ci#define VG468_SELECT_CFG 0x3e /* Chip select configuration */ 518c2ecf20Sopenharmony_ci#define VG468_ATA 0x3f /* ATA control */ 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ci/* Flags for VG469_VSENSE */ 548c2ecf20Sopenharmony_ci#define VG469_VSENSE_A_VS1 0x01 558c2ecf20Sopenharmony_ci#define VG469_VSENSE_A_VS2 0x02 568c2ecf20Sopenharmony_ci#define VG469_VSENSE_B_VS1 0x04 578c2ecf20Sopenharmony_ci#define VG469_VSENSE_B_VS2 0x08 588c2ecf20Sopenharmony_ci 598c2ecf20Sopenharmony_ci/* Flags for VG469_VSELECT */ 608c2ecf20Sopenharmony_ci#define VG469_VSEL_VCC 0x03 618c2ecf20Sopenharmony_ci#define VG469_VSEL_5V 0x00 628c2ecf20Sopenharmony_ci#define VG469_VSEL_3V 0x03 638c2ecf20Sopenharmony_ci#define VG469_VSEL_MAX 0x0c 648c2ecf20Sopenharmony_ci#define VG469_VSEL_EXT_STAT 0x10 658c2ecf20Sopenharmony_ci#define VG469_VSEL_EXT_BUS 0x20 668c2ecf20Sopenharmony_ci#define VG469_VSEL_MIXED 0x40 678c2ecf20Sopenharmony_ci#define VG469_VSEL_ISA 0x80 688c2ecf20Sopenharmony_ci 698c2ecf20Sopenharmony_ci/* Flags for VG468_CTL */ 708c2ecf20Sopenharmony_ci#define VG468_CTL_SLOW 0x01 /* 600ns memory timing */ 718c2ecf20Sopenharmony_ci#define VG468_CTL_ASYNC 0x02 /* Asynchronous bus clocking */ 728c2ecf20Sopenharmony_ci#define VG468_CTL_TSSI 0x08 /* Tri-state some outputs */ 738c2ecf20Sopenharmony_ci#define VG468_CTL_DELAY 0x10 /* Card detect debounce */ 748c2ecf20Sopenharmony_ci#define VG468_CTL_INPACK 0x20 /* Obey INPACK signal? */ 758c2ecf20Sopenharmony_ci#define VG468_CTL_POLARITY 0x40 /* VCCEN polarity */ 768c2ecf20Sopenharmony_ci#define VG468_CTL_COMPAT 0x80 /* Compatibility stuff */ 778c2ecf20Sopenharmony_ci 788c2ecf20Sopenharmony_ci#define VG469_CTL_WS_COMPAT 0x04 /* Wait state compatibility */ 798c2ecf20Sopenharmony_ci#define VG469_CTL_STRETCH 0x10 /* LED stretch */ 808c2ecf20Sopenharmony_ci 818c2ecf20Sopenharmony_ci/* Flags for VG468_TIMER */ 828c2ecf20Sopenharmony_ci#define VG468_TIMER_ZEROPWR 0x10 /* Zero power control */ 838c2ecf20Sopenharmony_ci#define VG468_TIMER_SIGEN 0x20 /* Power up */ 848c2ecf20Sopenharmony_ci#define VG468_TIMER_STATUS 0x40 /* Activity timer status */ 858c2ecf20Sopenharmony_ci#define VG468_TIMER_RES 0x80 /* Timer resolution */ 868c2ecf20Sopenharmony_ci#define VG468_TIMER_MASK 0x0f /* Activity timer timeout */ 878c2ecf20Sopenharmony_ci 888c2ecf20Sopenharmony_ci/* Flags for VG468_MISC */ 898c2ecf20Sopenharmony_ci#define VG468_MISC_GPIO 0x04 /* General-purpose IO */ 908c2ecf20Sopenharmony_ci#define VG468_MISC_DMAWSB 0x08 /* DMA wait state control */ 918c2ecf20Sopenharmony_ci#define VG469_MISC_LEDENA 0x10 /* LED enable */ 928c2ecf20Sopenharmony_ci#define VG468_MISC_VADEMREV 0x40 /* Vadem revision control */ 938c2ecf20Sopenharmony_ci#define VG468_MISC_UNLOCK 0x80 /* Unique register lock */ 948c2ecf20Sopenharmony_ci 958c2ecf20Sopenharmony_ci/* Flags for VG469_EXT_MODE_A */ 968c2ecf20Sopenharmony_ci#define VG469_MODE_VPPST 0x03 /* Vpp steering control */ 978c2ecf20Sopenharmony_ci#define VG469_MODE_INT_SENSE 0x04 /* Internal voltage sense */ 988c2ecf20Sopenharmony_ci#define VG469_MODE_CABLE 0x08 998c2ecf20Sopenharmony_ci#define VG469_MODE_COMPAT 0x10 /* i82365sl B or DF step */ 1008c2ecf20Sopenharmony_ci#define VG469_MODE_TEST 0x20 1018c2ecf20Sopenharmony_ci#define VG469_MODE_RIO 0x40 /* Steer RIO to INTR? */ 1028c2ecf20Sopenharmony_ci 1038c2ecf20Sopenharmony_ci/* Flags for VG469_EXT_MODE_B */ 1048c2ecf20Sopenharmony_ci#define VG469_MODE_B_3V 0x01 /* 3.3v for socket B */ 1058c2ecf20Sopenharmony_ci 1068c2ecf20Sopenharmony_ci#endif /* _LINUX_VG468_H */ 107