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:
Michael Brown
2007-03-10 18:08:33 +00:00
parent f079865606
commit 520d9c36af
36 changed files with 1445 additions and 1675 deletions
+7 -7
View File
@@ -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;
}