mirror of
https://github.com/ipxe/ipxe
synced 2026-04-16 03:00:10 +03:00
Updated ISAPnP, EISA, MCA and ISA buses to current device model.
ISA 3c509 is currently non-functional, although the EISA (3c509-eisa) and MCA (3c529) variants should build OK. None of this code is yet tested.
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
#include "stdint.h"
|
||||
#include "byteswap.h"
|
||||
#include "console.h"
|
||||
#include "isa_ids.h"
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <byteswap.h>
|
||||
#include <gpxe/isa_ids.h>
|
||||
|
||||
/*
|
||||
* EISA and ISAPnP IDs are actually mildly human readable, though in a
|
||||
* somewhat brain-damaged way.
|
||||
*
|
||||
*/
|
||||
char * isa_id_string ( uint16_t vendor, uint16_t product ) {
|
||||
static unsigned char buf[7];
|
||||
char * isa_id_string ( unsigned int vendor, unsigned int product ) {
|
||||
static char buf[7];
|
||||
int i;
|
||||
|
||||
/* Vendor ID is a compressed ASCII string */
|
||||
@@ -20,7 +20,7 @@ char * isa_id_string ( uint16_t vendor, uint16_t product ) {
|
||||
}
|
||||
|
||||
/* Product ID is a 4-digit hex string */
|
||||
sprintf ( &buf[3], "%hx", bswap_16 ( product ) );
|
||||
sprintf ( &buf[3], "%04x", bswap_16 ( product ) );
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user