From: margitsw@t-online.de (Margit Schubert-While)
To: jgarzik@pobox.com
Cc: netdev@oss.sgi.com, prism54-devel@prism54.org
Subject: [PATCH 1/1 linux-2.4.28-pre3] prism54 status to 2.6
Date: Sat, 9 Oct 2004 15:17:58 +0200 [thread overview]
Message-ID: <200410091517.58362.margitsw@t-online.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 284 bytes --]
2004-10-09 Margit Schubert-While <margitsw@t-online.de>
* 01_26compat.patch
* Bring prism54 into line with 2.6 after Linus's
* sparse patches. Thereafter patches will again be
* common to 2.4/2.6
Jeff, do you want that I directly copy Marcelo on patches ?
Margit
[-- Attachment #2: 01_26compat.patch --]
[-- Type: text/x-diff, Size: 6094 bytes --]
diff -Naur linux-2.4.28-pre3/drivers/net/wireless/prism54/isl_38xx.c linux-2.4.28-pre3msw/drivers/net/wireless/prism54/isl_38xx.c
--- linux-2.4.28-pre3/drivers/net/wireless/prism54/isl_38xx.c 2004-10-09 14:07:05.000000000 +0200
+++ linux-2.4.28-pre3msw/drivers/net/wireless/prism54/isl_38xx.c 2004-10-09 14:11:59.000000000 +0200
@@ -44,7 +44,7 @@
* register located at offset %ISL38XX_INT_IDENT_REG.
*/
void
-isl38xx_disable_interrupts(void *device)
+isl38xx_disable_interrupts(void __iomem *device)
{
isl38xx_w32_flush(device, 0x00000000, ISL38XX_INT_EN_REG);
udelay(ISL38XX_WRITEIO_DELAY);
@@ -52,7 +52,7 @@
void
isl38xx_handle_sleep_request(isl38xx_control_block *control_block,
- int *powerstate, void *device_base)
+ int *powerstate, void __iomem *device_base)
{
/* device requests to go into sleep mode
* check whether the transmit queues for data and management are empty */
@@ -88,7 +88,7 @@
void
isl38xx_handle_wakeup(isl38xx_control_block *control_block,
- int *powerstate, void *device_base)
+ int *powerstate, void __iomem *device_base)
{
/* device is in active state, update the powerstate flag */
*powerstate = ISL38XX_PSM_ACTIVE_STATE;
@@ -110,7 +110,7 @@
}
void
-isl38xx_trigger_device(int asleep, void *device_base)
+isl38xx_trigger_device(int asleep, void __iomem *device_base)
{
struct timeval current_time;
u32 reg, counter = 0;
@@ -190,7 +190,7 @@
}
void
-isl38xx_interface_reset(void *device_base, dma_addr_t host_address)
+isl38xx_interface_reset(void __iomem *device_base, dma_addr_t host_address)
{
#if VERBOSE > SHOW_ERROR_MESSAGES
DEBUG(SHOW_FUNCTION_CALLS, "isl38xx_interface_reset\n");
@@ -214,7 +214,7 @@
}
void
-isl38xx_enable_common_interrupts(void *device_base) {
+isl38xx_enable_common_interrupts(void __iomem *device_base) {
u32 reg;
reg = ( ISL38XX_INT_IDENT_UPDATE |
ISL38XX_INT_IDENT_SLEEP | ISL38XX_INT_IDENT_WAKEUP);
diff -Naur linux-2.4.28-pre3/drivers/net/wireless/prism54/isl_38xx.h linux-2.4.28-pre3msw/drivers/net/wireless/prism54/isl_38xx.h
--- linux-2.4.28-pre3/drivers/net/wireless/prism54/isl_38xx.h 2004-10-09 14:07:05.000000000 +0200
+++ linux-2.4.28-pre3msw/drivers/net/wireless/prism54/isl_38xx.h 2004-10-09 14:11:59.000000000 +0200
@@ -75,7 +75,7 @@
* from the %ISL38XX_PCI_POSTING_FLUSH offset.
*/
static inline void
-isl38xx_w32_flush(void *base, u32 val, unsigned long offset)
+isl38xx_w32_flush(void __iomem *base, u32 val, unsigned long offset)
{
writel(val, base + offset);
(void) readl(base + ISL38XX_PCI_POSTING_FLUSH);
@@ -161,13 +161,13 @@
/* determine number of entries currently in queue */
int isl38xx_in_queue(isl38xx_control_block *cb, int queue);
-void isl38xx_disable_interrupts(void *);
-void isl38xx_enable_common_interrupts(void *);
+void isl38xx_disable_interrupts(void __iomem *);
+void isl38xx_enable_common_interrupts(void __iomem *);
void isl38xx_handle_sleep_request(isl38xx_control_block *, int *,
- void *);
-void isl38xx_handle_wakeup(isl38xx_control_block *, int *, void *);
-void isl38xx_trigger_device(int, void *);
-void isl38xx_interface_reset(void *, dma_addr_t);
+ void __iomem *);
+void isl38xx_handle_wakeup(isl38xx_control_block *, int *, void __iomem *);
+void isl38xx_trigger_device(int, void __iomem *);
+void isl38xx_interface_reset(void __iomem *, dma_addr_t);
#endif /* _ISL_38XX_H */
diff -Naur linux-2.4.28-pre3/drivers/net/wireless/prism54/islpci_dev.c linux-2.4.28-pre3msw/drivers/net/wireless/prism54/islpci_dev.c
--- linux-2.4.28-pre3/drivers/net/wireless/prism54/islpci_dev.c 2004-10-09 14:07:05.000000000 +0200
+++ linux-2.4.28-pre3msw/drivers/net/wireless/prism54/islpci_dev.c 2004-10-09 14:11:59.000000000 +0200
@@ -58,7 +58,7 @@
isl_upload_firmware(islpci_private *priv)
{
u32 reg, rc;
- void *device_base = priv->device_base;
+ void __iomem *device_base = priv->device_base;
/* clear the RAMBoot and the Reset bit */
reg = readl(device_base + ISL38XX_CTRL_STAT_REG);
@@ -113,7 +113,7 @@
(fw_len >
ISL38XX_MEMORY_WINDOW_SIZE) ?
ISL38XX_MEMORY_WINDOW_SIZE : fw_len;
- u32 *dev_fw_ptr = device_base + ISL38XX_DIRECT_MEM_WIN;
+ u32 __iomem *dev_fw_ptr = device_base + ISL38XX_DIRECT_MEM_WIN;
/* set the cards base address for writting the data */
isl38xx_w32_flush(device_base, reg,
@@ -187,7 +187,7 @@
u32 reg;
islpci_private *priv = config;
struct net_device *ndev = priv->ndev;
- void *device = priv->device_base;
+ void __iomem *device = priv->device_base;
int powerstate = ISL38XX_PSM_POWERSAVE_STATE;
/* lock the interrupt handler */
@@ -407,7 +407,7 @@
static int
prism54_bring_down(islpci_private *priv)
{
- void *device_base = priv->device_base;
+ void __iomem *device_base = priv->device_base;
u32 reg;
/* we are going to shutdown the device */
islpci_set_state(priv, PRV_STATE_PREBOOT);
diff -Naur linux-2.4.28-pre3/drivers/net/wireless/prism54/islpci_dev.h linux-2.4.28-pre3msw/drivers/net/wireless/prism54/islpci_dev.h
--- linux-2.4.28-pre3/drivers/net/wireless/prism54/islpci_dev.h 2004-10-09 14:07:05.000000000 +0200
+++ linux-2.4.28-pre3msw/drivers/net/wireless/prism54/islpci_dev.h 2004-10-09 14:11:59.000000000 +0200
@@ -113,7 +113,7 @@
u32 pci_state[16]; /* used for suspend/resume */
char firmware[33];
- void *device_base; /* ioremapped device base address */
+ void __iomem *device_base; /* ioremapped device base address */
/* consistent DMA region */
void *driver_mem_address; /* base DMA address */
diff -Naur linux-2.4.28-pre3/drivers/net/wireless/prism54/prismcompat24.h linux-2.4.28-pre3msw/drivers/net/wireless/prism54/prismcompat24.h
--- linux-2.4.28-pre3/drivers/net/wireless/prism54/prismcompat24.h 2004-10-09 14:07:05.000000000 +0200
+++ linux-2.4.28-pre3msw/drivers/net/wireless/prism54/prismcompat24.h 2004-10-09 14:11:59.000000000 +0200
@@ -51,6 +51,10 @@
#define INIT_WORK INIT_TQUEUE
#define schedule_work schedule_task
+#ifndef __iomem
+#define __iomem
+#endif
+
#if !defined(HAVE_NETDEV_PRIV)
#define netdev_priv(x) (x)->priv
#endif
[-- Attachment #3: Type: text/plain, Size: 151 bytes --]
_______________________________________________
Prism54-devel mailing list
Prism54-devel@prism54.org
http://prism54.org/mailman/listinfo/prism54-devel
next reply other threads:[~2004-10-09 13:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-09 13:17 Margit Schubert-While [this message]
2004-10-15 18:44 ` [PATCH 1/1 linux-2.4.28-pre3] prism54 status to 2.6 Jeff Garzik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200410091517.58362.margitsw@t-online.de \
--to=margitsw@t-online.de \
--cc=jgarzik@pobox.com \
--cc=netdev@oss.sgi.com \
--cc=prism54-devel@prism54.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).