Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
447cb094
Commit
447cb094
authored
Oct 31, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://bart.bkbits.net/ide-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
81d8a341
2604fc1a
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
41 additions
and
67 deletions
+41
-67
drivers/ide/arm/icside.c
drivers/ide/arm/icside.c
+5
-0
drivers/ide/ide-io.c
drivers/ide/ide-io.c
+8
-29
drivers/ide/ide-iops.c
drivers/ide/ide-iops.c
+4
-12
drivers/ide/ide-lib.c
drivers/ide/ide-lib.c
+0
-2
drivers/ide/ide-proc.c
drivers/ide/ide-proc.c
+6
-0
drivers/ide/ide-taskfile.c
drivers/ide/ide-taskfile.c
+1
-3
drivers/ide/ide.c
drivers/ide/ide.c
+12
-9
drivers/ide/ppc/pmac.c
drivers/ide/ppc/pmac.c
+0
-2
drivers/ide/setup-pci.c
drivers/ide/setup-pci.c
+5
-0
include/linux/ide.h
include/linux/ide.h
+0
-10
No files found.
drivers/ide/arm/icside.c
View file @
447cb094
...
...
@@ -197,6 +197,11 @@ static void icside_maskproc(ide_drive_t *drive, int mask)
}
#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.
*
...
...
drivers/ide/ide-io.c
View file @
447cb094
...
...
@@ -543,8 +543,6 @@ ide_startstop_t ide_error (ide_drive_t *drive, const char *msg, u8 stat)
return
ide_stopped
;
}
EXPORT_SYMBOL
(
ide_error
);
/**
* ide_abort - abort pending IDE operatins
* @drive: drive the error occurred on
...
...
@@ -585,8 +583,6 @@ ide_startstop_t ide_abort(ide_drive_t *drive, const char *msg)
return
ide_stopped
;
}
EXPORT_SYMBOL
(
ide_abort
);
/**
* ide_cmd - issue a simple drive command
* @drive: drive the command is for
...
...
@@ -598,7 +594,8 @@ EXPORT_SYMBOL(ide_abort);
* 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
);
if
(
IDE_CONTROL_REG
)
...
...
@@ -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
);
}
EXPORT_SYMBOL
(
ide_cmd
);
/**
* drive_cmd_intr - drive command completion interrupt
* @drive: drive the completion interrupt occurred on
...
...
@@ -620,7 +615,7 @@ EXPORT_SYMBOL(ide_cmd);
* 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
;
ide_hwif_t
*
hwif
=
HWIF
(
drive
);
...
...
@@ -645,8 +640,6 @@ ide_startstop_t drive_cmd_intr (ide_drive_t *drive)
return
ide_stopped
;
}
EXPORT_SYMBOL
(
drive_cmd_intr
);
/**
* do_special - issue some special commands
* @drive: drive the command is for
...
...
@@ -656,7 +649,7 @@ EXPORT_SYMBOL(drive_cmd_intr);
* 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
;
...
...
@@ -673,8 +666,6 @@ ide_startstop_t do_special (ide_drive_t *drive)
return
DRIVER
(
drive
)
->
special
(
drive
);
}
EXPORT_SYMBOL
(
do_special
);
void
ide_map_sg
(
ide_drive_t
*
drive
,
struct
request
*
rq
)
{
ide_hwif_t
*
hwif
=
drive
->
hwif
;
...
...
@@ -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
*/
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
);
if
(
rq
->
flags
&
REQ_DRIVE_TASKFILE
)
{
...
...
@@ -805,8 +797,6 @@ ide_startstop_t execute_drive_cmd (ide_drive_t *drive, struct request *rq)
return
ide_stopped
;
}
EXPORT_SYMBOL
(
execute_drive_cmd
);
/**
* start_request - start of I/O and command issuing for IDE
*
...
...
@@ -818,7 +808,7 @@ EXPORT_SYMBOL(execute_drive_cmd);
* 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
;
sector_t
block
;
...
...
@@ -909,8 +899,6 @@ ide_startstop_t start_request (ide_drive_t *drive, struct request *rq)
return
ide_stopped
;
}
EXPORT_SYMBOL
(
start_request
);
/**
* ide_stall_queue - pause an IDE device
* @drive: drive to stall
...
...
@@ -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
* 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
* into life on wakeup from machine sleep.
*/
void
ide_do_request
(
ide_hwgroup_t
*
hwgroup
,
int
masked_irq
)
static
void
ide_do_request
(
ide_hwgroup_t
*
hwgroup
,
int
masked_irq
)
{
ide_drive_t
*
drive
;
ide_hwif_t
*
hwif
;
...
...
@@ -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
*/
...
...
@@ -1334,8 +1317,6 @@ void ide_timer_expiry (unsigned long data)
spin_unlock_irqrestore
(
&
ide_lock
,
flags
);
}
EXPORT_SYMBOL
(
ide_timer_expiry
);
/**
* unexpected_intr - handle an unexpected IDE interrupt
* @irq: interrupt line
...
...
@@ -1533,8 +1514,6 @@ irqreturn_t ide_intr (int irq, void *dev_id, struct pt_regs *regs)
return
IRQ_HANDLED
;
}
EXPORT_SYMBOL
(
ide_intr
);
/**
* ide_init_drive_cmd - initialize a drive command request
* @rq: request object
...
...
drivers/ide/ide-iops.c
View file @
447cb094
...
...
@@ -673,8 +673,6 @@ int ide_ata66_check (ide_drive_t *drive, ide_task_t *args)
return
0
;
}
EXPORT_SYMBOL
(
ide_ata66_check
);
/*
* Backside of HDIO_DRIVE_CMD call of SETFEATURES_XFER.
* 1 : Safe to update drive->id DMA registers.
...
...
@@ -693,9 +691,8 @@ int set_transfer (ide_drive_t *drive, ide_task_t *args)
return
0
;
}
EXPORT_SYMBOL
(
set_transfer
);
u8
ide_auto_reduce_xfer
(
ide_drive_t
*
drive
)
#ifdef CONFIG_BLK_DEV_IDEDMA
static
u8
ide_auto_reduce_xfer
(
ide_drive_t
*
drive
)
{
if
(
!
drive
->
crc_count
)
return
drive
->
current_speed
;
...
...
@@ -719,8 +716,7 @@ u8 ide_auto_reduce_xfer (ide_drive_t *drive)
default:
return
XFER_PIO_4
;
}
}
EXPORT_SYMBOL
(
ide_auto_reduce_xfer
);
#endif
/* CONFIG_BLK_DEV_IDEDMA */
/*
* Update the
...
...
@@ -795,8 +791,6 @@ int ide_driveid_update (ide_drive_t *drive)
#endif
}
EXPORT_SYMBOL
(
ide_driveid_update
);
/*
* 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,
...
...
@@ -936,7 +930,7 @@ EXPORT_SYMBOL(ide_config_drive_speed);
*
* 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
)
{
ide_hwgroup_t
*
hwgroup
=
HWGROUP
(
drive
);
...
...
@@ -952,8 +946,6 @@ void __ide_set_handler (ide_drive_t *drive, ide_handler_t *handler,
add_timer
(
&
hwgroup
->
timer
);
}
EXPORT_SYMBOL
(
__ide_set_handler
);
void
ide_set_handler
(
ide_drive_t
*
drive
,
ide_handler_t
*
handler
,
unsigned
int
timeout
,
ide_expiry_t
*
expiry
)
{
...
...
drivers/ide/ide-lib.c
View file @
447cb094
...
...
@@ -421,8 +421,6 @@ void ide_toggle_bounce(ide_drive_t *drive, int on)
blk_queue_bounce_limit
(
drive
->
queue
,
addr
);
}
EXPORT_SYMBOL
(
ide_toggle_bounce
);
/**
* ide_set_xfer_rate - set transfer rate
* @drive: drive to set
...
...
drivers/ide/ide-proc.c
View file @
447cb094
...
...
@@ -132,6 +132,9 @@ static int proc_ide_read_settings
char
*
out
=
page
;
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
);
out
+=
sprintf
(
out
,
"name
\t\t\t
value
\t\t
min
\t\t
max
\t\t
mode
\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,
ide_settings_t
*
setting
;
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
))
return
-
EACCES
;
...
...
drivers/ide/ide-taskfile.c
View file @
447cb094
...
...
@@ -419,7 +419,7 @@ EXPORT_SYMBOL(task_in_intr);
/*
* 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
;
struct
request
*
rq
=
HWGROUP
(
drive
)
->
rq
;
...
...
@@ -444,8 +444,6 @@ ide_startstop_t task_out_intr (ide_drive_t *drive)
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
startstop
;
...
...
drivers/ide/ide.c
View file @
447cb094
...
...
@@ -1882,10 +1882,10 @@ int __init ide_setup (char *s)
goto
do_serialize
;
case
-
6
:
/* "autotune" */
drive
->
autotune
=
IDE_TUNE_AUTO
;
goto
done
;
goto
obsolete_option
;
case
-
7
:
/* "noautotune" */
drive
->
autotune
=
IDE_TUNE_NOAUTO
;
goto
done
;
goto
obsolete_option
;
case
-
9
:
/* "swapdata" */
case
-
10
:
/* "bswap" */
drive
->
bswap
=
1
;
...
...
@@ -2017,30 +2017,30 @@ int __init ide_setup (char *s)
case
-
7
:
/* ata66 */
#ifdef CONFIG_BLK_DEV_IDEPCI
hwif
->
udma_four
=
1
;
goto
done
;
goto
obsolete_option
;
#else
goto
bad_hwif
;
#endif
case
-
6
:
/* dma */
hwif
->
autodma
=
1
;
goto
done
;
goto
obsolete_option
;
case
-
5
:
/* "reset" */
hwif
->
reset
=
1
;
goto
done
;
goto
obsolete_option
;
case
-
4
:
/* "noautotune" */
hwif
->
drives
[
0
].
autotune
=
IDE_TUNE_NOAUTO
;
hwif
->
drives
[
1
].
autotune
=
IDE_TUNE_NOAUTO
;
goto
done
;
goto
obsolete_option
;
case
-
3
:
/* "autotune" */
hwif
->
drives
[
0
].
autotune
=
IDE_TUNE_AUTO
;
hwif
->
drives
[
1
].
autotune
=
IDE_TUNE_AUTO
;
goto
done
;
goto
obsolete_option
;
case
-
2
:
/* "serialize" */
do_serialize:
hwif
->
mate
=
&
ide_hwifs
[
hw
^
1
];
hwif
->
mate
->
mate
=
hwif
;
hwif
->
serialized
=
hwif
->
mate
->
serialized
=
1
;
goto
done
;
goto
obsolete_option
;
case
-
1
:
/* "noprobe" */
hwif
->
noprobe
=
1
;
...
...
@@ -2057,7 +2057,7 @@ int __init ide_setup (char *s)
hwif
->
irq
=
vals
[
2
];
hwif
->
noprobe
=
0
;
hwif
->
chipset
=
ide_forced
;
goto
done
;
goto
obsolete_option
;
case
0
:
goto
bad_option
;
default:
...
...
@@ -2068,6 +2068,9 @@ int __init ide_setup (char *s)
bad_option:
printk
(
" -- BAD OPTION
\n
"
);
return
1
;
obsolete_option:
printk
(
" -- OBSOLETE OPTION, WILL BE REMOVED SOON!
\n
"
);
return
1
;
bad_hwif:
printk
(
"-- NOT SUPPORTED ON ide%d"
,
hw
);
done:
...
...
drivers/ide/ppc/pmac.c
View file @
447cb094
...
...
@@ -52,8 +52,6 @@
#include "ide-timing.h"
extern
void
ide_do_request
(
ide_hwgroup_t
*
hwgroup
,
int
masked_irq
);
#define IDE_PMAC_DEBUG
#define DMA_WAIT_TIMEOUT 50
...
...
drivers/ide/setup-pci.c
View file @
447cb094
...
...
@@ -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*/
/**
...
...
include/linux/ide.h
View file @
447cb094
...
...
@@ -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
*
);
/*
* 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
*
);
/*
* ide_fixstring() cleans up and (optionally) byte-swaps a text string,
...
...
@@ -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_in_intr
(
ide_drive_t
*
);
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
*
);
...
...
@@ -1376,7 +1367,6 @@ int ide_task_ioctl(ide_drive_t *, unsigned int, unsigned long);
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_ata66_check
(
ide_drive_t
*
,
ide_task_t
*
);
extern
int
ide_config_drive_speed
(
ide_drive_t
*
,
u8
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment