From: Michael Schmitz <schmitzmic@gmail.com>
To: linux-m68k@vger.kernel.org, geert@linux-m68k.org
Cc: alex@kazik.de, Michael Schmitz <schmitzmic@gmail.com>
Subject: [PATCH v11 1/3] m68k: amiga/pcmcia - add 16 bit detection interface to amipcmcia.h
Date: Mon, 15 Nov 2021 12:40:03 +1300 [thread overview]
Message-ID: <20211114234005.335-2-schmitzmic@gmail.com> (raw)
In-Reply-To: <20211114234005.335-1-schmitzmic@gmail.com>
Add the interface definition for 16 bit card autoprobing (using
the generic PCMCIA cftable entry parser) to amipcmcia.h for use
by apne.c. Include necessary cftable definitions from cistpl.h,
remove locally duplicate definitions from amipcmcia.h.
Signed-off-by: Michael Schmitz <schmitzmic@gmail.com>
--
Changes from v10:
Geert Uytterhoeven:
- include <pcmcia/ds.h> instead of explict pcmcia_parse_tuple()
prototype declaration
Changes from v9:
Geert Uytterhoeven:
- declare declare pcmcia_parse_tuple() unconditionally
Changes from v8:
Geert Uytterhoeven:
- just include pcmcia/cistpl.h; declare pcmcia_parse_tuple()
only if core PCMCIA code is included
Changes from v7:
- add interface definitions only, move actual code to apne.c
---
arch/m68k/include/asm/amipcmcia.h | 45 ++-----------------------------
1 file changed, 2 insertions(+), 43 deletions(-)
diff --git a/arch/m68k/include/asm/amipcmcia.h b/arch/m68k/include/asm/amipcmcia.h
index 6f1ec1887d82..fbc80b1d853e 100644
--- a/arch/m68k/include/asm/amipcmcia.h
+++ b/arch/m68k/include/asm/amipcmcia.h
@@ -13,6 +13,8 @@
#ifndef __AMIGA_PCMCIA_H__
#define __AMIGA_PCMCIA_H__
+#include <pcmcia/cistpl.h>
+#include <pcmcia/ds.h>
#include <asm/amigayle.h>
/* prototypes */
@@ -64,47 +66,4 @@ static inline void pcmcia_disable_irq(void)
#define PCMCIA_SPEED_250NS 250
#define PCMCIA_SPEED_720NS 720
-/* PCMCIA Tuple codes */
-
-#define CISTPL_NULL 0x00
-#define CISTPL_DEVICE 0x01
-#define CISTPL_LONGLINK_CB 0x02
-#define CISTPL_CONFIG_CB 0x04
-#define CISTPL_CFTABLE_ENTRY_CB 0x05
-#define CISTPL_LONGLINK_MFC 0x06
-#define CISTPL_BAR 0x07
-#define CISTPL_CHECKSUM 0x10
-#define CISTPL_LONGLINK_A 0x11
-#define CISTPL_LONGLINK_C 0x12
-#define CISTPL_LINKTARGET 0x13
-#define CISTPL_NO_LINK 0x14
-#define CISTPL_VERS_1 0x15
-#define CISTPL_ALTSTR 0x16
-#define CISTPL_DEVICE_A 0x17
-#define CISTPL_JEDEC_C 0x18
-#define CISTPL_JEDEC_A 0x19
-#define CISTPL_CONFIG 0x1a
-#define CISTPL_CFTABLE_ENTRY 0x1b
-#define CISTPL_DEVICE_OC 0x1c
-#define CISTPL_DEVICE_OA 0x1d
-#define CISTPL_DEVICE_GEO 0x1e
-#define CISTPL_DEVICE_GEO_A 0x1f
-#define CISTPL_MANFID 0x20
-#define CISTPL_FUNCID 0x21
-#define CISTPL_FUNCE 0x22
-#define CISTPL_SWIL 0x23
-#define CISTPL_END 0xff
-
-/* FUNCID */
-
-#define CISTPL_FUNCID_MULTI 0x00
-#define CISTPL_FUNCID_MEMORY 0x01
-#define CISTPL_FUNCID_SERIAL 0x02
-#define CISTPL_FUNCID_PARALLEL 0x03
-#define CISTPL_FUNCID_FIXED 0x04
-#define CISTPL_FUNCID_VIDEO 0x05
-#define CISTPL_FUNCID_NETWORK 0x06
-#define CISTPL_FUNCID_AIMS 0x07
-#define CISTPL_FUNCID_SCSI 0x08
-
#endif
--
2.17.1
next prev parent reply other threads:[~2021-11-14 23:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-14 23:40 [PATCH v11 0/3] Add APNE PCMCIA 100 Mbit support Michael Schmitz
2021-11-14 23:40 ` Michael Schmitz [this message]
2021-11-15 9:59 ` [PATCH v11 1/3] m68k: amiga/pcmcia - add 16 bit detection interface to amipcmcia.h Geert Uytterhoeven
2021-11-17 7:15 ` Michael Schmitz
2021-11-17 14:35 ` Geert Uytterhoeven
2021-11-18 4:58 ` Michael Schmitz
2021-11-18 8:09 ` Geert Uytterhoeven
2021-11-18 19:42 ` Michael Schmitz
2021-11-14 23:40 ` [PATCH v11 2/3] m68k: io_mm.h - add APNE 100 MBit support Michael Schmitz
2021-11-14 23:40 ` [PATCH net v11 3/3] net/8390: apne.c - add 100 Mbit support to apne.c driver Michael Schmitz
2021-11-17 14:42 ` Geert Uytterhoeven
2021-11-18 4:58 ` Michael Schmitz
2021-11-18 8:01 ` Geert Uytterhoeven
2021-11-18 19:09 ` Michael Schmitz
2021-11-18 19:18 ` Joe Perches
2021-11-18 19:35 ` Michael Schmitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211114234005.335-2-schmitzmic@gmail.com \
--to=schmitzmic@gmail.com \
--cc=alex@kazik.de \
--cc=geert@linux-m68k.org \
--cc=linux-m68k@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox