18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _INCLUDE_GUARD_PD6729_H_
38c2ecf20Sopenharmony_ci#define _INCLUDE_GUARD_PD6729_H_
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci/* Flags for I365_GENCTL */
68c2ecf20Sopenharmony_ci#define I365_DF_VS1		0x40	/* DF-step Voltage Sense */
78c2ecf20Sopenharmony_ci#define I365_DF_VS2		0x80
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci/* Fields in PD67_EXTERN_DATA */
108c2ecf20Sopenharmony_ci#define PD67_EXD_VS1(s)		(0x01 << ((s) << 1))
118c2ecf20Sopenharmony_ci#define PD67_EXD_VS2(s)		(0x02 << ((s) << 1))
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci/* Default ISA interrupt mask */
148c2ecf20Sopenharmony_ci#define PD67_MASK	0x0eb8	/* irq 11,10,9,7,5,4,3 */
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_cistruct pd6729_socket {
178c2ecf20Sopenharmony_ci	int	number;
188c2ecf20Sopenharmony_ci	int	card_irq;
198c2ecf20Sopenharmony_ci	unsigned long io_base;	/* base io address of the socket */
208c2ecf20Sopenharmony_ci	struct pcmcia_socket socket;
218c2ecf20Sopenharmony_ci	struct timer_list poll_timer;
228c2ecf20Sopenharmony_ci};
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#endif
25