X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-alpha%2Ffloppy.h;h=6a9f02af95294b4995e61dfc514b88433fd4f6ff;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=41ab32c4f04fa1e93c380b1e1f67a45888182d15;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/include/asm-alpha/floppy.h b/include/asm-alpha/floppy.h index 41ab32c4f..6a9f02af9 100644 --- a/include/asm-alpha/floppy.h +++ b/include/asm-alpha/floppy.h @@ -10,7 +10,6 @@ #ifndef __ASM_ALPHA_FLOPPY_H #define __ASM_ALPHA_FLOPPY_H -#include #define fd_inb(port) inb_p(port) #define fd_outb(value,port) outb_p(value,port) @@ -26,9 +25,8 @@ #define fd_enable_irq() enable_irq(FLOPPY_IRQ) #define fd_disable_irq() disable_irq(FLOPPY_IRQ) #define fd_cacheflush(addr,size) /* nothing */ -#define fd_request_irq() request_irq(FLOPPY_IRQ, floppy_interrupt, \ - SA_INTERRUPT|SA_SAMPLE_RANDOM, \ - "floppy", NULL) +#define fd_request_irq() request_irq(FLOPPY_IRQ, floppy_interrupt,\ + IRQF_DISABLED, "floppy", NULL) #define fd_free_irq() free_irq(FLOPPY_IRQ, NULL); #ifdef CONFIG_PCI @@ -108,10 +106,11 @@ static int FDC2 = -1; * on that platform... ;-} */ -#define CROSS_64KB(a,s) \ -({ unsigned long __s64 = (unsigned long)(a); \ - unsigned long __e64 = __s64 + (unsigned long)(s) - 1; \ - (__s64 ^ __e64) & ~0xfffful; }) +static inline unsigned long CROSS_64KB(void *a, unsigned long s) +{ + unsigned long p = (unsigned long)a; + return ((p + s - 1) ^ p) & ~0xffffUL; +} #define EXTRA_FLOPPY_PARAMS