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
4eeabde5
Commit
4eeabde5
authored
Sep 16, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sym53c8xx_2: remove unnecessary IO pointer casts
They just meant that the __iomem annotation couldn't shine through.
parent
4ec5e62d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
drivers/scsi/sym53c8xx_2/sym_glue.h
drivers/scsi/sym53c8xx_2/sym_glue.h
+17
-17
No files found.
drivers/scsi/sym53c8xx_2/sym_glue.h
View file @
4eeabde5
...
...
@@ -288,32 +288,32 @@ typedef struct scsi_cmnd *cam_scsiio_p;/* SCSI I/O */
* MEMORY mapped IO input / output
*/
#define INB_OFF(o) readb(
(char *)
np->s.mmio_va + sym_offb(o))
#define OUTB_OFF(o, val) writeb((val),
(char *)
np->s.mmio_va + sym_offb(o))
#define INB_OFF(o) readb(np->s.mmio_va + sym_offb(o))
#define OUTB_OFF(o, val) writeb((val), np->s.mmio_va + sym_offb(o))
#if defined(__BIG_ENDIAN) && !defined(SYM_CONF_CHIP_BIG_ENDIAN)
#define INW_OFF(o) readw_l2b(
(char *)
np->s.mmio_va + sym_offw(o))
#define INL_OFF(o) readl_l2b(
(char *)
np->s.mmio_va + (o))
#define INW_OFF(o) readw_l2b(np->s.mmio_va + sym_offw(o))
#define INL_OFF(o) readl_l2b(np->s.mmio_va + (o))
#define OUTW_OFF(o, val) writew_b2l((val),
(char *)
np->s.mmio_va + sym_offw(o))
#define OUTL_OFF(o, val) writel_b2l((val),
(char *)
np->s.mmio_va + (o))
#define OUTW_OFF(o, val) writew_b2l((val), np->s.mmio_va + sym_offw(o))
#define OUTL_OFF(o, val) writel_b2l((val), np->s.mmio_va + (o))
#elif defined(__LITTLE_ENDIAN) && defined(SYM_CONF_CHIP_BIG_ENDIAN)
#define INW_OFF(o) readw_b2l(
(char *)
np->s.mmio_va + sym_offw(o))
#define INL_OFF(o) readl_b2l(
(char *)
np->s.mmio_va + (o))
#define INW_OFF(o) readw_b2l(np->s.mmio_va + sym_offw(o))
#define INL_OFF(o) readl_b2l(np->s.mmio_va + (o))
#define OUTW_OFF(o, val) writew_l2b((val),
(char *)
np->s.mmio_va + sym_offw(o))
#define OUTL_OFF(o, val) writel_l2b((val),
(char *)
np->s.mmio_va + (o))
#define OUTW_OFF(o, val) writew_l2b((val), np->s.mmio_va + sym_offw(o))
#define OUTL_OFF(o, val) writel_l2b((val), np->s.mmio_va + (o))
#else
#define INW_OFF(o) readw_raw(
(char *)
np->s.mmio_va + sym_offw(o))
#define INL_OFF(o) readl_raw(
(char *)
np->s.mmio_va + (o))
#define INW_OFF(o) readw_raw(np->s.mmio_va + sym_offw(o))
#define INL_OFF(o) readl_raw(np->s.mmio_va + (o))
#define OUTW_OFF(o, val) writew_raw((val),
(char *)
np->s.mmio_va + sym_offw(o))
#define OUTL_OFF(o, val) writel_raw((val),
(char *)
np->s.mmio_va + (o))
#define OUTW_OFF(o, val) writew_raw((val), np->s.mmio_va + sym_offw(o))
#define OUTL_OFF(o, val) writel_raw((val), np->s.mmio_va + (o))
#endif
...
...
@@ -390,8 +390,8 @@ struct sym_shcb {
struct
Scsi_Host
*
host
;
void
*
mmio_va
;
/* MMIO kernel virtual address */
void
*
ram_va
;
/* RAM kernel virtual address */
void
__iomem
*
mmio_va
;
/* MMIO kernel virtual address */
void
__iomem
*
ram_va
;
/* RAM kernel virtual address */
u_long
io_port
;
/* IO port address cookie */
u_short
io_ws
;
/* IO window size */
int
irq
;
/* IRQ number */
...
...
@@ -423,7 +423,7 @@ struct sym_slot {
int
irq
;
/* port and address fields to fit INB, OUTB macros */
u_long
io_port
;
void
*
mmio_va
;
void
__iomem
*
mmio_va
;
char
inst_name
[
16
];
};
...
...
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