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
be388a51
Commit
be388a51
authored
Dec 23, 2002
by
James Bottomley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SCSI 53c700] update to new generic device dma_ API
parent
b7ccbd3e
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
65 additions
and
110 deletions
+65
-110
drivers/scsi/53c700.c
drivers/scsi/53c700.c
+59
-77
drivers/scsi/53c700.h
drivers/scsi/53c700.h
+5
-28
drivers/scsi/Kconfig
drivers/scsi/Kconfig
+0
-5
drivers/scsi/NCR_D700.c
drivers/scsi/NCR_D700.c
+1
-0
No files found.
drivers/scsi/53c700.c
View file @
be388a51
This diff is collapsed.
Click to expand it.
drivers/scsi/53c700.h
View file @
be388a51
...
...
@@ -45,25 +45,6 @@
#error "Config.in must define either CONFIG_53C700_IO_MAPPED or CONFIG_53C700_MEM_MAPPED to use this scsi core."
#endif
/* macros for consistent memory allocation */
#ifdef CONFIG_53C700_USE_CONSISTENT
#define NCR_700_dma_cache_wback(mem, size) \
if(!hostdata->consistent) \
dma_cache_wback(mem, size)
#define NCR_700_dma_cache_inv(mem, size) \
if(!hostdata->consistent) \
dma_cache_inv(mem, size)
#define NCR_700_dma_cache_wback_inv(mem, size) \
if(!hostdata->consistent) \
dma_cache_wback_inv(mem, size)
#else
#define NCR_700_dma_cache_wback(mem, size) dma_cache_wback(mem,size)
#define NCR_700_dma_cache_inv(mem, size) dma_cache_inv(mem,size)
#define NCR_700_dma_cache_wback_inv(mem, size) dma_cache_wback_inv(mem,size)
#endif
struct
NCR_700_Host_Parameters
;
/* These are the externally used routines */
...
...
@@ -215,7 +196,7 @@ struct NCR_700_Host_Parameters {
/* These must be filled in by the calling driver */
int
clock
;
/* board clock speed in MHz */
unsigned
long
base
;
/* the base for the port (copied to host) */
struct
pci_dev
*
pci_
dev
;
struct
device
*
dev
;
__u32
dmode_extra
;
/* adjustable bus settings */
__u32
differential
:
1
;
/* if we are differential */
#ifdef CONFIG_53C700_LE_ON_BE
...
...
@@ -229,10 +210,6 @@ struct NCR_700_Host_Parameters {
/* NOTHING BELOW HERE NEEDS ALTERING */
__u32
fast
:
1
;
/* if we can alter the SCSI bus clock
speed (so can negiotiate sync) */
#ifdef CONFIG_53C700_USE_CONSISTENT
__u32
consistent
:
1
;
#endif
int
sync_clock
;
/* The speed of the SYNC core */
__u32
*
script
;
/* pointer to script location */
...
...
@@ -442,7 +419,7 @@ struct NCR_700_Host_Parameters {
for(i=0; i< (sizeof(A_##symbol##_used) / sizeof(__u32)); i++) { \
__u32 val = bS_to_cpu((script)[A_##symbol##_used[i]]) + value; \
(script)[A_##symbol##_used[i]] = bS_to_host(val); \
dma_cache_
wback((unsigned long)&(script)[A_##symbol##_used[i]], 4
); \
dma_cache_
sync(&(script)[A_##symbol##_used[i]], 4, DMA_TO_DEVICE
); \
DEBUG((" script, patching %s at %d to 0x%lx\n", \
#symbol, A_##symbol##_used[i], (value))); \
} \
...
...
@@ -453,7 +430,7 @@ struct NCR_700_Host_Parameters {
int i; \
for(i=0; i< (sizeof(A_##symbol##_used) / sizeof(__u32)); i++) { \
(script)[A_##symbol##_used[i]] = bS_to_host(value); \
dma_cache_
wback((unsigned long)&(script)[A_##symbol##_used[i]], 4
); \
dma_cache_
sync(&(script)[A_##symbol##_used[i]], 4, DMA_TO_DEVICE
); \
DEBUG((" script, patching %s at %d to 0x%lx\n", \
#symbol, A_##symbol##_used[i], (value))); \
} \
...
...
@@ -468,7 +445,7 @@ struct NCR_700_Host_Parameters {
val &= 0xff00ffff; \
val |= ((value) & 0xff) << 16; \
(script)[A_##symbol##_used[i]] = bS_to_host(val); \
dma_cache_
wback((unsigned long)&(script)[A_##symbol##_used[i]], 4
); \
dma_cache_
sync(&(script)[A_##symbol##_used[i]], 4, DMA_TO_DEVICE
); \
DEBUG((" script, patching ID field %s at %d to 0x%x\n", \
#symbol, A_##symbol##_used[i], val)); \
} \
...
...
@@ -482,7 +459,7 @@ struct NCR_700_Host_Parameters {
val &= 0xffff0000; \
val |= ((value) & 0xffff); \
(script)[A_##symbol##_used[i]] = bS_to_host(val); \
dma_cache_
wback((unsigned long)&(script)[A_##symbol##_used[i]], 4
); \
dma_cache_
sync(&(script)[A_##symbol##_used[i]], 4, DMA_TO_DEVICE
); \
DEBUG((" script, patching short field %s at %d to 0x%x\n", \
#symbol, A_##symbol##_used[i], val)); \
} \
...
...
drivers/scsi/Kconfig
View file @
be388a51
...
...
@@ -900,11 +900,6 @@ config 53C700_LE_ON_BE
depends
on
SCSI_LASI700
default
y
config
53
C700_USE_CONSISTENT
bool
depends
on
SCSI_LASI700
default
y
config
SCSI_NCR53C7xx
tristate
"NCR53c7,8xx SCSI support"
depends
on
SCSI
&&
PCI
...
...
drivers/scsi/NCR_D700.c
View file @
be388a51
...
...
@@ -307,6 +307,7 @@ NCR_D700_probe(struct device *dev)
continue
;
}
scsi_set_device
(
host
,
dev
);
hostdata
->
dev
=
dev
;
found
++
;
}
info
->
found
+=
found
;
...
...
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