13 #include <linux/kernel.h>
14 #include <linux/types.h>
18 #ifdef CONFIG_ZORRO_NAMES
20 struct zorro_prod_info {
26 struct zorro_manuf_info {
30 struct zorro_prod_info *prods;
39 #define MANUF( manuf, name ) static char __manufstr_##manuf[] __initdata = name;
41 #define PRODUCT( manuf, prod, name ) static char __prodstr_##manuf##prod[] __initdata = name;
45 #define MANUF( manuf, name ) static struct zorro_prod_info __prods_##manuf[] __initdata = {
47 #define PRODUCT( manuf, prod, name ) { 0x##prod, 0, __prodstr_##manuf##prod },
50 static struct zorro_manuf_info
__initdata zorro_manuf_list[] = {
51 #define MANUF( manuf, name ) { 0x##manuf, sizeof(__prods_##manuf) / sizeof(struct zorro_prod_info), __manufstr_##manuf, __prods_##manuf },
53 #define PRODUCT( manuf, prod, name )
57 #define MANUFS (sizeof(zorro_manuf_list)/sizeof(struct zorro_manuf_info))
61 const struct zorro_manuf_info *manuf_p = zorro_manuf_list;
63 char *
name = dev->name;
72 sprintf(name,
"Zorro device %08x", dev->id);
76 struct zorro_prod_info *prod_p = manuf_p->prods;
88 sprintf(name,
"Zorro device %08x (%s)", dev->id, manuf_p->name);
93 char *
n = name +
sprintf(name,
"%s %s", manuf_p->name, prod_p->name);
94 int nr = prod_p->seen + 1;