Commit d843f16d authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] DAC960 per-disk gendisks

DAC960 switched to per-disk gendisks.
parent fb454fda
This diff is collapsed.
...@@ -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 */
...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment