diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2009-06-11 12:29:27 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-11 08:50:57 -0700 |
commit | 97e87f8ebe978e881c7325ba490574bd5500b133 (patch) | |
tree | 272dea45cc1a3d020a9290c46fbdf7ec866fbd34 /include/linux/cyclades.h | |
parent | 5ba5a5d21204f61ff655b322a90ed91c75194e4b (diff) | |
download | kernel_samsung_espresso10-97e87f8ebe978e881c7325ba490574bd5500b133.zip kernel_samsung_espresso10-97e87f8ebe978e881c7325ba490574bd5500b133.tar.gz kernel_samsung_espresso10-97e87f8ebe978e881c7325ba490574bd5500b133.tar.bz2 |
tty: cyclades, plx9060 casts cleanup
Remove ugly all-over-the-code casts of ctl_addr to 9060 space.
Add an union to the cyclades_card structure, which contains
a pointer to both 9050 and 9060 spaces.
The 9050 space layout is unknown, so let it still as a void
__iomem pointer.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/cyclades.h')
-rw-r--r-- | include/linux/cyclades.h | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/include/linux/cyclades.h b/include/linux/cyclades.h index 788850b..9ae03d5 100644 --- a/include/linux/cyclades.h +++ b/include/linux/cyclades.h @@ -507,16 +507,19 @@ struct ZFW_CTRL { /* Per card data structure */ struct cyclades_card { - void __iomem *base_addr; - void __iomem *ctl_addr; - int irq; - unsigned int num_chips; /* 0 if card absent, -1 if Z/PCI, else Y */ - unsigned int first_line; /* minor number of first channel on card */ - unsigned int nports; /* Number of ports in the card */ - int bus_index; /* address shift - 0 for ISA, 1 for PCI */ - int intr_enabled; /* FW Interrupt flag - 0 disabled, 1 enabled */ - spinlock_t card_lock; - struct cyclades_port *ports; + void __iomem *base_addr; + union { + void __iomem *p9050; + struct RUNTIME_9060 __iomem *p9060; + } ctl_addr; + int irq; + unsigned int num_chips; /* 0 if card absent, -1 if Z/PCI, else Y */ + unsigned int first_line; /* minor number of first channel on card */ + unsigned int nports; /* Number of ports in the card */ + int bus_index; /* address shift - 0 for ISA, 1 for PCI */ + int intr_enabled; /* FW Interrupt flag - 0 disabled, 1 enabled */ + spinlock_t card_lock; + struct cyclades_port *ports; }; /*************************************** |