Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77267
b: refs/heads/master
c: c99c92c
h: refs/heads/master
i:
  77265: 7b31a7e
  77263: 4dc3d3a
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jan 26, 2008
1 parent b61684e commit 697c8c7
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 36 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 81ca691981da718727281238b435dcf1528d2fda
refs/heads/master: c99c92c58757985096e2d195dc1631246d99d686
19 changes: 5 additions & 14 deletions trunk/drivers/ide/legacy/buddha.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ typedef enum BuddhaType_Enum {
BOARD_BUDDHA, BOARD_CATWEASEL, BOARD_XSURF
} BuddhaType;

static const char *buddha_board_name[] = { "Buddha", "Catweasel", "X-Surf" };

/*
* Check and acknowledge the interrupt status
Expand Down Expand Up @@ -197,7 +198,10 @@ static int __init buddha_init(void)
/* X-Surf doesn't have this. IRQs are always on */
if (type != BOARD_XSURF)
z_writeb(0, buddha_board+BUDDHA_IRQ_MR);


printk(KERN_INFO "ide: %s IDE controller\n",
buddha_board_name[type]);

for(i=0;i<buddha_num_hwifs;i++) {
if(type != BOARD_XSURF) {
ide_setup_ports(&hw, (buddha_board+buddha_bases[i]),
Expand All @@ -223,19 +227,6 @@ static int __init buddha_init(void)
ide_init_port_hw(hwif, &hw);

hwif->mmio = 1;
printk("ide%d: ", index);
switch(type) {
case BOARD_BUDDHA:
printk("Buddha");
break;
case BOARD_CATWEASEL:
printk("Catweasel");
break;
case BOARD_XSURF:
printk("X-Surf");
break;
}
printk(" IDE interface\n");

idx[i] = index;
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/ide/legacy/falconide.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ static int __init falconide_init(void)
if (MACH_IS_ATARI && ATARIHW_PRESENT(IDE)) {
hw_regs_t hw;

printk(KERN_INFO "ide: Falcon IDE controller\n");

ide_setup_ports(&hw, ATA_HD_BASE, falconide_offsets,
0, 0, NULL,
// falconide_iops,
Expand All @@ -80,8 +82,6 @@ static int __init falconide_init(void)
ide_init_port_data(hwif, index);
ide_init_port_hw(hwif, &hw);

printk("ide%d: Falcon IDE interface\n", index);

ide_device_add(idx);
}
}
Expand Down
18 changes: 7 additions & 11 deletions trunk/drivers/ide/legacy/gayle.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ static int __init gayle_init(void)
return -ENODEV;

found:
printk(KERN_INFO "ide: Gayle IDE controller (A%d style%s)\n",
a4000 ? 4000 : 1200,
#ifdef CONFIG_BLK_DEV_IDEDOUBLER
ide_doubler ? ", IDE doubler" :
#endif
"");

for (i = 0; i < GAYLE_NUM_PROBE_HWIFS; i++) {
unsigned long base, ctrlport, irqport;
ide_ack_intr_t *ack_intr;
Expand Down Expand Up @@ -173,17 +180,6 @@ static int __init gayle_init(void)
ide_init_port_hw(hwif, &hw);

hwif->mmio = 1;
switch (i) {
case 0:
printk("ide%d: Gayle IDE interface (A%d style)\n", index,
a4000 ? 4000 : 1200);
break;
#ifdef CONFIG_BLK_DEV_IDEDOUBLER
case 1:
printk("ide%d: IDE doubler\n", index);
break;
#endif /* CONFIG_BLK_DEV_IDEDOUBLER */
}

idx[i] = index;
} else
Expand Down
14 changes: 6 additions & 8 deletions trunk/drivers/ide/legacy/macide.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ int macide_ack_intr(ide_hwif_t* hwif)
return 0;
}

static const char *mac_ide_name[] =
{ "Quadra", "Powerbook", "Powerbook Baboon" };

/*
* Probe for a Macintosh IDE interface
*/
Expand Down Expand Up @@ -109,6 +112,9 @@ static int __init macide_init(void)
return -ENODEV;
}

printk(KERN_INFO "ide: Macintosh %s IDE controller\n",
mac_ide_name[macintosh_config->ide_type - 1]);

hwif = ide_find_port(hw.io_ports[IDE_DATA_OFFSET]);
if (hwif) {
u8 index = hwif->index;
Expand All @@ -128,14 +134,6 @@ static int __init macide_init(void)
}

hwif->mmio = 1;
if (macintosh_config->ide_type == MAC_IDE_QUADRA)
printk(KERN_INFO "ide%d: Macintosh Quadra IDE interface\n", index);
else if (macintosh_config->ide_type == MAC_IDE_PB)
printk(KERN_INFO "ide%d: Macintosh Powerbook IDE interface\n", index);
else if (macintosh_config->ide_type == MAC_IDE_BABOON)
printk(KERN_INFO "ide%d: Macintosh Powerbook Baboon IDE interface\n", index);
else
printk(KERN_INFO "ide%d: Unknown Macintosh IDE interface\n", index);

ide_device_add(idx);
}
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/ide/legacy/q40ide.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ static int __init q40ide_init(void)
if (!MACH_IS_Q40)
return -ENODEV;

printk(KERN_INFO "ide: Q40 IDE controller\n");

for (i = 0; i < Q40IDE_NUM_HWIFS; i++) {
hw_regs_t hw;

Expand Down

0 comments on commit 697c8c7

Please sign in to comment.