eepro100: Use symbolic names and BIT macros in binary operations
authorStefan Weil <weil@mail.berlios.de>
Tue, 2 Mar 2010 21:37:49 +0000 (22:37 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 3 Mar 2010 11:34:01 +0000 (13:34 +0200)
commit227d76fbec10eda6a84f30f72ee0ba913d98b99d
tree95df4780988b6ec8a6c2e6807cdd5fb62b522103
parent78ce8a8f87c1e375990f08f42285a623a59887fb
eepro100: Use symbolic names and BIT macros in binary operations

Instead of magic numbers like 0x8000, symbolic names are used
for the SCB command and status bits.

There are too many configuration bits to use symbolic names
there, too. Using the BIT macro is a little help when comparing
code and documentation.

For the same reason, some other constants were replaced by
the BITS macro.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/eepro100.c