[PATCH v7 1/3] m68k: amiga/pcmcia - add 16 bit detection interface to amipcmcia.h

Michael Schmitz
2021-09-28T06:59:02Z

Add the interface definitions for 16 bit card autoprobing (using
the generic PCMCIA cftable entry parser) to amipcmcia.h for use
by apne.c.

Signed-off-by: Michael Schmitz <schmitzmic@gmail.com>

--

Changes from v7:

- add interface definitions only, move actual code to apne.c
---
arch/m68k/include/asm/amipcmcia.h | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/arch/m68k/include/asm/amipcmcia.h b/arch/m68k/include/asm/amipcmcia.h
index 6f1ec1887d82..ecaeb583004f 100644
--- a/arch/m68k/include/asm/amipcmcia.h
+++ b/arch/m68k/include/asm/amipcmcia.h
@@ -64,6 +64,7 @@ static inline void pcmcia_disable_irq(void)
#define PCMCIA_SPEED_250NS 250
#define PCMCIA_SPEED_720NS 720

+#ifndef _LINUX_CISTPL_H
/* PCMCIA Tuple codes */

#define CISTPL_NULL 0x00
@@ -106,5 +107,8 @@ static inline void pcmcia_disable_irq(void)
#define CISTPL_FUNCID_NETWORK 0x06
#define CISTPL_FUNCID_AIMS 0x07
#define CISTPL_FUNCID_SCSI 0x08
+#else /* defined _LINUX_CISTPL_H */
+extern int pcmcia_parse_tuple(tuple_t *cftuple, cisparse_t *cfparse);
+#endif

#endif
--
2.17.1