summaryrefslogtreecommitdiff
path: root/src/drivers/generic/ioapic
diff options
context:
space:
mode:
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>2012-08-22 19:12:49 -0500
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>2012-08-30 04:25:43 +0200
commit83a6dbd006a3afec979d8bb7316834fcb54e003b (patch)
tree888974acb4c21cbb4240f422ad6a73b3c73d37ba /src/drivers/generic/ioapic
parent87213b655eaa09522366f92088f94913024b6ef9 (diff)
ioapic driver: typedef the ioapic_config struct (TRIVIAL)
I use the ioapic_config in my VX900 branch. Typing: struct drivers_generic_ioapic_config *config = (struct drivers_generic_ioapic_config *)dev->chip_info; is clumsy at best, so just create a typedef to mahe this more elegant: ioapic_config_t config = (ioapic_config_t*)ioapic->chip_info; Change-Id: I407899845cfbd847ba6309dd0cf9ef836a607c8e Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-on: http://review.coreboot.org/1481 Tested-by: build bot (Jenkins) Reviewed-by: Anton Kochkov <anton.kochkov@gmail.com>
Diffstat (limited to 'src/drivers/generic/ioapic')
-rw-r--r--src/drivers/generic/ioapic/chip.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/drivers/generic/ioapic/chip.h b/src/drivers/generic/ioapic/chip.h
index ad6ff0ba1f..0936d63c90 100644
--- a/src/drivers/generic/ioapic/chip.h
+++ b/src/drivers/generic/ioapic/chip.h
@@ -2,6 +2,7 @@
* This file is part of the coreboot project.
*
* Copyright (C) 2011 Sven Schnelle <svens@stackframe.org>
+ * Copyright (C) 2012 Alexandru Gagniuc <mr.nuke.me@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -20,12 +21,13 @@
#ifndef DRIVERS_GENERIC_IOAPIC_CHIP_H
#define DRIVERS_GENERIC_IOAPIC_CHIP_H
-struct drivers_generic_ioapic_config {
+typedef struct drivers_generic_ioapic_config {
u32 version;
u8 apicid;
u8 irq_on_fsb;
u8 enable_virtual_wire;
u8 have_isa_interrupts;
u32 base;
-};
+} ioapic_config_t;
+
#endif