aboutsummaryrefslogtreecommitdiff
path: root/hw/eepro100.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-16 16:33:01 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-16 16:33:01 +0000
commitd78f399542b0b81fab67f31c9a88665943f0571d (patch)
tree78000d67343db1e17e038986d492d6918d335d18 /hw/eepro100.c
parent7f70c93716412b0874ae231c2f5416edccb22e7f (diff)
Delete some unused macros detected with -Wp,-Wunused-macros use
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6856 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/eepro100.c')
-rw-r--r--hw/eepro100.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/hw/eepro100.c b/hw/eepro100.c
index 9dd67fe689..2948d3c154 100644
--- a/hw/eepro100.c
+++ b/hw/eepro100.c
@@ -47,22 +47,11 @@
/* Common declarations for all PCI devices. */
-#define PCI_VENDOR_ID 0x00 /* 16 bits */
#define PCI_DEVICE_ID 0x02 /* 16 bits */
#define PCI_COMMAND 0x04 /* 16 bits */
#define PCI_STATUS 0x06 /* 16 bits */
#define PCI_REVISION_ID 0x08 /* 8 bits */
-#define PCI_CLASS_CODE 0x0b /* 8 bits */
-#define PCI_SUBCLASS_CODE 0x0a /* 8 bits */
-#define PCI_HEADER_TYPE 0x0e /* 8 bits */
-
-#define PCI_BASE_ADDRESS_0 0x10 /* 32 bits */
-#define PCI_BASE_ADDRESS_1 0x14 /* 32 bits */
-#define PCI_BASE_ADDRESS_2 0x18 /* 32 bits */
-#define PCI_BASE_ADDRESS_3 0x1c /* 32 bits */
-#define PCI_BASE_ADDRESS_4 0x20 /* 32 bits */
-#define PCI_BASE_ADDRESS_5 0x24 /* 32 bits */
#define PCI_CONFIG_8(offset, value) \
(pci_conf[offset] = (value))
@@ -199,12 +188,6 @@ typedef enum {
ru_ready = 4
} ru_state_t;
-#if defined(__BIG_ENDIAN_BITFIELD)
-#define X(a,b) b,a
-#else
-#define X(a,b) a,b
-#endif
-
typedef struct {
#if 1
uint8_t cmd;
@@ -1465,8 +1448,6 @@ static int nic_can_receive(void *opaque)
//~ return !eepro100_buffer_full(s);
}
-#define MIN_BUF_SIZE 60
-
static void nic_receive(void *opaque, const uint8_t * buf, int size)
{
/* TODO: