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
Kirill Smelkov
linux
Commits
d532b805
Commit
d532b805
authored
Mar 21, 2003
by
Alan Cox
Committed by
Linus Torvalds
Mar 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] update ide-tape to match changes
parent
802bee33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
13 deletions
+6
-13
drivers/ide/ide-tape.c
drivers/ide/ide-tape.c
+6
-13
No files found.
drivers/ide/ide-tape.c
View file @
d532b805
...
@@ -422,7 +422,7 @@
...
@@ -422,7 +422,7 @@
* sharing a (fast) ATA-2 disk with any (slow) new ATAPI device.
* sharing a (fast) ATA-2 disk with any (slow) new ATAPI device.
*/
*/
#define IDETAPE_VERSION "1.17b"
#define IDETAPE_VERSION "1.17b
-ac1
"
#include <linux/config.h>
#include <linux/config.h>
#include <linux/module.h>
#include <linux/module.h>
...
@@ -2128,8 +2128,6 @@ static ide_startstop_t idetape_pc_intr (ide_drive_t *drive)
...
@@ -2128,8 +2128,6 @@ static ide_startstop_t idetape_pc_intr (ide_drive_t *drive)
if
(
temp
>
pc
->
buffer_size
)
{
if
(
temp
>
pc
->
buffer_size
)
{
printk
(
KERN_ERR
"ide-tape: The tape wants to send us more data than expected - discarding data
\n
"
);
printk
(
KERN_ERR
"ide-tape: The tape wants to send us more data than expected - discarding data
\n
"
);
idetape_discard_data
(
drive
,
bcount
.
all
);
idetape_discard_data
(
drive
,
bcount
.
all
);
if
(
HWGROUP
(
drive
)
->
handler
!=
NULL
)
/* paranoia check */
BUG
();
ide_set_handler
(
drive
,
&
idetape_pc_intr
,
IDETAPE_WAIT_CMD
,
NULL
);
ide_set_handler
(
drive
,
&
idetape_pc_intr
,
IDETAPE_WAIT_CMD
,
NULL
);
return
ide_started
;
return
ide_started
;
}
}
...
@@ -2156,8 +2154,6 @@ static ide_startstop_t idetape_pc_intr (ide_drive_t *drive)
...
@@ -2156,8 +2154,6 @@ static ide_startstop_t idetape_pc_intr (ide_drive_t *drive)
if
(
tape
->
debug_level
>=
2
)
if
(
tape
->
debug_level
>=
2
)
printk
(
KERN_INFO
"ide-tape: [cmd %x] transferred %d bytes on that interrupt
\n
"
,
pc
->
c
[
0
],
bcount
.
all
);
printk
(
KERN_INFO
"ide-tape: [cmd %x] transferred %d bytes on that interrupt
\n
"
,
pc
->
c
[
0
],
bcount
.
all
);
#endif
#endif
if
(
HWGROUP
(
drive
)
->
handler
!=
NULL
)
/* paranoia check */
BUG
();
ide_set_handler
(
drive
,
&
idetape_pc_intr
,
IDETAPE_WAIT_CMD
,
NULL
);
/* And set the interrupt handler again */
ide_set_handler
(
drive
,
&
idetape_pc_intr
,
IDETAPE_WAIT_CMD
,
NULL
);
/* And set the interrupt handler again */
return
ide_started
;
return
ide_started
;
}
}
...
@@ -2235,8 +2231,6 @@ static ide_startstop_t idetape_transfer_pc(ide_drive_t *drive)
...
@@ -2235,8 +2231,6 @@ static ide_startstop_t idetape_transfer_pc(ide_drive_t *drive)
return
ide_do_reset
(
drive
);
return
ide_do_reset
(
drive
);
}
}
tape
->
cmd_start_time
=
jiffies
;
tape
->
cmd_start_time
=
jiffies
;
if
(
HWGROUP
(
drive
)
->
handler
!=
NULL
)
/* paranoia check */
BUG
();
/* Set the interrupt routine */
/* Set the interrupt routine */
ide_set_handler
(
drive
,
&
idetape_pc_intr
,
IDETAPE_WAIT_CMD
,
NULL
);
ide_set_handler
(
drive
,
&
idetape_pc_intr
,
IDETAPE_WAIT_CMD
,
NULL
);
#ifdef CONFIG_BLK_DEV_IDEDMA
#ifdef CONFIG_BLK_DEV_IDEDMA
...
@@ -2325,8 +2319,6 @@ static ide_startstop_t idetape_issue_packet_command (ide_drive_t *drive, idetape
...
@@ -2325,8 +2319,6 @@ static ide_startstop_t idetape_issue_packet_command (ide_drive_t *drive, idetape
if
(
dma_ok
)
/* Will begin DMA later */
if
(
dma_ok
)
/* Will begin DMA later */
set_bit
(
PC_DMA_IN_PROGRESS
,
&
pc
->
flags
);
set_bit
(
PC_DMA_IN_PROGRESS
,
&
pc
->
flags
);
if
(
test_bit
(
IDETAPE_DRQ_INTERRUPT
,
&
tape
->
flags
))
{
if
(
test_bit
(
IDETAPE_DRQ_INTERRUPT
,
&
tape
->
flags
))
{
if
(
HWGROUP
(
drive
)
->
handler
!=
NULL
)
/* paranoia check */
BUG
();
ide_set_handler
(
drive
,
&
idetape_transfer_pc
,
IDETAPE_WAIT_CMD
,
NULL
);
ide_set_handler
(
drive
,
&
idetape_transfer_pc
,
IDETAPE_WAIT_CMD
,
NULL
);
OUT_BYTE
(
WIN_PACKETCMD
,
IDE_COMMAND_REG
);
OUT_BYTE
(
WIN_PACKETCMD
,
IDE_COMMAND_REG
);
return
ide_started
;
return
ide_started
;
...
@@ -5605,15 +5597,16 @@ static int idetape_chrdev_release (struct inode *inode, struct file *filp)
...
@@ -5605,15 +5597,16 @@ static int idetape_chrdev_release (struct inode *inode, struct file *filp)
*
*
* 0 If this tape driver is not currently supported by us.
* 0 If this tape driver is not currently supported by us.
*/
*/
static
int
idetape_identify_device
(
ide_drive_t
*
drive
,
struct
hd_driveid
*
id
)
static
int
idetape_identify_device
(
ide_drive_t
*
drive
)
{
{
struct
idetape_id_gcw
gcw
;
struct
idetape_id_gcw
gcw
;
struct
hd_driveid
*
id
=
drive
->
id
;
#if IDETAPE_DEBUG_INFO
#if IDETAPE_DEBUG_INFO
unsigned
short
mask
,
i
;
unsigned
short
mask
,
i
;
#endif
/* IDETAPE_DEBUG_INFO */
#endif
/* IDETAPE_DEBUG_INFO */
if
(
!
id
)
if
(
drive
->
id_read
==
0
)
return
0
;
return
1
;
*
((
unsigned
short
*
)
&
gcw
)
=
id
->
config
;
*
((
unsigned
short
*
)
&
gcw
)
=
id
->
config
;
...
@@ -6287,7 +6280,7 @@ static int idetape_attach (ide_drive_t *drive)
...
@@ -6287,7 +6280,7 @@ static int idetape_attach (ide_drive_t *drive)
goto
failed
;
goto
failed
;
if
(
drive
->
media
!=
ide_tape
)
if
(
drive
->
media
!=
ide_tape
)
goto
failed
;
goto
failed
;
if
(
!
idetape_identify_device
(
drive
,
drive
->
id
))
{
if
(
!
idetape_identify_device
(
drive
))
{
printk
(
KERN_ERR
"ide-tape: %s: not supported by this version of ide-tape
\n
"
,
drive
->
name
);
printk
(
KERN_ERR
"ide-tape: %s: not supported by this version of ide-tape
\n
"
,
drive
->
name
);
goto
failed
;
goto
failed
;
}
}
...
...
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