http://git.etherboot.org
/
people
/
xl0
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b8e549
)
Use __bswap_16, since we're not dealing with quantities to go onto the network.
author
Michael Brown
<mcb30@etherboot.org>
Wed, 13 Apr 2005 12:11:21 +0000
(12:11 +0000)
committer
Michael Brown
<mcb30@etherboot.org>
Wed, 13 Apr 2005 12:11:21 +0000
(12:11 +0000)
src/drivers/bus/isa_ids.c
patch
|
blob
|
history
diff --git
a/src/drivers/bus/isa_ids.c
b/src/drivers/bus/isa_ids.c
index
f7be112
..
e6ca7d5
100644
(file)
--- a/
src/drivers/bus/isa_ids.c
+++ b/
src/drivers/bus/isa_ids.c
@@
-11,14
+11,14
@@
char * isa_id_string ( uint16_t vendor, uint16_t product ) {
int i;
/* Vendor ID is a compressed ASCII string */
- vendor =
htons
( 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",
htons
( product ) );
+ sprintf ( &buf[3], "%hx",
__bswap_16
( product ) );
return buf;
}