Messages in this thread | | | Date | Tue, 22 Apr 2003 11:46:14 +0200 (CEST) | Subject | mangled isapnp IDs in /proc/bus/isapnp/devices | From | Rene Rebe <> |
| |
Hi all,
is there a reason why the isapnp device id are mangled this way:
drivers/pnp/isapnp_proc.c
static void isapnp_devid(char *str, unsigned short vendor, unsigned short device) { sprintf(str, "%c%c%c%x%x%x%x", 'A' + ((vendor >> 2) & 0x3f) - 1, 'A' + (((vendor & 3) << 3) | ((vendor >> 13) & 7)) - 1, 'A' + ((vendor >> 8) & 0x1f) - 1, (device >> 4) & 0x0f, device & 0x0f, (device >> 12) & 0x0f, (device >> 8) & 0x0f); }
This results in output like:
CSCd937 CSC0000
Which I have to un-mangle ... :-( What is the reason for not outputting simple hex?
Sincerely, - René
-- René Rebe - Europe/Germany/Berlin e-mail: rene@rocklinux.org, rene.rebe@gmx.net web: http://www.rocklinux.org/people/rene http://gsmp.tfh-berlin.de/rene/
Anyone sending unwanted advertising e-mail to this address will be charged $25 for network traffic and computing time. By extracting my address from this message or its header, you agree to these terms. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |