blob: fabe08c3e33d9d0f23564bdde2291c0aa1dfcd02 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#ifndef _INCLUDE_GUARD_i82092aa_H_
3#define _INCLUDE_GUARD_i82092aa_H_
4
5#include <linux/interrupt.h>
6
Linus Torvalds1da177e2005-04-16 15:20:36 -07007/* Debuging defines */
8#ifdef NOTRACE
9#define enter(x) printk("Enter: %s, %s line %i\n",x,__FILE__,__LINE__)
10#define leave(x) printk("Leave: %s, %s line %i\n",x,__FILE__,__LINE__)
11#define dprintk(fmt, args...) printk(fmt , ## args)
12#else
13#define enter(x) do {} while (0)
14#define leave(x) do {} while (0)
15#define dprintk(fmt, args...) do {} while (0)
16#endif
17
18
19
20/* prototypes */
21
22static int i82092aa_pci_probe(struct pci_dev *dev, const struct pci_device_id *id);
23static void i82092aa_pci_remove(struct pci_dev *dev);
24static int card_present(int socketno);
David Howells7d12e782006-10-05 14:55:46 +010025static irqreturn_t i82092aa_interrupt(int irq, void *dev);
Linus Torvalds1da177e2005-04-16 15:20:36 -070026
27
28
29
30static int i82092aa_get_status(struct pcmcia_socket *socket, u_int *value);
Linus Torvalds1da177e2005-04-16 15:20:36 -070031static int i82092aa_set_socket(struct pcmcia_socket *socket, socket_state_t *state);
32static int i82092aa_set_io_map(struct pcmcia_socket *socket, struct pccard_io_map *io);
33static int i82092aa_set_mem_map(struct pcmcia_socket *socket, struct pccard_mem_map *mem);
34static int i82092aa_init(struct pcmcia_socket *socket);
35
36#endif
37