xref: /openbmc/linux/drivers/pcmcia/pd6729.h (revision 498495dba268b20e8eadd7fe93c140c68b6cc9d2)
1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
21da177e4SLinus Torvalds #ifndef _INCLUDE_GUARD_PD6729_H_
31da177e4SLinus Torvalds #define _INCLUDE_GUARD_PD6729_H_
41da177e4SLinus Torvalds 
51da177e4SLinus Torvalds /* Flags for I365_GENCTL */
61da177e4SLinus Torvalds #define I365_DF_VS1		0x40	/* DF-step Voltage Sense */
71da177e4SLinus Torvalds #define I365_DF_VS2		0x80
81da177e4SLinus Torvalds 
91da177e4SLinus Torvalds /* Fields in PD67_EXTERN_DATA */
101da177e4SLinus Torvalds #define PD67_EXD_VS1(s)		(0x01 << ((s) << 1))
111da177e4SLinus Torvalds #define PD67_EXD_VS2(s)		(0x02 << ((s) << 1))
121da177e4SLinus Torvalds 
131da177e4SLinus Torvalds /* Default ISA interrupt mask */
141da177e4SLinus Torvalds #define PD67_MASK	0x0eb8	/* irq 11,10,9,7,5,4,3 */
151da177e4SLinus Torvalds 
161da177e4SLinus Torvalds struct pd6729_socket {
171da177e4SLinus Torvalds 	int	number;
181da177e4SLinus Torvalds 	int	card_irq;
191da177e4SLinus Torvalds 	unsigned long io_base;	/* base io address of the socket */
201da177e4SLinus Torvalds 	struct pcmcia_socket socket;
211da177e4SLinus Torvalds 	struct timer_list poll_timer;
221da177e4SLinus Torvalds };
231da177e4SLinus Torvalds 
241da177e4SLinus Torvalds #endif
25