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
961846ca
Commit
961846ca
authored
Mar 02, 2008
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] switch xd
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
4e109852
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
drivers/block/xd.c
drivers/block/xd.c
+2
-2
drivers/block/xd.h
drivers/block/xd.h
+1
-1
No files found.
drivers/block/xd.c
View file @
961846ca
...
@@ -132,7 +132,7 @@ static int xd_getgeo(struct block_device *bdev, struct hd_geometry *geo);
...
@@ -132,7 +132,7 @@ static int xd_getgeo(struct block_device *bdev, struct hd_geometry *geo);
static
struct
block_device_operations
xd_fops
=
{
static
struct
block_device_operations
xd_fops
=
{
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
_
_ioctl
=
xd_ioctl
,
.
locked
_ioctl
=
xd_ioctl
,
.
getgeo
=
xd_getgeo
,
.
getgeo
=
xd_getgeo
,
};
};
static
DECLARE_WAIT_QUEUE_HEAD
(
xd_wait_int
);
static
DECLARE_WAIT_QUEUE_HEAD
(
xd_wait_int
);
...
@@ -343,7 +343,7 @@ static int xd_getgeo(struct block_device *bdev, struct hd_geometry *geo)
...
@@ -343,7 +343,7 @@ static int xd_getgeo(struct block_device *bdev, struct hd_geometry *geo)
}
}
/* xd_ioctl: handle device ioctl's */
/* xd_ioctl: handle device ioctl's */
static
int
xd_ioctl
(
struct
inode
*
inode
,
struct
file
*
file
,
u_int
cmd
,
u_long
arg
)
static
int
xd_ioctl
(
struct
block_device
*
bdev
,
fmode_t
mode
,
u_int
cmd
,
u_long
arg
)
{
{
switch
(
cmd
)
{
switch
(
cmd
)
{
case
HDIO_SET_DMA
:
case
HDIO_SET_DMA
:
...
...
drivers/block/xd.h
View file @
961846ca
...
@@ -105,7 +105,7 @@ static u_char xd_detect (u_char *controller, unsigned int *address);
...
@@ -105,7 +105,7 @@ static u_char xd_detect (u_char *controller, unsigned int *address);
static
u_char
xd_initdrives
(
void
(
*
init_drive
)(
u_char
drive
));
static
u_char
xd_initdrives
(
void
(
*
init_drive
)(
u_char
drive
));
static
void
do_xd_request
(
struct
request_queue
*
q
);
static
void
do_xd_request
(
struct
request_queue
*
q
);
static
int
xd_ioctl
(
struct
inode
*
inode
,
struct
file
*
fil
e
,
unsigned
int
cmd
,
unsigned
long
arg
);
static
int
xd_ioctl
(
struct
block_device
*
bdev
,
fmode_t
mod
e
,
unsigned
int
cmd
,
unsigned
long
arg
);
static
int
xd_readwrite
(
u_char
operation
,
XD_INFO
*
disk
,
char
*
buffer
,
u_int
block
,
u_int
count
);
static
int
xd_readwrite
(
u_char
operation
,
XD_INFO
*
disk
,
char
*
buffer
,
u_int
block
,
u_int
count
);
static
void
xd_recalibrate
(
u_char
drive
);
static
void
xd_recalibrate
(
u_char
drive
);
...
...
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