X-Git-Url: http://git.etherboot.org/people/xl0/gpxe.git/blobdiff_plain/4ecbc63296c561bf3b68eccc3f9ab20638032cef..6d32f0e6e2179afa4e78ab94d3fbfb691a6f99de:/src/drivers/bus/isa_ids.c diff --git a/src/drivers/bus/isa_ids.c b/src/drivers/bus/isa_ids.c index e6ca7d59..a175ed45 100644 --- a/src/drivers/bus/isa_ids.c +++ b/src/drivers/bus/isa_ids.c @@ -1,4 +1,6 @@ -#include "etherboot.h" +#include "stdint.h" +#include "byteswap.h" +#include "console.h" #include "isa_ids.h" /* @@ -11,14 +13,14 @@ char * isa_id_string ( uint16_t vendor, uint16_t product ) { int i; /* Vendor ID is a compressed ASCII string */ - vendor = __bswap_16 ( vendor ); + vendor = bswap_16 ( vendor ); for ( i = 2 ; i >= 0 ; i-- ) { buf[i] = ( 'A' - 1 + ( vendor & 0x1f ) ); vendor >>= 5; } /* Product ID is a 4-digit hex string */ - sprintf ( &buf[3], "%hx", __bswap_16 ( product ) ); + sprintf ( &buf[3], "%hx", bswap_16 ( product ) ); return buf; }