summaryrefslogtreecommitdiffstats
path: root/sys/dev/pccard
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2015-12-11 05:27:56 +0000
committerimp <imp@FreeBSD.org>2015-12-11 05:27:56 +0000
commit77eac42e70f63160d6d267a51a880c804e5b20e7 (patch)
tree51c67d8f989abcf155937134d4d0168e42f113f9 /sys/dev/pccard
parent870ecdf4d397cee51bc3827b3430ba890ffa6de7 (diff)
downloadFreeBSD-src-77eac42e70f63160d6d267a51a880c804e5b20e7.zip
FreeBSD-src-77eac42e70f63160d6d267a51a880c804e5b20e7.tar.gz
Create a generic PCCARD_PNP_INFO from the MODULE_PNP_INFO building
block. Use it in all the PNP drivers to export either the current PNP table. For uart, create a custom table and export it using MODULE_PNP_INFO since it's the only one that matches on function number. Differential Review: https://reviews.freebsd.org/D3461
Diffstat (limited to 'sys/dev/pccard')
-rw-r--r--sys/dev/pccard/pccardvar.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/dev/pccard/pccardvar.h b/sys/dev/pccard/pccardvar.h
index bef4a7c..3bc27e3 100644
--- a/sys/dev/pccard/pccardvar.h
+++ b/sys/dev/pccard/pccardvar.h
@@ -85,6 +85,16 @@ struct pccard_product {
const char *pp_cis[4];
};
+/**
+ * Note: There's no cis3 or cis4 reported for NOMATCH / pnpinfo events for pccard
+ * It's unclear if we actually need that for automatic loading or not. These stirngs
+ * are informative, according to the standard, but I have a dim memory of using these
+ * strings to match things, though I can't find the example right now.
+ */
+#define PCCARD_PNP_DESCR "D:human;V32:manufacturer;V32:product;Z:cisvendor;Z:cisproduct;"
+#define PCCARD_PNP_INFO(t) \
+ MODULE_PNP_INFO(PCCARD_PNP_DESCR, pccard, t, t, sizeof(t[0]), sizeof(t) / sizeof(t[0])); \
+
typedef int (*pccard_product_match_fn) (device_t dev,
const struct pccard_product *ent, int vpfmatch);
OpenPOWER on IntegriCloud