Lines Matching +full:product +full:- +full:id
1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 1999--2000 Geert Uytterhoeven
9 * Copyright 1992--1999 Drew Eckhardt, Frederic Potter,
10 * David Mosberger-Tang, Martin Mares
41 #define PRODUCT( manuf, prod, name ) static char __prodstr_##manuf##prod[] __initdata = name; macro
47 #define PRODUCT( manuf, prod, name ) { 0x##prod, 0, __prodstr_##manuf##prod }, macro
53 #define PRODUCT( manuf, prod, name ) macro
63 char *name = dev->name; in zorro_name_device()
66 if (manuf_p->manuf == ZORRO_MANUF(dev->id)) in zorro_name_device()
69 } while (--i); in zorro_name_device()
71 /* Couldn't find either the manufacturer nor the product */ in zorro_name_device()
75 struct zorro_prod_info *prod_p = manuf_p->prods; in zorro_name_device()
76 int i = manuf_p->nr; in zorro_name_device()
79 if (prod_p->prod == in zorro_name_device()
80 ((ZORRO_PROD(dev->id)<<8) | ZORRO_EPC(dev->id))) in zorro_name_device()
83 i--; in zorro_name_device()
86 /* Ok, found the manufacturer, but unknown product */ in zorro_name_device()
87 sprintf(name, "Zorro device %08x (%s)", dev->id, manuf_p->name); in zorro_name_device()
92 char *n = name + sprintf(name, "%s %s", manuf_p->name, prod_p->name); in zorro_name_device()
93 int nr = prod_p->seen + 1; in zorro_name_device()
94 prod_p->seen = nr; in zorro_name_device()