8 #include <linux/module.h>
10 #include <linux/string.h>
12 static void pnp_convert_id(
char *
buf,
unsigned short vendor,
16 'A' + ((vendor >> 2) & 0x3f) - 1,
17 'A' + (((vendor & 3) << 3) | ((vendor >> 13) & 7)) - 1,
18 'A' + ((vendor >> 8) & 0x1f) - 1,
19 (device >> 4) & 0x0f, device & 0x0f,
20 (device >> 12) & 0x0f, (device >> 8) & 0x0f);
30 pnp_convert_id(
id, vendor, device);
33 list = from ? from->
global_list.next : pnp_cards.next;
35 while (list != &pnp_cards) {
51 pnp_convert_id(
id, vendor,
function);
56 list = pnp_global.
next;
60 while (list != &pnp_global) {
74 if (from->
card != card)
77 while (list != &card->
devices) {