aboutsummaryrefslogtreecommitdiff
path: root/hwsetup.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2019-07-24 12:14:56 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2019-07-24 12:14:56 +0200
commit0f147388c0c23a2f7267ee0bf58333939d7a5d84 (patch)
tree99c3e4a51bb475b4513f75e1952cad34c31667e9 /hwsetup.c
parente7fc653f44247f1008509a68bf9b666e33fea0e5 (diff)
downloadqboot-0f147388c0c23a2f7267ee0bf58333939d7a5d84.zip
qboot-0f147388c0c23a2f7267ee0bf58333939d7a5d84.tar.gz
qboot-0f147388c0c23a2f7267ee0bf58333939d7a5d84.tar.bz2
do not mix tabs and spaces in a single file
Diffstat (limited to 'hwsetup.c')
-rw-r--r--hwsetup.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/hwsetup.c b/hwsetup.c
index 9d51daa..6eae3fa 100644
--- a/hwsetup.c
+++ b/hwsetup.c
@@ -25,7 +25,7 @@ static void setup_piix_pm(void)
{
const int bdf = (1 << 3) | 3;
- pci_config_writel(bdf, PIIX_PMBASE, 0x601);
+ pci_config_writel(bdf, PIIX_PMBASE, 0x601);
pci_config_writeb(bdf, PIIX_PMREGMISC, 0x01);
pci_config_writel(bdf, PIIX_SMBHSTBASE, 0x701);
pci_config_writeb(bdf, PIIX_SMBHSTCFG, 0x09);
@@ -61,25 +61,25 @@ static void setup_ich9_pm(void)
static void setup_pic(void)
{
- /* Send ICW1 (select OCW1 + will send ICW4) */
- outb(0x20, 0x11);
- outb(0xa0, 0x11);
- /* Send ICW2 (base irqs: 0x08-0x0f for irq0-7, 0x70-0x77 for irq8-15) */
- outb(0x21, 8);
- outb(0xa1, 0x70);
- /* Send ICW3 (cascaded pic ids) */
- outb(0x21, 0x04);
- outb(0xa1, 0x02);
- /* Send ICW4 (enable 8086 mode) */
- outb(0x21, 0x01);
- outb(0xa1, 0x01);
- /* Mask all irqs (except cascaded PIC2 irq) */
- outb(0x21, ~(1 << 2));
- outb(0xa1, ~0);
-
- /* Set ELCR to IRQs 10 and 11 */
- outb(0x4d0, 0);
- outb(0x4d1, 0x0c);
+ /* Send ICW1 (select OCW1 + will send ICW4) */
+ outb(0x20, 0x11);
+ outb(0xa0, 0x11);
+ /* Send ICW2 (base irqs: 0x08-0x0f for irq0-7, 0x70-0x77 for irq8-15) */
+ outb(0x21, 8);
+ outb(0xa1, 0x70);
+ /* Send ICW3 (cascaded pic ids) */
+ outb(0x21, 0x04);
+ outb(0xa1, 0x02);
+ /* Send ICW4 (enable 8086 mode) */
+ outb(0x21, 0x01);
+ outb(0xa1, 0x01);
+ /* Mask all irqs (except cascaded PIC2 irq) */
+ outb(0x21, ~(1 << 2));
+ outb(0xa1, ~0);
+
+ /* Set ELCR to IRQs 10 and 11 */
+ outb(0x4d0, 0);
+ outb(0x4d1, 0x0c);
}
void setup_pam(int bdf, int pambase)
@@ -103,8 +103,8 @@ void setup_hw(void)
int rom_check_value;
int pambase;
- uint32_t id = pci_config_readl(bdf, 0);
- if (id == (PCI_VENDOR_ID_INTEL | (PCI_DEVICE_ID_INTEL_82441 << 16))) {
+ uint32_t id = pci_config_readl(bdf, 0);
+ if (id == (PCI_VENDOR_ID_INTEL | (PCI_DEVICE_ID_INTEL_82441 << 16))) {
setup_piix();
setup_piix_pm();
pambase = I440FX_PAM0;