7 * EISA and ISAPnP IDs are actually mildly human readable, though in a
8 * somewhat brain-damaged way.
11 char * isa_id_string ( uint16_t vendor, uint16_t product ) {
12 static unsigned char buf[7];
15 /* Vendor ID is a compressed ASCII string */
16 vendor = bswap_16 ( vendor );
17 for ( i = 2 ; i >= 0 ; i-- ) {
18 buf[i] = ( 'A' - 1 + ( vendor & 0x1f ) );
22 /* Product ID is a 4-digit hex string */
23 sprintf ( &buf[3], "%hx", bswap_16 ( product ) );