aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-09-13 08:32:37 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-09-13 08:32:37 +0000
commit675d6f82106a01fb2f7223c4c31bad2fa3bc3ac6 (patch)
treef9d019149e9f1031382300d35cddaff50eeeefe3 /hw
parentoss: Simplify mmap code (diff)
downloadqemu-kvm-675d6f82106a01fb2f7223c4c31bad2fa3bc3ac6.tar.gz
qemu-kvm-675d6f82106a01fb2f7223c4c31bad2fa3bc3ac6.tar.bz2
qemu-kvm-675d6f82106a01fb2f7223c4c31bad2fa3bc3ac6.zip
x86: add 'const'
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/pc.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/hw/pc.c b/hw/pc.c
index d96d75659..1cf47d637 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -1017,14 +1017,15 @@ static const int ide_irq[2] = { 14, 15 };
#define NE2000_NB_MAX 6
-static int ne2000_io[NE2000_NB_MAX] = { 0x300, 0x320, 0x340, 0x360, 0x280, 0x380 };
-static int ne2000_irq[NE2000_NB_MAX] = { 9, 10, 11, 3, 4, 5 };
+static const int ne2000_io[NE2000_NB_MAX] = { 0x300, 0x320, 0x340, 0x360,
+ 0x280, 0x380 };
+static const int ne2000_irq[NE2000_NB_MAX] = { 9, 10, 11, 3, 4, 5 };
-static int serial_io[MAX_SERIAL_PORTS] = { 0x3f8, 0x2f8, 0x3e8, 0x2e8 };
-static int serial_irq[MAX_SERIAL_PORTS] = { 4, 3, 4, 3 };
+static const int serial_io[MAX_SERIAL_PORTS] = { 0x3f8, 0x2f8, 0x3e8, 0x2e8 };
+static const int serial_irq[MAX_SERIAL_PORTS] = { 4, 3, 4, 3 };
-static int parallel_io[MAX_PARALLEL_PORTS] = { 0x378, 0x278, 0x3bc };
-static int parallel_irq[MAX_PARALLEL_PORTS] = { 7, 7, 7 };
+static const int parallel_io[MAX_PARALLEL_PORTS] = { 0x378, 0x278, 0x3bc };
+static const int parallel_irq[MAX_PARALLEL_PORTS] = { 7, 7, 7 };
#ifdef HAS_AUDIO
static void audio_init (PCIBus *pci_bus, qemu_irq *pic)