mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
hw/net: Use the IEC binary prefix definitions
It eases code review, unit is explicit. Patch generated using: $ git grep -E '(1024|2048|4096|8192|(<<|>>).?(10|20|30))' hw/ include/hw/ and modified manually. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Stefan Weil <sw@weilnetz.de> Message-Id: <20180625124238.25339-35-f4bug@amsat.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
d471bf3ebb
commit
872a2b7c4d
5 changed files with 13 additions and 10 deletions
|
@ -1,11 +1,12 @@
|
|||
#ifndef HW_NE2000_H
|
||||
#define HW_NE2000_H
|
||||
|
||||
#include "qemu/units.h"
|
||||
#include "hw/hw.h"
|
||||
#include "net/net.h"
|
||||
|
||||
#define NE2000_PMEM_SIZE (32*1024)
|
||||
#define NE2000_PMEM_START (16*1024)
|
||||
#define NE2000_PMEM_SIZE (32 * KiB)
|
||||
#define NE2000_PMEM_START (16 * KiB)
|
||||
#define NE2000_PMEM_END (NE2000_PMEM_SIZE+NE2000_PMEM_START)
|
||||
#define NE2000_MEM_SIZE NE2000_PMEM_END
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue