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
d843f16d
Commit
d843f16d
authored
Aug 12, 2002
by
Alexander Viro
Committed by
Linus Torvalds
Aug 12, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] DAC960 per-disk gendisks
DAC960 switched to per-disk gendisks.
parent
fb454fda
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
99 additions
and
141 deletions
+99
-141
drivers/block/DAC960.c
drivers/block/DAC960.c
+93
-122
drivers/block/DAC960.h
drivers/block/DAC960.h
+6
-14
fs/partitions/check.c
fs/partitions/check.c
+0
-5
No files found.
drivers/block/DAC960.c
View file @
d843f16d
This diff is collapsed.
Click to expand it.
drivers/block/DAC960.h
View file @
d843f16d
...
@@ -2195,7 +2195,6 @@ typedef struct bio BufferHeader_T;
...
@@ -2195,7 +2195,6 @@ typedef struct bio BufferHeader_T;
typedef
struct
file
File_T
;
typedef
struct
file
File_T
;
typedef
struct
block_device_operations
BlockDeviceOperations_T
;
typedef
struct
block_device_operations
BlockDeviceOperations_T
;
typedef
struct
completion
Completion_T
;
typedef
struct
completion
Completion_T
;
typedef
struct
gendisk
GenericDiskInfo_T
;
typedef
struct
hd_geometry
DiskGeometry_T
;
typedef
struct
hd_geometry
DiskGeometry_T
;
typedef
struct
hd_struct
DiskPartition_T
;
typedef
struct
hd_struct
DiskPartition_T
;
typedef
struct
inode
Inode_T
;
typedef
struct
inode
Inode_T
;
...
@@ -2362,11 +2361,12 @@ typedef struct DAC960_Controller
...
@@ -2362,11 +2361,12 @@ typedef struct DAC960_Controller
boolean
MonitoringAlertMode
;
boolean
MonitoringAlertMode
;
boolean
SuppressEnclosureMessages
;
boolean
SuppressEnclosureMessages
;
Timer_T
MonitoringTimer
;
Timer_T
MonitoringTimer
;
GenericDiskInfo_T
GenericDiskInfo
;
struct
gendisk
disks
[
DAC960_MaxLogicalDrives
]
;
DAC960_Command_T
*
FreeCommands
;
DAC960_Command_T
*
FreeCommands
;
unsigned
char
*
CombinedStatusBuffer
;
unsigned
char
*
CombinedStatusBuffer
;
unsigned
char
*
CurrentStatusBuffer
;
unsigned
char
*
CurrentStatusBuffer
;
RequestQueue_T
*
RequestQueue
;
RequestQueue_T
*
RequestQueue
;
spinlock_t
queue_lock
;
WaitQueue_T
CommandWaitQueue
;
WaitQueue_T
CommandWaitQueue
;
WaitQueue_T
HealthStatusWaitQueue
;
WaitQueue_T
HealthStatusWaitQueue
;
DAC960_Command_T
InitialCommand
;
DAC960_Command_T
InitialCommand
;
...
@@ -2506,7 +2506,7 @@ static inline
...
@@ -2506,7 +2506,7 @@ static inline
void
DAC960_AcquireControllerLock
(
DAC960_Controller_T
*
Controller
,
void
DAC960_AcquireControllerLock
(
DAC960_Controller_T
*
Controller
,
ProcessorFlags_T
*
ProcessorFlags
)
ProcessorFlags_T
*
ProcessorFlags
)
{
{
spin_lock_irqsave
(
&
Controller
->
RequestQueue
->
queue_lock
,
*
ProcessorFlags
);
spin_lock_irqsave
(
Controller
->
RequestQueue
->
queue_lock
,
*
ProcessorFlags
);
}
}
...
@@ -2518,7 +2518,7 @@ static inline
...
@@ -2518,7 +2518,7 @@ static inline
void
DAC960_ReleaseControllerLock
(
DAC960_Controller_T
*
Controller
,
void
DAC960_ReleaseControllerLock
(
DAC960_Controller_T
*
Controller
,
ProcessorFlags_T
*
ProcessorFlags
)
ProcessorFlags_T
*
ProcessorFlags
)
{
{
spin_unlock_irqrestore
(
&
Controller
->
RequestQueue
->
queue_lock
,
*
ProcessorFlags
);
spin_unlock_irqrestore
(
Controller
->
RequestQueue
->
queue_lock
,
*
ProcessorFlags
);
}
}
...
@@ -2555,7 +2555,7 @@ static inline
...
@@ -2555,7 +2555,7 @@ static inline
void
DAC960_AcquireControllerLockIH
(
DAC960_Controller_T
*
Controller
,
void
DAC960_AcquireControllerLockIH
(
DAC960_Controller_T
*
Controller
,
ProcessorFlags_T
*
ProcessorFlags
)
ProcessorFlags_T
*
ProcessorFlags
)
{
{
spin_lock_irqsave
(
&
Controller
->
RequestQueue
->
queue_lock
,
*
ProcessorFlags
);
spin_lock_irqsave
(
Controller
->
RequestQueue
->
queue_lock
,
*
ProcessorFlags
);
}
}
...
@@ -2568,7 +2568,7 @@ static inline
...
@@ -2568,7 +2568,7 @@ static inline
void
DAC960_ReleaseControllerLockIH
(
DAC960_Controller_T
*
Controller
,
void
DAC960_ReleaseControllerLockIH
(
DAC960_Controller_T
*
Controller
,
ProcessorFlags_T
*
ProcessorFlags
)
ProcessorFlags_T
*
ProcessorFlags
)
{
{
spin_unlock_irqrestore
(
&
Controller
->
RequestQueue
->
queue_lock
,
*
ProcessorFlags
);
spin_unlock_irqrestore
(
Controller
->
RequestQueue
->
queue_lock
,
*
ProcessorFlags
);
}
}
#error I am a non-portable driver, please convert me to use the Documentation/DMA-mapping.txt interfaces
#error I am a non-portable driver, please convert me to use the Documentation/DMA-mapping.txt interfaces
...
@@ -4230,12 +4230,4 @@ static void DAC960_Message(DAC960_MessageLevel_T, unsigned char *,
...
@@ -4230,12 +4230,4 @@ static void DAC960_Message(DAC960_MessageLevel_T, unsigned char *,
static
void
DAC960_CreateProcEntries
(
void
);
static
void
DAC960_CreateProcEntries
(
void
);
static
void
DAC960_DestroyProcEntries
(
void
);
static
void
DAC960_DestroyProcEntries
(
void
);
/*
Export the Kernel Mode IOCTL interface.
*/
EXPORT_SYMBOL
(
DAC960_KernelIOCTL
);
#endif
/* DAC960_DriverVersion */
#endif
/* DAC960_DriverVersion */
fs/partitions/check.c
View file @
d843f16d
...
@@ -142,11 +142,6 @@ char *disk_name (struct gendisk *hd, int minor, char *buf)
...
@@ -142,11 +142,6 @@ char *disk_name (struct gendisk *hd, int minor, char *buf)
hd
->
major
-
COMPAQ_CISS_MAJOR
,
unit
);
hd
->
major
-
COMPAQ_CISS_MAJOR
,
unit
);
maj
=
s
;
maj
=
s
;
break
;
break
;
case
DAC960_MAJOR
...
DAC960_MAJOR
+
7
:
sprintf
(
s
,
"rd/c%dd%d"
,
hd
->
major
-
DAC960_MAJOR
,
unit
);
maj
=
s
;
break
;
case
ATARAID_MAJOR
:
case
ATARAID_MAJOR
:
sprintf
(
s
,
"ataraid/d%d"
,
unit
);
sprintf
(
s
,
"ataraid/d%d"
,
unit
);
maj
=
s
;
maj
=
s
;
...
...
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