X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Fcyclades.h;h=337156ca8a7da22ae4d7c8c70f2b6766872a77a7;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=cc598507b8137215926be33c0acb03288256ddfd;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/include/linux/cyclades.h b/include/linux/cyclades.h index cc598507b..337156ca8 100644 --- a/include/linux/cyclades.h +++ b/include/linux/cyclades.h @@ -511,8 +511,8 @@ struct resource; struct cyclades_card { unsigned long base_phys; unsigned long ctl_phys; - unsigned long base_addr; - unsigned long ctl_addr; + void __iomem *base_addr; + void __iomem *ctl_addr; int irq; int num_chips; /* 0 if card absent, -1 if Z/PCI, else Y */ int first_line; /* minor number of first channel on card */ @@ -539,9 +539,9 @@ struct cyclades_chip { * (required to support Alpha systems) * ***************************************/ -#define cy_writeb(port,val) {writeb((ucchar)(val),(ulong)(port)); mb();} -#define cy_writew(port,val) {writew((ushort)(val),(ulong)(port)); mb();} -#define cy_writel(port,val) {writel((uclong)(val),(ulong)(port)); mb();} +#define cy_writeb(port,val) {writeb((val),(port)); mb();} +#define cy_writew(port,val) {writew((val),(port)); mb();} +#define cy_writel(port,val) {writel((val),(port)); mb();} #define cy_readb(port) readb(port) #define cy_readw(port) readw(port) @@ -624,7 +624,11 @@ struct cyclades_port { #define Cy_EVENT_DELTA_WAKEUP 6 #define Cy_EVENT_Z_RX_FULL 7 +#if HZ < 2185 #define CLOSING_WAIT_DELAY 30*HZ +#else +#define CLOSING_WAIT_DELAY 65534 +#endif #define CY_CLOSING_WAIT_NONE 65535 #define CY_CLOSING_WAIT_INF 0