aboutsummaryrefslogtreecommitdiffstats
path: root/xen-2.4.16/drivers/ide/ide-xeno.c
diff options
context:
space:
mode:
Diffstat (limited to 'xen-2.4.16/drivers/ide/ide-xeno.c')
-rw-r--r--xen-2.4.16/drivers/ide/ide-xeno.c61
1 files changed, 28 insertions, 33 deletions
diff --git a/xen-2.4.16/drivers/ide/ide-xeno.c b/xen-2.4.16/drivers/ide/ide-xeno.c
index eb7e6cab58..e0ce54feed 100644
--- a/xen-2.4.16/drivers/ide/ide-xeno.c
+++ b/xen-2.4.16/drivers/ide/ide-xeno.c
@@ -5,42 +5,37 @@
#include <hypervisor-ifs/block.h>
-void
-ide_probe_devices (xen_disk_info_t* xdi)
+void ide_probe_devices (xen_disk_info_t* xdi)
{
- int loop;
-
- for (loop = 0; loop < MAX_HWIFS; ++loop)
- {
- ide_hwif_t *hwif = &ide_hwifs[loop];
- if (hwif->present)
- {
- struct gendisk *gd = hwif->gd;
- unsigned int unit;
-
- for (unit = 0; unit < MAX_DRIVES; ++unit)
- {
- unsigned long capacity;
-
- ide_drive_t *drive = &hwif->drives[unit];
-
- if (drive->present)
- {
- capacity = current_capacity (drive);
-
- xdi->disks[xdi->count].type = XEN_DISK_IDE;
- xdi->disks[xdi->count].capacity = capacity;
- xdi->count++;
-
- printk (KERN_ALERT "IDE-XENO %d\n", xdi->count);
- printk (KERN_ALERT " capacity 0x%x\n", capacity);
- printk (KERN_ALERT " head 0x%x\n", drive->bios_head);
- printk (KERN_ALERT " sector 0x%x\n", drive->bios_sect);
- printk (KERN_ALERT " cylinder 0x%x\n", drive->bios_cyl);
+ int loop;
+
+ for (loop = 0; loop < MAX_HWIFS; ++loop) {
+
+ ide_hwif_t *hwif = &ide_hwifs[loop];
+ if (hwif->present) {
+
+ struct gendisk *gd = hwif->gd;
+ unsigned int unit;
+
+ for (unit = 0; unit < MAX_DRIVES; ++unit) {
+ unsigned long capacity;
+ ide_drive_t *drive = &hwif->drives[unit];
+
+ if (drive->present) {
+ capacity = current_capacity (drive);
+ xdi->disks[xdi->count].type = XEN_DISK_IDE;
+ xdi->disks[xdi->count].capacity = capacity;
+ xdi->count++;
+
+ printk (KERN_ALERT "IDE-XENO %d\n", xdi->count);
+ printk (KERN_ALERT " capacity 0x%x\n", capacity);
+ printk (KERN_ALERT " head 0x%x\n", drive->bios_head);
+ printk (KERN_ALERT " sector 0x%x\n", drive->bios_sect);
+ printk (KERN_ALERT " cylinder 0x%x\n", drive->bios_cyl);
+ }
+ }
}
- }
}
- }
return;
}