mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
bitkeeper revision 1.1389.7.3 (42792bb0bqVz6IEYKWbCD7d63K-6ew)
fixmap.h, boot.c, tables.c, io_apic.h: Cleanup whitespace. Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
1 parent
5973359f07
commit
b24cf30a19
4 files changed
+33
-32
No files matched your search
@@ -109,17 +109,18 @@ enum acpi_irq_model_id acpi_irq_model = ACPI_IRQ_MODEL_PIC;
|
||||
|
||||
char *__acpi_map_table(unsigned long phys_addr, unsigned long size)
|
||||
{
|
||||
unsigned int i,j;
|
||||
unsigned int i,j;
|
||||
|
||||
j = PAGE_ALIGN(size) >> PAGE_SHIFT;
|
||||
for (i = 0; (i < FIX_ACPI_PAGES) && j ; i++, j--) {
|
||||
__set_fixmap_ma(FIX_ACPI_END - i,
|
||||
(phys_addr & PAGE_MASK) + (i << PAGE_SHIFT),
|
||||
PAGE_KERNEL);
|
||||
}
|
||||
j = PAGE_ALIGN(size) >> PAGE_SHIFT;
|
||||
for (i = 0; (i < FIX_ACPI_PAGES) && j ; i++, j--) {
|
||||
__set_fixmap_ma(FIX_ACPI_END - i,
|
||||
(phys_addr & PAGE_MASK) + (i << PAGE_SHIFT),
|
||||
PAGE_KERNEL);
|
||||
}
|
||||
|
||||
return (char *) __fix_to_virt(FIX_ACPI_END) + (phys_addr & ~PAGE_MASK);
|
||||
return (char *) __fix_to_virt(FIX_ACPI_END) + (phys_addr & ~PAGE_MASK);
|
||||
}
|
||||
|
||||
#else
|
||||
#ifdef CONFIG_X86_64
|
||||
|
||||
@@ -523,7 +524,7 @@ acpi_scan_rsdp (
|
||||
{
|
||||
unsigned long offset = 0;
|
||||
unsigned long sig_len = sizeof("RSD PTR ") - 1;
|
||||
unsigned long vstart = isa_bus_to_virt(start);
|
||||
unsigned long vstart = isa_bus_to_virt(start);
|
||||
|
||||
/*
|
||||
* Scan all 16-byte boundaries of the physical memory region for the
|
||||
@@ -649,7 +650,6 @@ acpi_find_rsdp (void)
|
||||
else if (efi.acpi)
|
||||
return __pa(efi.acpi);
|
||||
}
|
||||
|
||||
/*
|
||||
* Scan memory looking for the RSDP signature. First search EBDA (low
|
||||
* memory) paragraphs and then search upper memory (E0000-FFFFF).
|
||||
@@ -658,7 +658,7 @@ acpi_find_rsdp (void)
|
||||
if (!rsdp_phys)
|
||||
rsdp_phys = acpi_scan_rsdp (0xE0000, 0x20000);
|
||||
|
||||
__set_fixmap_ma(FIX_ACPI_RSDP_PAGE, rsdp_phys, PAGE_KERNEL);
|
||||
__set_fixmap_ma(FIX_ACPI_RSDP_PAGE, rsdp_phys, PAGE_KERNEL);
|
||||
|
||||
return rsdp_phys;
|
||||
}
|
||||
@@ -674,7 +674,7 @@ acpi_parse_madt_lapic_entries(void)
|
||||
int count;
|
||||
|
||||
#ifdef CONFIG_XEN
|
||||
return 0;
|
||||
return 0;
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -872,7 +872,9 @@ acpi_boot_table_init(void)
|
||||
}
|
||||
|
||||
#ifdef __i386__
|
||||
//check_acpi_pci();
|
||||
#ifndef CONFIG_XEN
|
||||
check_acpi_pci();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
acpi_table_parse(ACPI_BOOT, acpi_parse_sbf);
|
||||
|
||||
@@ -581,8 +581,8 @@ acpi_table_init (void)
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
rsdp = (struct acpi_table_rsdp *) (__fix_to_virt(FIX_ACPI_RSDP_PAGE)
|
||||
+ (rsdp_phys & ~PAGE_MASK));
|
||||
rsdp = (struct acpi_table_rsdp *) (__fix_to_virt(FIX_ACPI_RSDP_PAGE) +
|
||||
(rsdp_phys & ~PAGE_MASK));
|
||||
if (!rsdp) {
|
||||
printk(KERN_WARNING PREFIX "Unable to map RSDP\n");
|
||||
return -ENODEV;
|
||||
|
||||
@@ -80,7 +80,7 @@ enum fixed_addresses {
|
||||
#ifdef CONFIG_ACPI_BOOT
|
||||
FIX_ACPI_BEGIN,
|
||||
FIX_ACPI_END = FIX_ACPI_BEGIN + FIX_ACPI_PAGES - 1,
|
||||
FIX_ACPI_RSDP_PAGE,
|
||||
FIX_ACPI_RSDP_PAGE,
|
||||
#endif
|
||||
#ifdef CONFIG_PCI_MMCONFIG
|
||||
FIX_PCIE_MCFG,
|
||||
|
||||
@@ -165,28 +165,27 @@ extern int mpc_default_type;
|
||||
|
||||
static inline unsigned int io_apic_read(unsigned int apic, unsigned int reg)
|
||||
{
|
||||
physdev_op_t op;
|
||||
int ret;
|
||||
physdev_op_t op;
|
||||
int ret;
|
||||
|
||||
op.cmd = PHYSDEVOP_APIC_READ;
|
||||
op.u.apic_op.apic = apic;
|
||||
op.u.apic_op.offset = reg;
|
||||
ret = HYPERVISOR_physdev_op(&op);
|
||||
if (ret)
|
||||
return ret;
|
||||
return op.u.apic_op.value;
|
||||
op.cmd = PHYSDEVOP_APIC_READ;
|
||||
op.u.apic_op.apic = apic;
|
||||
op.u.apic_op.offset = reg;
|
||||
ret = HYPERVISOR_physdev_op(&op);
|
||||
if (ret)
|
||||
return ret;
|
||||
return op.u.apic_op.value;
|
||||
}
|
||||
|
||||
static inline void io_apic_write(unsigned int apic, unsigned int reg, unsigned int value)
|
||||
{
|
||||
physdev_op_t op;
|
||||
int ret;
|
||||
physdev_op_t op;
|
||||
|
||||
op.cmd = PHYSDEVOP_APIC_WRITE;
|
||||
op.u.apic_op.apic = apic;
|
||||
op.u.apic_op.offset = reg;
|
||||
op.u.apic_op.value = value;
|
||||
ret = HYPERVISOR_physdev_op(&op);
|
||||
op.cmd = PHYSDEVOP_APIC_WRITE;
|
||||
op.u.apic_op.apic = apic;
|
||||
op.u.apic_op.offset = reg;
|
||||
op.u.apic_op.value = value;
|
||||
HYPERVISOR_physdev_op(&op);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||