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
9e8b550e
Commit
9e8b550e
authored
Mar 15, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://gkernel.bkbits.net/libata-2.5
into ppc970.osdl.org:/home/torvalds/v2.5/linux
parents
e89de275
4586da2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
drivers/scsi/libata-core.c
drivers/scsi/libata-core.c
+6
-0
include/linux/libata.h
include/linux/libata.h
+2
-3
No files found.
drivers/scsi/libata-core.c
View file @
9e8b550e
...
@@ -49,7 +49,9 @@ static unsigned int ata_busy_sleep (struct ata_port *ap,
...
@@ -49,7 +49,9 @@ static unsigned int ata_busy_sleep (struct ata_port *ap,
unsigned
long
tmout_pat
,
unsigned
long
tmout_pat
,
unsigned
long
tmout
);
unsigned
long
tmout
);
static
void
__ata_dev_select
(
struct
ata_port
*
ap
,
unsigned
int
device
);
static
void
__ata_dev_select
(
struct
ata_port
*
ap
,
unsigned
int
device
);
#if 0 /* to be used eventually */
static void ata_qc_push (struct ata_queued_cmd *qc, unsigned int append);
static void ata_qc_push (struct ata_queued_cmd *qc, unsigned int append);
#endif
static
void
ata_dma_complete
(
struct
ata_port
*
ap
,
u8
host_stat
,
static
void
ata_dma_complete
(
struct
ata_port
*
ap
,
u8
host_stat
,
unsigned
int
done_late
);
unsigned
int
done_late
);
static
void
ata_host_set_pio
(
struct
ata_port
*
ap
);
static
void
ata_host_set_pio
(
struct
ata_port
*
ap
);
...
@@ -1971,6 +1973,7 @@ static void ata_pio_sector(struct ata_port *ap)
...
@@ -1971,6 +1973,7 @@ static void ata_pio_sector(struct ata_port *ap)
kunmap
(
sg
[
qc
->
cursg
].
page
);
kunmap
(
sg
[
qc
->
cursg
].
page
);
}
}
#if 0 /* to be used eventually */
/**
/**
* ata_eng_schedule - run an iteration of the pio/dma/whatever engine
* ata_eng_schedule - run an iteration of the pio/dma/whatever engine
* @ap: port on which activity will occur
* @ap: port on which activity will occur
...
@@ -1983,6 +1986,7 @@ static void ata_eng_schedule (struct ata_port *ap, struct ata_engine *eng)
...
@@ -1983,6 +1986,7 @@ static void ata_eng_schedule (struct ata_port *ap, struct ata_engine *eng)
{
{
/* FIXME */
/* FIXME */
}
}
#endif
/**
/**
* ata_eng_timeout - Handle timeout of queued command
* ata_eng_timeout - Handle timeout of queued command
...
@@ -2172,6 +2176,7 @@ void ata_qc_complete(struct ata_queued_cmd *qc, u8 drv_stat, unsigned int done_l
...
@@ -2172,6 +2176,7 @@ void ata_qc_complete(struct ata_queued_cmd *qc, u8 drv_stat, unsigned int done_l
clear_bit
(
tag
,
&
ap
->
qactive
);
clear_bit
(
tag
,
&
ap
->
qactive
);
}
}
#if 0 /* to be used eventually */
/**
/**
* ata_qc_push -
* ata_qc_push -
* @qc:
* @qc:
...
@@ -2193,6 +2198,7 @@ static void ata_qc_push (struct ata_queued_cmd *qc, unsigned int append)
...
@@ -2193,6 +2198,7 @@ static void ata_qc_push (struct ata_queued_cmd *qc, unsigned int append)
if (!test_and_set_bit(ATA_EFLG_ACTIVE, &eng->flags))
if (!test_and_set_bit(ATA_EFLG_ACTIVE, &eng->flags))
ata_eng_schedule(ap, eng);
ata_eng_schedule(ap, eng);
}
}
#endif
/**
/**
* ata_qc_issue -
* ata_qc_issue -
...
...
include/linux/libata.h
View file @
9e8b550e
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
#include <asm/io.h>
#include <asm/io.h>
#include <linux/ata.h>
#include <linux/ata.h>
/*
/*
* compile-time options
* compile-time options
*/
*/
...
@@ -82,7 +81,7 @@ enum {
...
@@ -82,7 +81,7 @@ enum {
ATA_SHT_EMULATED
=
1
,
ATA_SHT_EMULATED
=
1
,
ATA_SHT_CMD_PER_LUN
=
1
,
ATA_SHT_CMD_PER_LUN
=
1
,
ATA_SHT_THIS_ID
=
-
1
,
ATA_SHT_THIS_ID
=
-
1
,
ATA_SHT_USE_CLUSTERING
=
1
,
ATA_SHT_USE_CLUSTERING
=
0
,
/* struct ata_device stuff */
/* struct ata_device stuff */
ATA_DFLAG_LBA48
=
(
1
<<
0
),
/* device supports LBA48 */
ATA_DFLAG_LBA48
=
(
1
<<
0
),
/* device supports LBA48 */
...
@@ -251,7 +250,7 @@ struct ata_queued_cmd {
...
@@ -251,7 +250,7 @@ struct ata_queued_cmd {
struct
ata_port
*
ap
;
struct
ata_port
*
ap
;
struct
ata_device
*
dev
;
struct
ata_device
*
dev
;
struct
scsi_cmnd
*
scsicmd
;
struct
scsi_cmnd
*
scsicmd
;
void
(
*
scsidone
)(
struct
scsi_cmnd
*
);
void
(
*
scsidone
)(
struct
scsi_cmnd
*
);
struct
list_head
node
;
struct
list_head
node
;
...
...
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