Commit 447cb094 authored by Linus Torvalds's avatar Linus Torvalds

Merge bk://bart.bkbits.net/ide-2.6

into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents 81d8a341 2604fc1a
...@@ -197,6 +197,11 @@ static void icside_maskproc(ide_drive_t *drive, int mask) ...@@ -197,6 +197,11 @@ static void icside_maskproc(ide_drive_t *drive, int mask)
} }
#ifdef CONFIG_BLK_DEV_IDEDMA_ICS #ifdef CONFIG_BLK_DEV_IDEDMA_ICS
#ifndef CONFIG_IDEDMA_ICS_AUTO
#warning CONFIG_IDEDMA_ICS_AUTO=n support is obsolete, and will be removed soon.
#endif
/* /*
* SG-DMA support. * SG-DMA support.
* *
......
...@@ -543,8 +543,6 @@ ide_startstop_t ide_error (ide_drive_t *drive, const char *msg, u8 stat) ...@@ -543,8 +543,6 @@ ide_startstop_t ide_error (ide_drive_t *drive, const char *msg, u8 stat)
return ide_stopped; return ide_stopped;
} }
EXPORT_SYMBOL(ide_error);
/** /**
* ide_abort - abort pending IDE operatins * ide_abort - abort pending IDE operatins
* @drive: drive the error occurred on * @drive: drive the error occurred on
...@@ -585,8 +583,6 @@ ide_startstop_t ide_abort(ide_drive_t *drive, const char *msg) ...@@ -585,8 +583,6 @@ ide_startstop_t ide_abort(ide_drive_t *drive, const char *msg)
return ide_stopped; return ide_stopped;
} }
EXPORT_SYMBOL(ide_abort);
/** /**
* ide_cmd - issue a simple drive command * ide_cmd - issue a simple drive command
* @drive: drive the command is for * @drive: drive the command is for
...@@ -598,7 +594,8 @@ EXPORT_SYMBOL(ide_abort); ...@@ -598,7 +594,8 @@ EXPORT_SYMBOL(ide_abort);
* The drive must be selected beforehand. * The drive must be selected beforehand.
*/ */
void ide_cmd (ide_drive_t *drive, u8 cmd, u8 nsect, ide_handler_t *handler) static void ide_cmd (ide_drive_t *drive, u8 cmd, u8 nsect,
ide_handler_t *handler)
{ {
ide_hwif_t *hwif = HWIF(drive); ide_hwif_t *hwif = HWIF(drive);
if (IDE_CONTROL_REG) if (IDE_CONTROL_REG)
...@@ -608,8 +605,6 @@ void ide_cmd (ide_drive_t *drive, u8 cmd, u8 nsect, ide_handler_t *handler) ...@@ -608,8 +605,6 @@ void ide_cmd (ide_drive_t *drive, u8 cmd, u8 nsect, ide_handler_t *handler)
ide_execute_command(drive, cmd, handler, WAIT_CMD, NULL); ide_execute_command(drive, cmd, handler, WAIT_CMD, NULL);
} }
EXPORT_SYMBOL(ide_cmd);
/** /**
* drive_cmd_intr - drive command completion interrupt * drive_cmd_intr - drive command completion interrupt
* @drive: drive the completion interrupt occurred on * @drive: drive the completion interrupt occurred on
...@@ -620,7 +615,7 @@ EXPORT_SYMBOL(ide_cmd); ...@@ -620,7 +615,7 @@ EXPORT_SYMBOL(ide_cmd);
* the request * the request
*/ */
ide_startstop_t drive_cmd_intr (ide_drive_t *drive) static ide_startstop_t drive_cmd_intr (ide_drive_t *drive)
{ {
struct request *rq = HWGROUP(drive)->rq; struct request *rq = HWGROUP(drive)->rq;
ide_hwif_t *hwif = HWIF(drive); ide_hwif_t *hwif = HWIF(drive);
...@@ -645,8 +640,6 @@ ide_startstop_t drive_cmd_intr (ide_drive_t *drive) ...@@ -645,8 +640,6 @@ ide_startstop_t drive_cmd_intr (ide_drive_t *drive)
return ide_stopped; return ide_stopped;
} }
EXPORT_SYMBOL(drive_cmd_intr);
/** /**
* do_special - issue some special commands * do_special - issue some special commands
* @drive: drive the command is for * @drive: drive the command is for
...@@ -656,7 +649,7 @@ EXPORT_SYMBOL(drive_cmd_intr); ...@@ -656,7 +649,7 @@ EXPORT_SYMBOL(drive_cmd_intr);
* back. * back.
*/ */
ide_startstop_t do_special (ide_drive_t *drive) static ide_startstop_t do_special (ide_drive_t *drive)
{ {
special_t *s = &drive->special; special_t *s = &drive->special;
...@@ -673,8 +666,6 @@ ide_startstop_t do_special (ide_drive_t *drive) ...@@ -673,8 +666,6 @@ ide_startstop_t do_special (ide_drive_t *drive)
return DRIVER(drive)->special(drive); return DRIVER(drive)->special(drive);
} }
EXPORT_SYMBOL(do_special);
void ide_map_sg(ide_drive_t *drive, struct request *rq) void ide_map_sg(ide_drive_t *drive, struct request *rq)
{ {
ide_hwif_t *hwif = drive->hwif; ide_hwif_t *hwif = drive->hwif;
...@@ -715,7 +706,8 @@ EXPORT_SYMBOL_GPL(ide_init_sg_cmd); ...@@ -715,7 +706,8 @@ EXPORT_SYMBOL_GPL(ide_init_sg_cmd);
* all commands to finish. Don't do this as that is due to change * all commands to finish. Don't do this as that is due to change
*/ */
ide_startstop_t execute_drive_cmd (ide_drive_t *drive, struct request *rq) static ide_startstop_t execute_drive_cmd (ide_drive_t *drive,
struct request *rq)
{ {
ide_hwif_t *hwif = HWIF(drive); ide_hwif_t *hwif = HWIF(drive);
if (rq->flags & REQ_DRIVE_TASKFILE) { if (rq->flags & REQ_DRIVE_TASKFILE) {
...@@ -805,8 +797,6 @@ ide_startstop_t execute_drive_cmd (ide_drive_t *drive, struct request *rq) ...@@ -805,8 +797,6 @@ ide_startstop_t execute_drive_cmd (ide_drive_t *drive, struct request *rq)
return ide_stopped; return ide_stopped;
} }
EXPORT_SYMBOL(execute_drive_cmd);
/** /**
* start_request - start of I/O and command issuing for IDE * start_request - start of I/O and command issuing for IDE
* *
...@@ -818,7 +808,7 @@ EXPORT_SYMBOL(execute_drive_cmd); ...@@ -818,7 +808,7 @@ EXPORT_SYMBOL(execute_drive_cmd);
* FIXME: this function needs a rename * FIXME: this function needs a rename
*/ */
ide_startstop_t start_request (ide_drive_t *drive, struct request *rq) static ide_startstop_t start_request (ide_drive_t *drive, struct request *rq)
{ {
ide_startstop_t startstop; ide_startstop_t startstop;
sector_t block; sector_t block;
...@@ -909,8 +899,6 @@ ide_startstop_t start_request (ide_drive_t *drive, struct request *rq) ...@@ -909,8 +899,6 @@ ide_startstop_t start_request (ide_drive_t *drive, struct request *rq)
return ide_stopped; return ide_stopped;
} }
EXPORT_SYMBOL(start_request);
/** /**
* ide_stall_queue - pause an IDE device * ide_stall_queue - pause an IDE device
* @drive: drive to stall * @drive: drive to stall
...@@ -1033,10 +1021,7 @@ static inline ide_drive_t *choose_drive (ide_hwgroup_t *hwgroup) ...@@ -1033,10 +1021,7 @@ static inline ide_drive_t *choose_drive (ide_hwgroup_t *hwgroup)
* the driver. This makes the driver much more friendlier to shared IRQs * the driver. This makes the driver much more friendlier to shared IRQs
* than previous designs, while remaining 100% (?) SMP safe and capable. * than previous designs, while remaining 100% (?) SMP safe and capable.
*/ */
/* --BenH: made non-static as ide-pmac.c uses it to kick the hwgroup back static void ide_do_request (ide_hwgroup_t *hwgroup, int masked_irq)
* into life on wakeup from machine sleep.
*/
void ide_do_request (ide_hwgroup_t *hwgroup, int masked_irq)
{ {
ide_drive_t *drive; ide_drive_t *drive;
ide_hwif_t *hwif; ide_hwif_t *hwif;
...@@ -1168,8 +1153,6 @@ void ide_do_request (ide_hwgroup_t *hwgroup, int masked_irq) ...@@ -1168,8 +1153,6 @@ void ide_do_request (ide_hwgroup_t *hwgroup, int masked_irq)
} }
} }
EXPORT_SYMBOL(ide_do_request);
/* /*
* Passes the stuff to ide_do_request * Passes the stuff to ide_do_request
*/ */
...@@ -1334,8 +1317,6 @@ void ide_timer_expiry (unsigned long data) ...@@ -1334,8 +1317,6 @@ void ide_timer_expiry (unsigned long data)
spin_unlock_irqrestore(&ide_lock, flags); spin_unlock_irqrestore(&ide_lock, flags);
} }
EXPORT_SYMBOL(ide_timer_expiry);
/** /**
* unexpected_intr - handle an unexpected IDE interrupt * unexpected_intr - handle an unexpected IDE interrupt
* @irq: interrupt line * @irq: interrupt line
...@@ -1533,8 +1514,6 @@ irqreturn_t ide_intr (int irq, void *dev_id, struct pt_regs *regs) ...@@ -1533,8 +1514,6 @@ irqreturn_t ide_intr (int irq, void *dev_id, struct pt_regs *regs)
return IRQ_HANDLED; return IRQ_HANDLED;
} }
EXPORT_SYMBOL(ide_intr);
/** /**
* ide_init_drive_cmd - initialize a drive command request * ide_init_drive_cmd - initialize a drive command request
* @rq: request object * @rq: request object
......
...@@ -673,8 +673,6 @@ int ide_ata66_check (ide_drive_t *drive, ide_task_t *args) ...@@ -673,8 +673,6 @@ int ide_ata66_check (ide_drive_t *drive, ide_task_t *args)
return 0; return 0;
} }
EXPORT_SYMBOL(ide_ata66_check);
/* /*
* Backside of HDIO_DRIVE_CMD call of SETFEATURES_XFER. * Backside of HDIO_DRIVE_CMD call of SETFEATURES_XFER.
* 1 : Safe to update drive->id DMA registers. * 1 : Safe to update drive->id DMA registers.
...@@ -693,9 +691,8 @@ int set_transfer (ide_drive_t *drive, ide_task_t *args) ...@@ -693,9 +691,8 @@ int set_transfer (ide_drive_t *drive, ide_task_t *args)
return 0; return 0;
} }
EXPORT_SYMBOL(set_transfer); #ifdef CONFIG_BLK_DEV_IDEDMA
static u8 ide_auto_reduce_xfer (ide_drive_t *drive)
u8 ide_auto_reduce_xfer (ide_drive_t *drive)
{ {
if (!drive->crc_count) if (!drive->crc_count)
return drive->current_speed; return drive->current_speed;
...@@ -719,8 +716,7 @@ u8 ide_auto_reduce_xfer (ide_drive_t *drive) ...@@ -719,8 +716,7 @@ u8 ide_auto_reduce_xfer (ide_drive_t *drive)
default: return XFER_PIO_4; default: return XFER_PIO_4;
} }
} }
#endif /* CONFIG_BLK_DEV_IDEDMA */
EXPORT_SYMBOL(ide_auto_reduce_xfer);
/* /*
* Update the * Update the
...@@ -795,8 +791,6 @@ int ide_driveid_update (ide_drive_t *drive) ...@@ -795,8 +791,6 @@ int ide_driveid_update (ide_drive_t *drive)
#endif #endif
} }
EXPORT_SYMBOL(ide_driveid_update);
/* /*
* Similar to ide_wait_stat(), except it never calls ide_error internally. * Similar to ide_wait_stat(), except it never calls ide_error internally.
* This is a kludge to handle the new ide_config_drive_speed() function, * This is a kludge to handle the new ide_config_drive_speed() function,
...@@ -936,7 +930,7 @@ EXPORT_SYMBOL(ide_config_drive_speed); ...@@ -936,7 +930,7 @@ EXPORT_SYMBOL(ide_config_drive_speed);
* *
* See also ide_execute_command * See also ide_execute_command
*/ */
void __ide_set_handler (ide_drive_t *drive, ide_handler_t *handler, static void __ide_set_handler (ide_drive_t *drive, ide_handler_t *handler,
unsigned int timeout, ide_expiry_t *expiry) unsigned int timeout, ide_expiry_t *expiry)
{ {
ide_hwgroup_t *hwgroup = HWGROUP(drive); ide_hwgroup_t *hwgroup = HWGROUP(drive);
...@@ -952,8 +946,6 @@ void __ide_set_handler (ide_drive_t *drive, ide_handler_t *handler, ...@@ -952,8 +946,6 @@ void __ide_set_handler (ide_drive_t *drive, ide_handler_t *handler,
add_timer(&hwgroup->timer); add_timer(&hwgroup->timer);
} }
EXPORT_SYMBOL(__ide_set_handler);
void ide_set_handler (ide_drive_t *drive, ide_handler_t *handler, void ide_set_handler (ide_drive_t *drive, ide_handler_t *handler,
unsigned int timeout, ide_expiry_t *expiry) unsigned int timeout, ide_expiry_t *expiry)
{ {
......
...@@ -421,8 +421,6 @@ void ide_toggle_bounce(ide_drive_t *drive, int on) ...@@ -421,8 +421,6 @@ void ide_toggle_bounce(ide_drive_t *drive, int on)
blk_queue_bounce_limit(drive->queue, addr); blk_queue_bounce_limit(drive->queue, addr);
} }
EXPORT_SYMBOL(ide_toggle_bounce);
/** /**
* ide_set_xfer_rate - set transfer rate * ide_set_xfer_rate - set transfer rate
* @drive: drive to set * @drive: drive to set
......
...@@ -132,6 +132,9 @@ static int proc_ide_read_settings ...@@ -132,6 +132,9 @@ static int proc_ide_read_settings
char *out = page; char *out = page;
int len, rc, mul_factor, div_factor; int len, rc, mul_factor, div_factor;
printk(KERN_WARNING "Warning: /proc/ide/hd?/settings interface is "
"obsolete, and will be removed soon!\n");
down(&ide_setting_sem); down(&ide_setting_sem);
out += sprintf(out, "name\t\t\tvalue\t\tmin\t\tmax\t\tmode\n"); out += sprintf(out, "name\t\t\tvalue\t\tmin\t\tmax\t\tmode\n");
out += sprintf(out, "----\t\t\t-----\t\t---\t\t---\t\t----\n"); out += sprintf(out, "----\t\t\t-----\t\t---\t\t---\t\t----\n");
...@@ -168,6 +171,9 @@ static int proc_ide_write_settings(struct file *file, const char __user *buffer, ...@@ -168,6 +171,9 @@ static int proc_ide_write_settings(struct file *file, const char __user *buffer,
ide_settings_t *setting; ide_settings_t *setting;
char *buf, *s; char *buf, *s;
printk(KERN_WARNING "Warning: /proc/ide/hd?/settings interface is "
"obsolete, and will be removed soon!\n");
if (!capable(CAP_SYS_ADMIN)) if (!capable(CAP_SYS_ADMIN))
return -EACCES; return -EACCES;
......
...@@ -419,7 +419,7 @@ EXPORT_SYMBOL(task_in_intr); ...@@ -419,7 +419,7 @@ EXPORT_SYMBOL(task_in_intr);
/* /*
* Handler for command with PIO data-out phase (Write/Write Multiple). * Handler for command with PIO data-out phase (Write/Write Multiple).
*/ */
ide_startstop_t task_out_intr (ide_drive_t *drive) static ide_startstop_t task_out_intr (ide_drive_t *drive)
{ {
ide_hwif_t *hwif = drive->hwif; ide_hwif_t *hwif = drive->hwif;
struct request *rq = HWGROUP(drive)->rq; struct request *rq = HWGROUP(drive)->rq;
...@@ -444,8 +444,6 @@ ide_startstop_t task_out_intr (ide_drive_t *drive) ...@@ -444,8 +444,6 @@ ide_startstop_t task_out_intr (ide_drive_t *drive)
return ide_started; return ide_started;
} }
EXPORT_SYMBOL(task_out_intr);
ide_startstop_t pre_task_out_intr (ide_drive_t *drive, struct request *rq) ide_startstop_t pre_task_out_intr (ide_drive_t *drive, struct request *rq)
{ {
ide_startstop_t startstop; ide_startstop_t startstop;
......
...@@ -1882,10 +1882,10 @@ int __init ide_setup (char *s) ...@@ -1882,10 +1882,10 @@ int __init ide_setup (char *s)
goto do_serialize; goto do_serialize;
case -6: /* "autotune" */ case -6: /* "autotune" */
drive->autotune = IDE_TUNE_AUTO; drive->autotune = IDE_TUNE_AUTO;
goto done; goto obsolete_option;
case -7: /* "noautotune" */ case -7: /* "noautotune" */
drive->autotune = IDE_TUNE_NOAUTO; drive->autotune = IDE_TUNE_NOAUTO;
goto done; goto obsolete_option;
case -9: /* "swapdata" */ case -9: /* "swapdata" */
case -10: /* "bswap" */ case -10: /* "bswap" */
drive->bswap = 1; drive->bswap = 1;
...@@ -2017,30 +2017,30 @@ int __init ide_setup (char *s) ...@@ -2017,30 +2017,30 @@ int __init ide_setup (char *s)
case -7: /* ata66 */ case -7: /* ata66 */
#ifdef CONFIG_BLK_DEV_IDEPCI #ifdef CONFIG_BLK_DEV_IDEPCI
hwif->udma_four = 1; hwif->udma_four = 1;
goto done; goto obsolete_option;
#else #else
goto bad_hwif; goto bad_hwif;
#endif #endif
case -6: /* dma */ case -6: /* dma */
hwif->autodma = 1; hwif->autodma = 1;
goto done; goto obsolete_option;
case -5: /* "reset" */ case -5: /* "reset" */
hwif->reset = 1; hwif->reset = 1;
goto done; goto obsolete_option;
case -4: /* "noautotune" */ case -4: /* "noautotune" */
hwif->drives[0].autotune = IDE_TUNE_NOAUTO; hwif->drives[0].autotune = IDE_TUNE_NOAUTO;
hwif->drives[1].autotune = IDE_TUNE_NOAUTO; hwif->drives[1].autotune = IDE_TUNE_NOAUTO;
goto done; goto obsolete_option;
case -3: /* "autotune" */ case -3: /* "autotune" */
hwif->drives[0].autotune = IDE_TUNE_AUTO; hwif->drives[0].autotune = IDE_TUNE_AUTO;
hwif->drives[1].autotune = IDE_TUNE_AUTO; hwif->drives[1].autotune = IDE_TUNE_AUTO;
goto done; goto obsolete_option;
case -2: /* "serialize" */ case -2: /* "serialize" */
do_serialize: do_serialize:
hwif->mate = &ide_hwifs[hw^1]; hwif->mate = &ide_hwifs[hw^1];
hwif->mate->mate = hwif; hwif->mate->mate = hwif;
hwif->serialized = hwif->mate->serialized = 1; hwif->serialized = hwif->mate->serialized = 1;
goto done; goto obsolete_option;
case -1: /* "noprobe" */ case -1: /* "noprobe" */
hwif->noprobe = 1; hwif->noprobe = 1;
...@@ -2057,7 +2057,7 @@ int __init ide_setup (char *s) ...@@ -2057,7 +2057,7 @@ int __init ide_setup (char *s)
hwif->irq = vals[2]; hwif->irq = vals[2];
hwif->noprobe = 0; hwif->noprobe = 0;
hwif->chipset = ide_forced; hwif->chipset = ide_forced;
goto done; goto obsolete_option;
case 0: goto bad_option; case 0: goto bad_option;
default: default:
...@@ -2068,6 +2068,9 @@ int __init ide_setup (char *s) ...@@ -2068,6 +2068,9 @@ int __init ide_setup (char *s)
bad_option: bad_option:
printk(" -- BAD OPTION\n"); printk(" -- BAD OPTION\n");
return 1; return 1;
obsolete_option:
printk(" -- OBSOLETE OPTION, WILL BE REMOVED SOON!\n");
return 1;
bad_hwif: bad_hwif:
printk("-- NOT SUPPORTED ON ide%d", hw); printk("-- NOT SUPPORTED ON ide%d", hw);
done: done:
......
...@@ -52,8 +52,6 @@ ...@@ -52,8 +52,6 @@
#include "ide-timing.h" #include "ide-timing.h"
extern void ide_do_request(ide_hwgroup_t *hwgroup, int masked_irq);
#define IDE_PMAC_DEBUG #define IDE_PMAC_DEBUG
#define DMA_WAIT_TIMEOUT 50 #define DMA_WAIT_TIMEOUT 50
......
...@@ -494,6 +494,11 @@ static void ide_hwif_setup_dma(struct pci_dev *dev, ide_pci_device_t *d, ide_hwi ...@@ -494,6 +494,11 @@ static void ide_hwif_setup_dma(struct pci_dev *dev, ide_pci_device_t *d, ide_hwi
} }
} }
} }
#ifndef CONFIG_IDEDMA_PCI_AUTO
#warning CONFIG_IDEDMA_PCI_AUTO=n support is obsolete, and will be removed soon.
#endif
#endif /* CONFIG_BLK_DEV_IDEDMA_PCI*/ #endif /* CONFIG_BLK_DEV_IDEDMA_PCI*/
/** /**
......
...@@ -1194,14 +1194,6 @@ ide_startstop_t ide_error (ide_drive_t *drive, const char *msg, byte stat); ...@@ -1194,14 +1194,6 @@ ide_startstop_t ide_error (ide_drive_t *drive, const char *msg, byte stat);
*/ */
extern ide_startstop_t ide_abort(ide_drive_t *, const char *); extern ide_startstop_t ide_abort(ide_drive_t *, const char *);
/*
* Issue a simple drive command
* The drive must be selected beforehand.
*
* (drive, command, nsector, handler)
*/
extern void ide_cmd(ide_drive_t *, u8, u8, ide_handler_t *);
extern void ide_fix_driveid(struct hd_driveid *); extern void ide_fix_driveid(struct hd_driveid *);
/* /*
* ide_fixstring() cleans up and (optionally) byte-swaps a text string, * ide_fixstring() cleans up and (optionally) byte-swaps a text string,
...@@ -1366,7 +1358,6 @@ extern ide_startstop_t recal_intr(ide_drive_t *); ...@@ -1366,7 +1358,6 @@ extern ide_startstop_t recal_intr(ide_drive_t *);
extern ide_startstop_t task_no_data_intr(ide_drive_t *); extern ide_startstop_t task_no_data_intr(ide_drive_t *);
extern ide_startstop_t task_in_intr(ide_drive_t *); extern ide_startstop_t task_in_intr(ide_drive_t *);
extern ide_startstop_t pre_task_out_intr(ide_drive_t *, struct request *); extern ide_startstop_t pre_task_out_intr(ide_drive_t *, struct request *);
extern ide_startstop_t task_out_intr(ide_drive_t *);
extern int ide_raw_taskfile(ide_drive_t *, ide_task_t *, u8 *); extern int ide_raw_taskfile(ide_drive_t *, ide_task_t *, u8 *);
...@@ -1376,7 +1367,6 @@ int ide_task_ioctl(ide_drive_t *, unsigned int, unsigned long); ...@@ -1376,7 +1367,6 @@ int ide_task_ioctl(ide_drive_t *, unsigned int, unsigned long);
extern int system_bus_clock(void); extern int system_bus_clock(void);
extern u8 ide_auto_reduce_xfer(ide_drive_t *);
extern int ide_driveid_update(ide_drive_t *); extern int ide_driveid_update(ide_drive_t *);
extern int ide_ata66_check(ide_drive_t *, ide_task_t *); extern int ide_ata66_check(ide_drive_t *, ide_task_t *);
extern int ide_config_drive_speed(ide_drive_t *, u8); extern int ide_config_drive_speed(ide_drive_t *, u8);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment