18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * device_id.h -- PCMCIA driver matching helpers
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * (C) 2003 - 2004	David Woodhouse
68c2ecf20Sopenharmony_ci * (C) 2003 - 2004	Dominik Brodowski
78c2ecf20Sopenharmony_ci */
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#ifndef _LINUX_PCMCIA_DEVICE_ID_H
108c2ecf20Sopenharmony_ci#define _LINUX_PCMCIA_DEVICE_ID_H
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#ifdef __KERNEL__
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci#define PCMCIA_DEVICE_MANF_CARD(manf, card) { \
158c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_MANF_ID| \
168c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_CARD_ID, \
178c2ecf20Sopenharmony_ci	.manf_id = (manf), \
188c2ecf20Sopenharmony_ci	.card_id = (card), }
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#define PCMCIA_DEVICE_FUNC_ID(func) { \
218c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_FUNC_ID, \
228c2ecf20Sopenharmony_ci	.func_id = (func), }
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#define PCMCIA_DEVICE_PROD_ID1(v1, vh1) { \
258c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_PROD_ID1, \
268c2ecf20Sopenharmony_ci	.prod_id = { (v1), NULL, NULL, NULL }, \
278c2ecf20Sopenharmony_ci	.prod_id_hash = { (vh1), 0, 0, 0 }, }
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci#define PCMCIA_DEVICE_PROD_ID2(v2, vh2) { \
308c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_PROD_ID2, \
318c2ecf20Sopenharmony_ci	.prod_id = { NULL, (v2), NULL, NULL },  \
328c2ecf20Sopenharmony_ci	.prod_id_hash = { 0, (vh2), 0, 0 }, }
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci#define PCMCIA_DEVICE_PROD_ID3(v3, vh3) { \
358c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_PROD_ID3, \
368c2ecf20Sopenharmony_ci	.prod_id = { NULL, NULL, (v3), NULL },  \
378c2ecf20Sopenharmony_ci	.prod_id_hash = { 0, 0, (vh3), 0 }, }
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci#define PCMCIA_DEVICE_PROD_ID12(v1, v2, vh1, vh2) { \
408c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_PROD_ID1| \
418c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID2, \
428c2ecf20Sopenharmony_ci	.prod_id = { (v1), (v2), NULL, NULL }, \
438c2ecf20Sopenharmony_ci	.prod_id_hash = { (vh1), (vh2), 0, 0 }, }
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci#define PCMCIA_DEVICE_PROD_ID13(v1, v3, vh1, vh3) { \
468c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_PROD_ID1| \
478c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID3, \
488c2ecf20Sopenharmony_ci	.prod_id = { (v1), NULL, (v3), NULL }, \
498c2ecf20Sopenharmony_ci	.prod_id_hash = { (vh1), 0, (vh3), 0 }, }
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci#define PCMCIA_DEVICE_PROD_ID14(v1, v4, vh1, vh4) { \
528c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_PROD_ID1| \
538c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID4, \
548c2ecf20Sopenharmony_ci	.prod_id = { (v1), NULL, NULL, (v4) }, \
558c2ecf20Sopenharmony_ci	.prod_id_hash = { (vh1), 0, 0, (vh4) }, }
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ci#define PCMCIA_DEVICE_PROD_ID123(v1, v2, v3, vh1, vh2, vh3) { \
588c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_PROD_ID1| \
598c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID2| \
608c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID3, \
618c2ecf20Sopenharmony_ci	.prod_id = { (v1), (v2), (v3), NULL },\
628c2ecf20Sopenharmony_ci	.prod_id_hash = { (vh1), (vh2), (vh3), 0 }, }
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ci#define PCMCIA_DEVICE_PROD_ID124(v1, v2, v4, vh1, vh2, vh4) { \
658c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_PROD_ID1| \
668c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID2| \
678c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID4, \
688c2ecf20Sopenharmony_ci	.prod_id = { (v1), (v2), NULL, (v4) }, \
698c2ecf20Sopenharmony_ci	.prod_id_hash = { (vh1), (vh2), 0, (vh4) }, }
708c2ecf20Sopenharmony_ci
718c2ecf20Sopenharmony_ci#define PCMCIA_DEVICE_PROD_ID134(v1, v3, v4, vh1, vh3, vh4) { \
728c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_PROD_ID1| \
738c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID3| \
748c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID4, \
758c2ecf20Sopenharmony_ci	.prod_id = { (v1), NULL, (v3), (v4) }, \
768c2ecf20Sopenharmony_ci	.prod_id_hash = { (vh1), 0, (vh3), (vh4) }, }
778c2ecf20Sopenharmony_ci
788c2ecf20Sopenharmony_ci#define PCMCIA_DEVICE_PROD_ID1234(v1, v2, v3, v4, vh1, vh2, vh3, vh4) { \
798c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_PROD_ID1| \
808c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID2| \
818c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID3| \
828c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID4, \
838c2ecf20Sopenharmony_ci	.prod_id = { (v1), (v2), (v3), (v4) }, \
848c2ecf20Sopenharmony_ci	.prod_id_hash = { (vh1), (vh2), (vh3), (vh4) }, }
858c2ecf20Sopenharmony_ci
868c2ecf20Sopenharmony_ci#define PCMCIA_DEVICE_MANF_CARD_PROD_ID1(manf, card, v1, vh1) { \
878c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_MANF_ID| \
888c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_CARD_ID| \
898c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID1, \
908c2ecf20Sopenharmony_ci	.manf_id = (manf), \
918c2ecf20Sopenharmony_ci	.card_id = (card), \
928c2ecf20Sopenharmony_ci	.prod_id = { (v1), NULL, NULL, NULL }, \
938c2ecf20Sopenharmony_ci	.prod_id_hash = { (vh1), 0, 0, 0 }, }
948c2ecf20Sopenharmony_ci
958c2ecf20Sopenharmony_ci#define PCMCIA_DEVICE_MANF_CARD_PROD_ID3(manf, card, v3, vh3) { \
968c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_MANF_ID| \
978c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_CARD_ID| \
988c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID3, \
998c2ecf20Sopenharmony_ci	.manf_id = (manf), \
1008c2ecf20Sopenharmony_ci	.card_id = (card), \
1018c2ecf20Sopenharmony_ci	.prod_id = { NULL, NULL, (v3), NULL }, \
1028c2ecf20Sopenharmony_ci	.prod_id_hash = { 0, 0, (vh3), 0 }, }
1038c2ecf20Sopenharmony_ci
1048c2ecf20Sopenharmony_ci
1058c2ecf20Sopenharmony_ci/* multi-function devices */
1068c2ecf20Sopenharmony_ci
1078c2ecf20Sopenharmony_ci#define PCMCIA_MFC_DEVICE_MANF_CARD(mfc, manf, card) { \
1088c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_MANF_ID| \
1098c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_CARD_ID| \
1108c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_FUNCTION, \
1118c2ecf20Sopenharmony_ci	.manf_id = (manf), \
1128c2ecf20Sopenharmony_ci	.card_id = (card), \
1138c2ecf20Sopenharmony_ci	.function = (mfc), }
1148c2ecf20Sopenharmony_ci
1158c2ecf20Sopenharmony_ci#define PCMCIA_MFC_DEVICE_PROD_ID1(mfc, v1, vh1) { \
1168c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_PROD_ID1| \
1178c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_FUNCTION, \
1188c2ecf20Sopenharmony_ci	.prod_id = { (v1), NULL, NULL, NULL }, \
1198c2ecf20Sopenharmony_ci	.prod_id_hash = { (vh1), 0, 0, 0 }, \
1208c2ecf20Sopenharmony_ci	.function = (mfc), }
1218c2ecf20Sopenharmony_ci
1228c2ecf20Sopenharmony_ci#define PCMCIA_MFC_DEVICE_PROD_ID2(mfc, v2, vh2) { \
1238c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_PROD_ID2| \
1248c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_FUNCTION, \
1258c2ecf20Sopenharmony_ci	.prod_id = { NULL, (v2), NULL, NULL },  \
1268c2ecf20Sopenharmony_ci	.prod_id_hash = { 0, (vh2), 0, 0 }, \
1278c2ecf20Sopenharmony_ci	.function = (mfc), }
1288c2ecf20Sopenharmony_ci
1298c2ecf20Sopenharmony_ci#define PCMCIA_MFC_DEVICE_PROD_ID12(mfc, v1, v2, vh1, vh2) { \
1308c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_PROD_ID1| \
1318c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID2| \
1328c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_FUNCTION, \
1338c2ecf20Sopenharmony_ci	.prod_id = { (v1), (v2), NULL, NULL }, \
1348c2ecf20Sopenharmony_ci	.prod_id_hash = { (vh1), (vh2), 0, 0 }, \
1358c2ecf20Sopenharmony_ci	.function = (mfc), }
1368c2ecf20Sopenharmony_ci
1378c2ecf20Sopenharmony_ci#define PCMCIA_MFC_DEVICE_PROD_ID13(mfc, v1, v3, vh1, vh3) { \
1388c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_PROD_ID1| \
1398c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID3| \
1408c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_FUNCTION, \
1418c2ecf20Sopenharmony_ci	.prod_id = { (v1), NULL, (v3), NULL }, \
1428c2ecf20Sopenharmony_ci	.prod_id_hash = { (vh1), 0, (vh3), 0 }, \
1438c2ecf20Sopenharmony_ci	.function = (mfc), }
1448c2ecf20Sopenharmony_ci
1458c2ecf20Sopenharmony_ci#define PCMCIA_MFC_DEVICE_PROD_ID123(mfc, v1, v2, v3, vh1, vh2, vh3) { \
1468c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_PROD_ID1| \
1478c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID2| \
1488c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID3| \
1498c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_FUNCTION, \
1508c2ecf20Sopenharmony_ci	.prod_id = { (v1), (v2), (v3), NULL },\
1518c2ecf20Sopenharmony_ci	.prod_id_hash = { (vh1), (vh2), (vh3), 0 }, \
1528c2ecf20Sopenharmony_ci	.function = (mfc), }
1538c2ecf20Sopenharmony_ci
1548c2ecf20Sopenharmony_ci/* pseudo multi-function devices */
1558c2ecf20Sopenharmony_ci
1568c2ecf20Sopenharmony_ci#define PCMCIA_PFC_DEVICE_MANF_CARD(mfc, manf, card) { \
1578c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_MANF_ID| \
1588c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_CARD_ID| \
1598c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_DEVICE_NO, \
1608c2ecf20Sopenharmony_ci	.manf_id = (manf), \
1618c2ecf20Sopenharmony_ci	.card_id = (card), \
1628c2ecf20Sopenharmony_ci	.device_no = (mfc), }
1638c2ecf20Sopenharmony_ci
1648c2ecf20Sopenharmony_ci#define PCMCIA_PFC_DEVICE_PROD_ID1(mfc, v1, vh1) { \
1658c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_PROD_ID1| \
1668c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_DEVICE_NO, \
1678c2ecf20Sopenharmony_ci	.prod_id = { (v1), NULL, NULL, NULL }, \
1688c2ecf20Sopenharmony_ci	.prod_id_hash = { (vh1), 0, 0, 0 }, \
1698c2ecf20Sopenharmony_ci	.device_no = (mfc), }
1708c2ecf20Sopenharmony_ci
1718c2ecf20Sopenharmony_ci#define PCMCIA_PFC_DEVICE_PROD_ID2(mfc, v2, vh2) { \
1728c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_PROD_ID2| \
1738c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_DEVICE_NO, \
1748c2ecf20Sopenharmony_ci	.prod_id = { NULL, (v2), NULL, NULL },  \
1758c2ecf20Sopenharmony_ci	.prod_id_hash = { 0, (vh2), 0, 0 }, \
1768c2ecf20Sopenharmony_ci	.device_no = (mfc), }
1778c2ecf20Sopenharmony_ci
1788c2ecf20Sopenharmony_ci#define PCMCIA_PFC_DEVICE_PROD_ID12(mfc, v1, v2, vh1, vh2) { \
1798c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_PROD_ID1| \
1808c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID2| \
1818c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_DEVICE_NO, \
1828c2ecf20Sopenharmony_ci	.prod_id = { (v1), (v2), NULL, NULL }, \
1838c2ecf20Sopenharmony_ci	.prod_id_hash = { (vh1), (vh2), 0, 0 }, \
1848c2ecf20Sopenharmony_ci	.device_no = (mfc), }
1858c2ecf20Sopenharmony_ci
1868c2ecf20Sopenharmony_ci#define PCMCIA_PFC_DEVICE_PROD_ID13(mfc, v1, v3, vh1, vh3) { \
1878c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_PROD_ID1| \
1888c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID3| \
1898c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_DEVICE_NO, \
1908c2ecf20Sopenharmony_ci	.prod_id = { (v1), NULL, (v3), NULL }, \
1918c2ecf20Sopenharmony_ci	.prod_id_hash = { (vh1), 0, (vh3), 0 }, \
1928c2ecf20Sopenharmony_ci	.device_no = (mfc), }
1938c2ecf20Sopenharmony_ci
1948c2ecf20Sopenharmony_ci#define PCMCIA_PFC_DEVICE_PROD_ID123(mfc, v1, v2, v3, vh1, vh2, vh3) { \
1958c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_PROD_ID1| \
1968c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID2| \
1978c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID3| \
1988c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_DEVICE_NO, \
1998c2ecf20Sopenharmony_ci	.prod_id = { (v1), (v2), (v3), NULL },\
2008c2ecf20Sopenharmony_ci	.prod_id_hash = { (vh1), (vh2), (vh3), 0 }, \
2018c2ecf20Sopenharmony_ci	.device_no = (mfc), }
2028c2ecf20Sopenharmony_ci
2038c2ecf20Sopenharmony_ci/* cards needing a CIS override */
2048c2ecf20Sopenharmony_ci
2058c2ecf20Sopenharmony_ci#define PCMCIA_DEVICE_CIS_MANF_CARD(manf, card, _cisfile) { \
2068c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_FAKE_CIS | \
2078c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_MANF_ID| \
2088c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_CARD_ID, \
2098c2ecf20Sopenharmony_ci	.manf_id = (manf), \
2108c2ecf20Sopenharmony_ci	.card_id = (card), \
2118c2ecf20Sopenharmony_ci	.cisfile = (_cisfile)}
2128c2ecf20Sopenharmony_ci
2138c2ecf20Sopenharmony_ci#define PCMCIA_DEVICE_CIS_PROD_ID12(v1, v2, vh1, vh2, _cisfile) { \
2148c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_FAKE_CIS | \
2158c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID1| \
2168c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID2, \
2178c2ecf20Sopenharmony_ci	.prod_id = { (v1), (v2), NULL, NULL }, \
2188c2ecf20Sopenharmony_ci	.prod_id_hash = { (vh1), (vh2), 0, 0 }, \
2198c2ecf20Sopenharmony_ci	.cisfile = (_cisfile)}
2208c2ecf20Sopenharmony_ci
2218c2ecf20Sopenharmony_ci#define PCMCIA_DEVICE_CIS_PROD_ID123(v1, v2, v3, vh1, vh2, vh3, _cisfile) { \
2228c2ecf20Sopenharmony_ci	.match_flags = PCMCIA_DEV_ID_MATCH_FAKE_CIS | \
2238c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID1| \
2248c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID2| \
2258c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID3, \
2268c2ecf20Sopenharmony_ci	.prod_id = { (v1), (v2), (v3), NULL },\
2278c2ecf20Sopenharmony_ci	.prod_id_hash = { (vh1), (vh2), (vh3), 0 }, \
2288c2ecf20Sopenharmony_ci	.cisfile = (_cisfile)}
2298c2ecf20Sopenharmony_ci
2308c2ecf20Sopenharmony_ci
2318c2ecf20Sopenharmony_ci#define PCMCIA_DEVICE_CIS_PROD_ID2(v2, vh2, _cisfile) { \
2328c2ecf20Sopenharmony_ci	.match_flags =  PCMCIA_DEV_ID_MATCH_FAKE_CIS | \
2338c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID2, \
2348c2ecf20Sopenharmony_ci	.prod_id = { NULL, (v2), NULL, NULL },  \
2358c2ecf20Sopenharmony_ci	.prod_id_hash = { 0, (vh2), 0, 0 }, \
2368c2ecf20Sopenharmony_ci	.cisfile = (_cisfile)}
2378c2ecf20Sopenharmony_ci
2388c2ecf20Sopenharmony_ci#define PCMCIA_PFC_DEVICE_CIS_PROD_ID12(mfc, v1, v2, vh1, vh2, _cisfile) { \
2398c2ecf20Sopenharmony_ci	.match_flags =  PCMCIA_DEV_ID_MATCH_FAKE_CIS | \
2408c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID1| \
2418c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID2| \
2428c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_DEVICE_NO, \
2438c2ecf20Sopenharmony_ci	.prod_id = { (v1), (v2), NULL, NULL }, \
2448c2ecf20Sopenharmony_ci	.prod_id_hash = { (vh1), (vh2), 0, 0 },\
2458c2ecf20Sopenharmony_ci	.device_no = (mfc), \
2468c2ecf20Sopenharmony_ci	.cisfile = (_cisfile)}
2478c2ecf20Sopenharmony_ci
2488c2ecf20Sopenharmony_ci#define PCMCIA_MFC_DEVICE_CIS_MANF_CARD(mfc, manf, card, _cisfile) { \
2498c2ecf20Sopenharmony_ci	.match_flags =  PCMCIA_DEV_ID_MATCH_FAKE_CIS | \
2508c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_MANF_ID| \
2518c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_CARD_ID| \
2528c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_FUNCTION, \
2538c2ecf20Sopenharmony_ci	.manf_id = (manf), \
2548c2ecf20Sopenharmony_ci	.card_id = (card), \
2558c2ecf20Sopenharmony_ci	.function = (mfc), \
2568c2ecf20Sopenharmony_ci	.cisfile = (_cisfile)}
2578c2ecf20Sopenharmony_ci
2588c2ecf20Sopenharmony_ci#define PCMCIA_MFC_DEVICE_CIS_PROD_ID12(mfc, v1, v2, vh1, vh2, _cisfile) { \
2598c2ecf20Sopenharmony_ci	.match_flags =  PCMCIA_DEV_ID_MATCH_FAKE_CIS | \
2608c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID1| \
2618c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID2| \
2628c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_FUNCTION, \
2638c2ecf20Sopenharmony_ci	.prod_id = { (v1), (v2), NULL, NULL }, \
2648c2ecf20Sopenharmony_ci	.prod_id_hash = { (vh1), (vh2), 0, 0 }, \
2658c2ecf20Sopenharmony_ci	.function = (mfc), \
2668c2ecf20Sopenharmony_ci	.cisfile = (_cisfile)}
2678c2ecf20Sopenharmony_ci
2688c2ecf20Sopenharmony_ci#define PCMCIA_MFC_DEVICE_CIS_PROD_ID4(mfc, v4, vh4, _cisfile) { \
2698c2ecf20Sopenharmony_ci	.match_flags =  PCMCIA_DEV_ID_MATCH_FAKE_CIS | \
2708c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_PROD_ID4| \
2718c2ecf20Sopenharmony_ci			PCMCIA_DEV_ID_MATCH_FUNCTION, \
2728c2ecf20Sopenharmony_ci	.prod_id = { NULL, NULL, NULL, (v4) }, \
2738c2ecf20Sopenharmony_ci	.prod_id_hash = { 0, 0, 0, (vh4) }, \
2748c2ecf20Sopenharmony_ci	.function = (mfc), \
2758c2ecf20Sopenharmony_ci	.cisfile = (_cisfile)}
2768c2ecf20Sopenharmony_ci
2778c2ecf20Sopenharmony_ci
2788c2ecf20Sopenharmony_ci#define PCMCIA_DEVICE_NULL { .match_flags = 0, }
2798c2ecf20Sopenharmony_ci
2808c2ecf20Sopenharmony_ci#endif /* __KERNEL__ */
2818c2ecf20Sopenharmony_ci#endif /* _LINUX_PCMCIA_DEVICE_ID_H */
282