typedef union {
u_long ioport;
- volatile uint8_t *maddr;
+ volatile uint8_t __iomem *maddr;
} bus_space_handle_t;
typedef struct bus_dma_segment
u_long *base, u_long *base2);
static int ahd_linux_pci_reserve_mem_region(struct ahd_softc *ahd,
u_long *bus_addr,
- uint8_t **maddr);
+ uint8_t __iomem **maddr);
static void ahd_linux_pci_dev_remove(struct pci_dev *pdev);
/* Define the macro locally since it's different for different class of chips.
static int
ahd_linux_pci_reserve_mem_region(struct ahd_softc *ahd,
u_long *bus_addr,
- uint8_t **maddr)
+ uint8_t __iomem **maddr)
{
u_long start;
u_long base_page;
{
uint32_t command;
u_long base;
- uint8_t *maddr;
+ uint8_t __iomem *maddr;
int error;
/*
typedef union {
u_long ioport;
- volatile uint8_t *maddr;
+ volatile uint8_t __iomem *maddr;
} bus_space_handle_t;
typedef struct bus_dma_segment
u_long *base);
static int ahc_linux_pci_reserve_mem_region(struct ahc_softc *ahc,
u_long *bus_addr,
- uint8_t **maddr);
+ uint8_t __iomem **maddr);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
static void ahc_linux_pci_dev_remove(struct pci_dev *pdev);
static int
ahc_linux_pci_reserve_mem_region(struct ahc_softc *ahc,
u_long *bus_addr,
- uint8_t **maddr)
+ uint8_t __iomem **maddr)
{
u_long start;
u_long base_page;
{
uint32_t command;
u_long base;
- uint8_t *maddr;
+ uint8_t __iomem *maddr;
int error;
/*