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
df5c1aca
Commit
df5c1aca
authored
Oct 07, 2002
by
Art Haas
Committed by
Linus Torvalds
Oct 07, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] named initializers for drivers/ide
parent
2d2a505b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
153 additions
and
153 deletions
+153
-153
drivers/ide/ide-cd.c
drivers/ide/ide-cd.c
+44
-44
drivers/ide/ide-disk.c
drivers/ide/ide-disk.c
+29
-29
drivers/ide/ide-floppy.c
drivers/ide/ide-floppy.c
+30
-30
drivers/ide/ide-proc.c
drivers/ide/ide-proc.c
+4
-4
drivers/ide/ide-tape.c
drivers/ide/ide-tape.c
+36
-36
drivers/ide/ide.c
drivers/ide/ide.c
+10
-10
No files found.
drivers/ide/ide-cd.c
View file @
df5c1aca
...
...
@@ -2563,26 +2563,26 @@ void ide_cdrom_release_real (struct cdrom_device_info *cdi)
* Device initialization.
*/
static
struct
cdrom_device_ops
ide_cdrom_dops
=
{
open:
ide_cdrom_open_real
,
release:
ide_cdrom_release_real
,
drive_status:
ide_cdrom_drive_status
,
media_changed:
ide_cdrom_check_media_change_real
,
tray_move:
ide_cdrom_tray_move
,
lock_door:
ide_cdrom_lock_door
,
select_speed:
ide_cdrom_select_speed
,
get_last_session:
ide_cdrom_get_last_session
,
get_mcn:
ide_cdrom_get_mcn
,
reset:
ide_cdrom_reset
,
audio_ioctl:
ide_cdrom_audio_ioctl
,
dev_ioctl:
ide_cdrom_dev_ioctl
,
capability:
CDC_CLOSE_TRAY
|
CDC_OPEN_TRAY
|
CDC_LOCK
|
.
open
=
ide_cdrom_open_real
,
.
release
=
ide_cdrom_release_real
,
.
drive_status
=
ide_cdrom_drive_status
,
.
media_changed
=
ide_cdrom_check_media_change_real
,
.
tray_move
=
ide_cdrom_tray_move
,
.
lock_door
=
ide_cdrom_lock_door
,
.
select_speed
=
ide_cdrom_select_speed
,
.
get_last_session
=
ide_cdrom_get_last_session
,
.
get_mcn
=
ide_cdrom_get_mcn
,
.
reset
=
ide_cdrom_reset
,
.
audio_ioctl
=
ide_cdrom_audio_ioctl
,
.
dev_ioctl
=
ide_cdrom_dev_ioctl
,
.
capability
=
CDC_CLOSE_TRAY
|
CDC_OPEN_TRAY
|
CDC_LOCK
|
CDC_SELECT_SPEED
|
CDC_SELECT_DISC
|
CDC_MULTI_SESSION
|
CDC_MCN
|
CDC_MEDIA_CHANGED
|
CDC_PLAY_AUDIO
|
CDC_RESET
|
CDC_IOCTLS
|
CDC_DRIVE_STATUS
|
CDC_CD_R
|
CDC_CD_RW
|
CDC_DVD
|
CDC_DVD_R
|
CDC_DVD_RAM
|
CDC_GENERIC_PACKET
,
generic_packet:
ide_cdrom_packet
,
.
generic_packet
=
ide_cdrom_packet
,
};
static
int
ide_cdrom_register
(
ide_drive_t
*
drive
,
int
nslots
)
...
...
@@ -3048,39 +3048,39 @@ int ide_cdrom_cleanup(ide_drive_t *drive)
static
int
ide_cdrom_attach
(
ide_drive_t
*
drive
);
static
ide_driver_t
ide_cdrom_driver
=
{
owner:
THIS_MODULE
,
name:
"ide-cdrom"
,
version:
IDECD_VERSION
,
media:
ide_cdrom
,
busy:
0
,
.
owner
=
THIS_MODULE
,
.
name
=
"ide-cdrom"
,
.
version
=
IDECD_VERSION
,
.
media
=
ide_cdrom
,
.
busy
=
0
,
#ifdef CONFIG_IDEDMA_ONLYDISK
supports_dma:
0
,
.
supports_dma
=
0
,
#else
supports_dma:
1
,
.
supports_dma
=
1
,
#endif
supports_dsc_overlap:
1
,
cleanup:
ide_cdrom_cleanup
,
standby:
NULL
,
suspend:
NULL
,
resume:
NULL
,
flushcache:
NULL
,
do_request:
ide_do_rw_cdrom
,
end_request:
NULL
,
sense:
ide_cdrom_dump_status
,
error:
ide_cdrom_error
,
ioctl:
ide_cdrom_ioctl
,
open:
ide_cdrom_open
,
release:
ide_cdrom_release
,
media_change:
ide_cdrom_check_media_change
,
revalidate:
ide_cdrom_revalidate
,
pre_reset:
NULL
,
capacity:
ide_cdrom_capacity
,
special:
NULL
,
proc:
NULL
,
attach:
ide_cdrom_attach
,
ata_prebuilder:
NULL
,
atapi_prebuilder:
NULL
,
drives:
LIST_HEAD_INIT
(
ide_cdrom_driver
.
drives
),
.
supports_dsc_overlap
=
1
,
.
cleanup
=
ide_cdrom_cleanup
,
.
standby
=
NULL
,
.
suspend
=
NULL
,
.
resume
=
NULL
,
.
flushcache
=
NULL
,
.
do_request
=
ide_do_rw_cdrom
,
.
end_request
=
NULL
,
.
sense
=
ide_cdrom_dump_status
,
.
error
=
ide_cdrom_error
,
.
ioctl
=
ide_cdrom_ioctl
,
.
open
=
ide_cdrom_open
,
.
release
=
ide_cdrom_release
,
.
media_change
=
ide_cdrom_check_media_change
,
.
revalidate
=
ide_cdrom_revalidate
,
.
pre_reset
=
NULL
,
.
capacity
=
ide_cdrom_capacity
,
.
special
=
NULL
,
.
proc
=
NULL
,
.
attach
=
ide_cdrom_attach
,
.
ata_prebuilder
=
NULL
,
.
atapi_prebuilder
=
NULL
,
.
drives
=
LIST_HEAD_INIT
(
ide_cdrom_driver
.
drives
),
};
/* options */
...
...
drivers/ide/ide-disk.c
View file @
df5c1aca
...
...
@@ -1709,35 +1709,35 @@ static int idedisk_attach(ide_drive_t *drive);
* IDE subdriver functions, registered with ide.c
*/
static
ide_driver_t
idedisk_driver
=
{
owner:
THIS_MODULE
,
name:
"ide-disk"
,
version:
IDEDISK_VERSION
,
media:
ide_disk
,
busy:
0
,
supports_dma:
1
,
supports_dsc_overlap:
0
,
cleanup:
idedisk_cleanup
,
standby:
do_idedisk_standby
,
suspend:
do_idedisk_suspend
,
resume:
do_idedisk_resume
,
flushcache:
do_idedisk_flushcache
,
do_request:
do_rw_disk
,
end_request:
NULL
,
sense:
idedisk_dump_status
,
error:
idedisk_error
,
ioctl:
idedisk_ioctl
,
open:
idedisk_open
,
release:
idedisk_release
,
media_change:
idedisk_media_change
,
revalidate:
idedisk_revalidate
,
pre_reset:
idedisk_pre_reset
,
capacity:
idedisk_capacity
,
special:
idedisk_special
,
proc:
idedisk_proc
,
attach:
idedisk_attach
,
ata_prebuilder:
NULL
,
atapi_prebuilder:
NULL
,
drives:
LIST_HEAD_INIT
(
idedisk_driver
.
drives
),
.
owner
=
THIS_MODULE
,
.
name
=
"ide-disk"
,
.
version
=
IDEDISK_VERSION
,
.
media
=
ide_disk
,
.
busy
=
0
,
.
supports_dma
=
1
,
.
supports_dsc_overlap
=
0
,
.
cleanup
=
idedisk_cleanup
,
.
standby
=
do_idedisk_standby
,
.
suspend
=
do_idedisk_suspend
,
.
resume
=
do_idedisk_resume
,
.
flushcache
=
do_idedisk_flushcache
,
.
do_request
=
do_rw_disk
,
.
end_request
=
NULL
,
.
sense
=
idedisk_dump_status
,
.
error
=
idedisk_error
,
.
ioctl
=
idedisk_ioctl
,
.
open
=
idedisk_open
,
.
release
=
idedisk_release
,
.
media_change
=
idedisk_media_change
,
.
revalidate
=
idedisk_revalidate
,
.
pre_reset
=
idedisk_pre_reset
,
.
capacity
=
idedisk_capacity
,
.
special
=
idedisk_special
,
.
proc
=
idedisk_proc
,
.
attach
=
idedisk_attach
,
.
ata_prebuilder
=
NULL
,
.
atapi_prebuilder
=
NULL
,
.
drives
=
LIST_HEAD_INIT
(
idedisk_driver
.
drives
),
};
MODULE_DESCRIPTION
(
"ATA DISK Driver"
);
...
...
drivers/ide/ide-floppy.c
View file @
df5c1aca
...
...
@@ -2042,39 +2042,39 @@ static int idefloppy_attach(ide_drive_t *drive);
* IDE subdriver functions, registered with ide.c
*/
static
ide_driver_t
idefloppy_driver
=
{
owner:
THIS_MODULE
,
name:
"ide-floppy"
,
version:
IDEFLOPPY_VERSION
,
media:
ide_floppy
,
busy:
0
,
.
owner
=
THIS_MODULE
,
.
name
=
"ide-floppy"
,
.
version
=
IDEFLOPPY_VERSION
,
.
media
=
ide_floppy
,
.
busy
=
0
,
#ifdef CONFIG_IDEDMA_ONLYDISK
supports_dma:
0
,
.
supports_dma
=
0
,
#else
supports_dma:
1
,
.
supports_dma
=
1
,
#endif
supports_dsc_overlap:
0
,
cleanup:
idefloppy_cleanup
,
standby:
NULL
,
suspend:
NULL
,
resume:
NULL
,
flushcache:
NULL
,
do_request:
idefloppy_do_request
,
end_request:
idefloppy_do_end_request
,
sense:
NULL
,
error:
NULL
,
ioctl:
idefloppy_ioctl
,
open:
idefloppy_open
,
release:
idefloppy_release
,
media_change:
idefloppy_media_change
,
revalidate:
idefloppy_revalidate
,
pre_reset:
NULL
,
capacity:
idefloppy_capacity
,
special:
NULL
,
proc:
idefloppy_proc
,
attach:
idefloppy_attach
,
ata_prebuilder:
NULL
,
atapi_prebuilder:
NULL
,
drives:
LIST_HEAD_INIT
(
idefloppy_driver
.
drives
),
.
supports_dsc_overlap
=
0
,
.
cleanup
=
idefloppy_cleanup
,
.
standby
=
NULL
,
.
suspend
=
NULL
,
.
resume
=
NULL
,
.
flushcache
=
NULL
,
.
do_request
=
idefloppy_do_request
,
.
end_request
=
idefloppy_do_end_request
,
.
sense
=
NULL
,
.
error
=
NULL
,
.
ioctl
=
idefloppy_ioctl
,
.
open
=
idefloppy_open
,
.
release
=
idefloppy_release
,
.
media_change
=
idefloppy_media_change
,
.
revalidate
=
idefloppy_revalidate
,
.
pre_reset
=
NULL
,
.
capacity
=
idefloppy_capacity
,
.
special
=
NULL
,
.
proc
=
idefloppy_proc
,
.
attach
=
idefloppy_attach
,
.
ata_prebuilder
=
NULL
,
.
atapi_prebuilder
=
NULL
,
.
drives
=
LIST_HEAD_INIT
(
idefloppy_driver
.
drives
),
};
static
int
idefloppy_attach
(
ide_drive_t
*
drive
)
...
...
drivers/ide/ide-proc.c
View file @
df5c1aca
...
...
@@ -851,10 +851,10 @@ static int ide_drivers_open(struct inode *inode, struct file *file)
return
seq_open
(
file
,
&
ide_drivers_op
);
}
static
struct
file_operations
ide_drivers_operations
=
{
open:
ide_drivers_open
,
read:
seq_read
,
llseek:
seq_lseek
,
release:
seq_release
,
.
open
=
ide_drivers_open
,
.
read
=
seq_read
,
.
llseek
=
seq_lseek
,
.
release
=
seq_release
,
};
void
proc_ide_create
(
void
)
...
...
drivers/ide/ide-tape.c
View file @
df5c1aca
...
...
@@ -6184,51 +6184,51 @@ static int idetape_attach(ide_drive_t *drive);
* IDE subdriver functions, registered with ide.c
*/
static
ide_driver_t
idetape_driver
=
{
owner:
THIS_MODULE
,
name:
"ide-tape"
,
version:
IDETAPE_VERSION
,
media:
ide_tape
,
busy:
1
,
.
owner
=
THIS_MODULE
,
.
name
=
"ide-tape"
,
.
version
=
IDETAPE_VERSION
,
.
media
=
ide_tape
,
.
busy
=
1
,
#ifdef CONFIG_IDEDMA_ONLYDISK
supports_dma:
0
,
.
supports_dma
=
0
,
#else
supports_dma:
1
,
.
supports_dma
=
1
,
#endif
supports_dsc_overlap:
1
,
cleanup:
idetape_cleanup
,
standby:
NULL
,
suspend:
NULL
,
resume:
NULL
,
flushcache:
NULL
,
do_request:
idetape_do_request
,
end_request:
idetape_end_request
,
sense:
NULL
,
error:
NULL
,
ioctl:
idetape_blkdev_ioctl
,
open:
idetape_blkdev_open
,
release:
idetape_blkdev_release
,
media_change:
NULL
,
revalidate:
NULL
,
pre_reset:
idetape_pre_reset
,
capacity:
NULL
,
special:
NULL
,
proc:
idetape_proc
,
attach:
idetape_attach
,
ata_prebuilder:
NULL
,
atapi_prebuilder:
NULL
,
drives:
LIST_HEAD_INIT
(
idetape_driver
.
drives
),
.
supports_dsc_overlap
=
1
,
.
cleanup
=
idetape_cleanup
,
.
standby
=
NULL
,
.
suspend
=
NULL
,
.
resume
=
NULL
,
.
flushcache
=
NULL
,
.
do_request
=
idetape_do_request
,
.
end_request
=
idetape_end_request
,
.
sense
=
NULL
,
.
error
=
NULL
,
.
ioctl
=
idetape_blkdev_ioctl
,
.
open
=
idetape_blkdev_open
,
.
release
=
idetape_blkdev_release
,
.
media_change
=
NULL
,
.
revalidate
=
NULL
,
.
pre_reset
=
idetape_pre_reset
,
.
capacity
=
NULL
,
.
special
=
NULL
,
.
proc
=
idetape_proc
,
.
attach
=
idetape_attach
,
.
ata_prebuilder
=
NULL
,
.
atapi_prebuilder
=
NULL
,
.
drives
=
LIST_HEAD_INIT
(
idetape_driver
.
drives
),
};
/*
* Our character device supporting functions, passed to register_chrdev.
*/
static
struct
file_operations
idetape_fops
=
{
owner:
THIS_MODULE
,
read:
idetape_chrdev_read
,
write:
idetape_chrdev_write
,
ioctl:
idetape_chrdev_ioctl
,
open:
idetape_chrdev_open
,
release:
idetape_chrdev_release
,
.
owner
=
THIS_MODULE
,
.
read
=
idetape_chrdev_read
,
.
write
=
idetape_chrdev_write
,
.
ioctl
=
idetape_chrdev_ioctl
,
.
open
=
idetape_chrdev_open
,
.
release
=
idetape_chrdev_release
,
};
static
int
idetape_attach
(
ide_drive_t
*
drive
)
...
...
drivers/ide/ide.c
View file @
df5c1aca
...
...
@@ -1689,10 +1689,10 @@ static int show_driver(struct seq_file *m, void *v)
return
0
;
}
struct
seq_operations
ide_drivers_op
=
{
start:
m_start
,
next:
m_next
,
stop:
m_stop
,
show:
show_driver
.
start
=
m_start
,
.
next
=
m_next
,
.
stop
=
m_stop
,
.
show
=
show_driver
};
#ifdef CONFIG_PROC_FS
...
...
@@ -3446,12 +3446,12 @@ void ide_unregister_driver(ide_driver_t *driver)
EXPORT_SYMBOL
(
ide_unregister_driver
);
struct
block_device_operations
ide_fops
[]
=
{{
owner:
THIS_MODULE
,
open:
ide_open
,
release:
ide_release
,
ioctl:
ide_ioctl
,
check_media_change:
ide_check_media_change
,
revalidate:
ide_revalidate_disk
.
owner
=
THIS_MODULE
,
.
open
=
ide_open
,
.
release
=
ide_release
,
.
ioctl
=
ide_ioctl
,
.
check_media_change
=
ide_check_media_change
,
.
revalidate
=
ide_revalidate_disk
}};
EXPORT_SYMBOL
(
ide_fops
);
...
...
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