Commit 9edf0fff authored by Jeff Garzik's avatar Jeff Garzik

Merge pobox.com:/garz/repo/netdev-2.6/ibmtr

into pobox.com:/garz/repo/net-drivers-2.6
parents cf4a4652 5e03b79d
......@@ -343,7 +343,8 @@ static void ibmtr_config(dev_link_t *link)
CS_CHECK(MapMemPage, pcmcia_map_mem_page(info->sram_win_handle, &mem));
ti->sram_base = mem.CardOffset >> 12;
ti->sram_virt = (u_long)ioremap(req.Base, req.Size);
ti->sram_virt = ioremap(req.Base, req.Size);
ti->sram_phys = req.Base;
CS_CHECK(RequestConfiguration, pcmcia_request_configuration(link->handle, &link->conf));
......@@ -401,7 +402,7 @@ static void ibmtr_release(dev_link_t *link)
pcmcia_release_irq(link->handle, &link->irq);
if (link->win) {
struct tok_info *ti = netdev_priv(dev);
iounmap((void *)ti->mmio);
iounmap(ti->mmio);
pcmcia_release_window(link->win);
pcmcia_release_window(info->sram_win_handle);
}
......@@ -433,7 +434,7 @@ static int ibmtr_event(event_t event, int priority,
if (link->state & DEV_CONFIG) {
/* set flag to bypass normal interrupt code */
struct tok_info *priv = netdev_priv(dev);
priv->sram_virt |= 1;
priv->sram_phys |= 1;
netif_device_detach(dev);
}
break;
......
This diff is collapsed.
......@@ -169,7 +169,7 @@ typedef enum { CLOSED, OPEN } open_state;
struct tok_info {
unsigned char irq;
void *mmio;
void __iomem *mmio;
unsigned char hw_address[32];
unsigned char adapter_type;
unsigned char data_rate;
......@@ -192,12 +192,13 @@ struct tok_info {
/* Additions by Peter De Schrijver */
unsigned char page_mask; /* mask to select RAM page to Map*/
unsigned char mapped_ram_size; /* size of RAM page */
__u32 sram_virt; /* Shared memory base address */
__u32 init_srb; /* Initial System Request Block address */
__u32 srb; /* System Request Block address */
__u32 ssb; /* System Status Block address */
__u32 arb; /* Adapter Request Block address */
__u32 asb; /* Adapter Status Block address */
__u32 sram_phys; /* Shared memory base address */
void __iomem *sram_virt; /* Shared memory base address */
void __iomem *init_srb; /* Initial System Request Block address */
void __iomem *srb; /* System Request Block address */
void __iomem *ssb; /* System Status Block address */
void __iomem *arb; /* Adapter Request Block address */
void __iomem *asb; /* Adapter Status Block address */
__u8 init_srb_page;
__u8 srb_page;
__u8 ssb_page;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment