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
6ebe5a01
Commit
6ebe5a01
authored
Jun 19, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AIC79XX]: Protect ahd_linux_pci_reserve_mem_region with MMAPIO.
parent
189ea5d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
drivers/scsi/aic7xxx/aic79xx_osm_pci.c
drivers/scsi/aic7xxx/aic79xx_osm_pci.c
+4
-0
No files found.
drivers/scsi/aic7xxx/aic79xx_osm_pci.c
View file @
6ebe5a01
...
@@ -52,9 +52,11 @@ static int ahd_linux_pci_dev_probe(struct pci_dev *pdev,
...
@@ -52,9 +52,11 @@ static int ahd_linux_pci_dev_probe(struct pci_dev *pdev,
const
struct
pci_device_id
*
ent
);
const
struct
pci_device_id
*
ent
);
static
int
ahd_linux_pci_reserve_io_regions
(
struct
ahd_softc
*
ahd
,
static
int
ahd_linux_pci_reserve_io_regions
(
struct
ahd_softc
*
ahd
,
u_long
*
base
,
u_long
*
base2
);
u_long
*
base
,
u_long
*
base2
);
#ifdef MMAPIO
static
int
ahd_linux_pci_reserve_mem_region
(
struct
ahd_softc
*
ahd
,
static
int
ahd_linux_pci_reserve_mem_region
(
struct
ahd_softc
*
ahd
,
u_long
*
bus_addr
,
u_long
*
bus_addr
,
uint8_t
**
maddr
);
uint8_t
**
maddr
);
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
static
void
ahd_linux_pci_dev_remove
(
struct
pci_dev
*
pdev
);
static
void
ahd_linux_pci_dev_remove
(
struct
pci_dev
*
pdev
);
...
@@ -271,6 +273,7 @@ ahd_linux_pci_reserve_io_regions(struct ahd_softc *ahd, u_long *base,
...
@@ -271,6 +273,7 @@ ahd_linux_pci_reserve_io_regions(struct ahd_softc *ahd, u_long *base,
return
(
0
);
return
(
0
);
}
}
#ifdef MMAPIO
static
int
static
int
ahd_linux_pci_reserve_mem_region
(
struct
ahd_softc
*
ahd
,
ahd_linux_pci_reserve_mem_region
(
struct
ahd_softc
*
ahd
,
u_long
*
bus_addr
,
u_long
*
bus_addr
,
...
@@ -318,6 +321,7 @@ ahd_linux_pci_reserve_mem_region(struct ahd_softc *ahd,
...
@@ -318,6 +321,7 @@ ahd_linux_pci_reserve_mem_region(struct ahd_softc *ahd,
error
=
ENOMEM
;
error
=
ENOMEM
;
return
(
error
);
return
(
error
);
}
}
#endif
int
int
ahd_pci_map_registers
(
struct
ahd_softc
*
ahd
)
ahd_pci_map_registers
(
struct
ahd_softc
*
ahd
)
...
...
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