mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
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
This commit is contained in:
parent
7f70c93716
commit
d78f399542
22 changed files with 3 additions and 80 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue