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
cc4e6724
Commit
cc4e6724
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 headers to match changes
parent
1379e500
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
9 deletions
+25
-9
include/linux/ide.h
include/linux/ide.h
+25
-9
No files found.
include/linux/ide.h
View file @
cc4e6724
...
@@ -726,6 +726,7 @@ typedef struct ide_drive_s {
...
@@ -726,6 +726,7 @@ typedef struct ide_drive_s {
unsigned
present
:
1
;
/* drive is physically present */
unsigned
present
:
1
;
/* drive is physically present */
unsigned
dead
:
1
;
/* device ejected hint */
unsigned
dead
:
1
;
/* device ejected hint */
unsigned
id_read
:
1
;
/* 1=id read from disk 0 = synthetic */
unsigned
noprobe
:
1
;
/* from: hdx=noprobe */
unsigned
noprobe
:
1
;
/* from: hdx=noprobe */
unsigned
removable
:
1
;
/* 1 if need to do check_media_change */
unsigned
removable
:
1
;
/* 1 if need to do check_media_change */
unsigned
is_flash
:
1
;
/* 1 if probed as flash */
unsigned
is_flash
:
1
;
/* 1 if probed as flash */
...
@@ -845,7 +846,7 @@ typedef struct ide_dma_ops_s {
...
@@ -845,7 +846,7 @@ typedef struct ide_dma_ops_s {
#define task_rq_offset(rq) \
#define task_rq_offset(rq) \
(((rq)->nr_sectors - (rq)->current_nr_sectors) * SECTOR_SIZE)
(((rq)->nr_sectors - (rq)->current_nr_sectors) * SECTOR_SIZE)
extern
inline
void
*
ide_map_buffer
(
struct
request
*
rq
,
unsigned
long
*
flags
)
static
inline
void
*
ide_map_buffer
(
struct
request
*
rq
,
unsigned
long
*
flags
)
{
{
/*
/*
* fs request
* fs request
...
@@ -859,7 +860,7 @@ extern inline void *ide_map_buffer(struct request *rq, unsigned long *flags)
...
@@ -859,7 +860,7 @@ extern inline void *ide_map_buffer(struct request *rq, unsigned long *flags)
return
rq
->
buffer
+
task_rq_offset
(
rq
);
return
rq
->
buffer
+
task_rq_offset
(
rq
);
}
}
extern
inline
void
ide_unmap_buffer
(
struct
request
*
rq
,
char
*
buffer
,
unsigned
long
*
flags
)
static
inline
void
ide_unmap_buffer
(
struct
request
*
rq
,
char
*
buffer
,
unsigned
long
*
flags
)
{
{
if
(
rq
->
bio
)
if
(
rq
->
bio
)
bio_kunmap_irq
(
buffer
,
flags
);
bio_kunmap_irq
(
buffer
,
flags
);
...
@@ -973,7 +974,7 @@ typedef struct hwif_s {
...
@@ -973,7 +974,7 @@ typedef struct hwif_s {
ide_startstop_t
(
*
ide_dma_queued_start
)(
ide_drive_t
*
drive
);
ide_startstop_t
(
*
ide_dma_queued_start
)(
ide_drive_t
*
drive
);
void
(
*
OUTB
)(
u8
addr
,
unsigned
long
port
);
void
(
*
OUTB
)(
u8
addr
,
unsigned
long
port
);
void
(
*
OUTBSYNC
)(
u8
addr
,
unsigned
long
port
);
void
(
*
OUTBSYNC
)(
ide_drive_t
*
drive
,
u8
addr
,
unsigned
long
port
);
void
(
*
OUTW
)(
u16
addr
,
unsigned
long
port
);
void
(
*
OUTW
)(
u16
addr
,
unsigned
long
port
);
void
(
*
OUTL
)(
u32
addr
,
unsigned
long
port
);
void
(
*
OUTL
)(
u32
addr
,
unsigned
long
port
);
void
(
*
OUTSW
)(
unsigned
long
port
,
void
*
addr
,
u32
count
);
void
(
*
OUTSW
)(
unsigned
long
port
,
void
*
addr
,
u32
count
);
...
@@ -1179,6 +1180,7 @@ typedef struct ide_driver_s {
...
@@ -1179,6 +1180,7 @@ typedef struct ide_driver_s {
int
(
*
end_request
)(
ide_drive_t
*
,
int
,
int
);
int
(
*
end_request
)(
ide_drive_t
*
,
int
,
int
);
u8
(
*
sense
)(
ide_drive_t
*
,
const
char
*
,
u8
);
u8
(
*
sense
)(
ide_drive_t
*
,
const
char
*
,
u8
);
ide_startstop_t
(
*
error
)(
ide_drive_t
*
,
const
char
*
,
u8
);
ide_startstop_t
(
*
error
)(
ide_drive_t
*
,
const
char
*
,
u8
);
ide_startstop_t
(
*
abort
)(
ide_drive_t
*
,
const
char
*
);
int
(
*
ioctl
)(
ide_drive_t
*
,
struct
inode
*
,
struct
file
*
,
unsigned
int
,
unsigned
long
);
int
(
*
ioctl
)(
ide_drive_t
*
,
struct
inode
*
,
struct
file
*
,
unsigned
int
,
unsigned
long
);
void
(
*
pre_reset
)(
ide_drive_t
*
);
void
(
*
pre_reset
)(
ide_drive_t
*
);
unsigned
long
(
*
capacity
)(
ide_drive_t
*
);
unsigned
long
(
*
capacity
)(
ide_drive_t
*
);
...
@@ -1277,6 +1279,13 @@ byte ide_dump_status (ide_drive_t *drive, const char *msg, byte stat);
...
@@ -1277,6 +1279,13 @@ byte ide_dump_status (ide_drive_t *drive, const char *msg, byte stat);
*/
*/
ide_startstop_t
ide_error
(
ide_drive_t
*
drive
,
const
char
*
msg
,
byte
stat
);
ide_startstop_t
ide_error
(
ide_drive_t
*
drive
,
const
char
*
msg
,
byte
stat
);
/*
* Abort a running command on the controller triggering the abort
* from a host side, non error situation
* (drive, msg)
*/
extern
ide_startstop_t
ide_abort
(
ide_drive_t
*
,
const
char
*
);
/*
/*
* Issue a simple drive command
* Issue a simple drive command
* The drive must be selected beforehand.
* The drive must be selected beforehand.
...
@@ -1324,12 +1333,6 @@ extern unsigned long current_capacity (ide_drive_t *drive);
...
@@ -1324,12 +1333,6 @@ extern unsigned long current_capacity (ide_drive_t *drive);
*/
*/
extern
ide_startstop_t
ide_do_reset
(
ide_drive_t
*
);
extern
ide_startstop_t
ide_do_reset
(
ide_drive_t
*
);
/*
* Re-Start an operation for an IDE interface.
* The caller should return immediately after invoking this.
*/
extern
int
restart_request
(
ide_drive_t
*
,
struct
request
*
);
/*
/*
* This function is intended to be used prior to invoking ide_do_drive_cmd().
* This function is intended to be used prior to invoking ide_do_drive_cmd().
*/
*/
...
@@ -1725,6 +1728,19 @@ extern void ide_toggle_bounce(ide_drive_t *drive, int on);
...
@@ -1725,6 +1728,19 @@ extern void ide_toggle_bounce(ide_drive_t *drive, int on);
extern
int
ide_set_xfer_rate
(
ide_drive_t
*
drive
,
u8
rate
);
extern
int
ide_set_xfer_rate
(
ide_drive_t
*
drive
,
u8
rate
);
extern
spinlock_t
ide_lock
;
extern
spinlock_t
ide_lock
;
extern
struct
semaphore
ide_cfg_sem
;
/*
* Structure locking:
*
* ide_cfg_sem and ide_lock together protect changes to
* ide_hwif_t->{next,hwgroup}
* ide_drive_t->next
*
* ide_hwgroup_t->busy: ide_lock
* ide_hwgroup_t->hwif: ide_lock
* ide_hwif_t->mate: constant, no locking
* ide_drive_t->hwif: constant, no locking
*/
#define local_irq_set(flags) do { local_save_flags((flags)); local_irq_enable(); } while (0)
#define local_irq_set(flags) do { local_save_flags((flags)); local_irq_enable(); } while (0)
...
...
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