diff options
| author | Matthew Wilcox <willy@debian.org> | 2002-11-03 00:21:37 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-11-03 00:21:37 -0800 |
| commit | 57b1dfbd5b4a39db574b45285cc34bbfc1504a36 (patch) | |
| tree | 6519933362017e73788a092ca215618b0c538207 /include | |
| parent | 9dbad95a91855890567a7b6c4f3a807d1d903ed9 (diff) | |
[PATCH] PA-RISC updates
Some misc updates:
- adapt our config.in changes to arch/parisc/Kconfig
- general Makefile updaes for the new build system
- remove asm-parisc/gsc.h in favour of asm-parisc/io.h
- Alan-approved fix for the loff_t problem
- Define POLLREMOVE like other architectures.
- irq handling updates from Grant Grundler
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-parisc/dma.h | 8 | ||||
| -rw-r--r-- | include/asm-parisc/gsc.h | 31 | ||||
| -rw-r--r-- | include/asm-parisc/io.h | 12 | ||||
| -rw-r--r-- | include/asm-parisc/poll.h | 1 | ||||
| -rw-r--r-- | include/asm-parisc/processor.h | 6 |
5 files changed, 17 insertions, 41 deletions
diff --git a/include/asm-parisc/dma.h b/include/asm-parisc/dma.h index d51c41b53d78..b087f5596ec2 100644 --- a/include/asm-parisc/dma.h +++ b/include/asm-parisc/dma.h @@ -1,4 +1,4 @@ -/* $Id: dma.h,v 1.1 2002/07/20 15:52:25 rhirst Exp $ +/* $Id: dma.h,v 1.2 1999/04/27 00:46:18 deller Exp $ * linux/include/asm/dma.h: Defines for using and allocating dma channels. * Written by Hennus Bergman, 1992. * High DMA channel support & info by Hannu Savolainen @@ -177,11 +177,7 @@ static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count) } - -/* These are in kernel/dma.c: */ -extern int request_dma(unsigned int dmanr, const char * device_id); /* reserve a DMA channel */ -extern void free_dma(unsigned int dmanr); /* release it again */ -extern int get_dma_list(char *buf); /* proc/dma support */ +#define free_dma(dmanr) #ifdef CONFIG_PCI extern int isa_dma_bridge_buggy; diff --git a/include/asm-parisc/gsc.h b/include/asm-parisc/gsc.h deleted file mode 100644 index 6ec113942029..000000000000 --- a/include/asm-parisc/gsc.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef ASM_PARISC_GSC_H -#define ASM_PARISC_GSC_H -#ifdef __KERNEL__ - -#include <linux/types.h> -#include <asm/io.h> /* temporary for __raw_{read,write} */ - -/* Please, call ioremap and use {read,write}[bwl] instead. These functions - * are not very fast. - */ -#define gsc_readb(x) __raw_readb((unsigned long)x) -#define gsc_readw(x) __raw_readw((unsigned long)x) -#define gsc_readl(x) __raw_readl((unsigned long)x) -#define gsc_writeb(x, y) __raw_writeb(x, (unsigned long)y) -#define gsc_writew(x, y) __raw_writew(x, (unsigned long)y) -#define gsc_writel(x, y) __raw_writel(x, (unsigned long)y) - -struct gsc_irq { - unsigned long txn_addr; /* IRQ "target" */ - int txn_data; /* HW "IRQ" */ - int irq; /* virtual IRQ */ -}; - -/* PA I/O Architected devices support at least 5 bits in the EIM register. */ -#define GSC_EIM_WIDTH 5 - -extern int gsc_alloc_irq(struct gsc_irq *dev); /* dev needs an irq */ -extern int gsc_claim_irq(struct gsc_irq *dev, int irq); /* dev needs this irq */ - -#endif /* __KERNEL__ */ -#endif /* LINUX_GSC_H */ diff --git a/include/asm-parisc/io.h b/include/asm-parisc/io.h index 636800b28473..ea211e3b77b6 100644 --- a/include/asm-parisc/io.h +++ b/include/asm-parisc/io.h @@ -182,6 +182,18 @@ extern void memset_io(unsigned long dest, char fill, int count); #define isa_memcpy_fromio(a,b,c) memcpy_fromio((a), EISA_BASE | (b), (c)) #define isa_memcpy_toio(a,b,c) memcpy_toio(EISA_BASE | (a), (b), (c)) +/* + * These functions support PA-RISC drivers which don't yet call ioremap(). + * They will disappear once the last of these drivers is gone. + */ +#define gsc_readb(x) __raw_readb((unsigned long)x) +#define gsc_readw(x) __raw_readw((unsigned long)x) +#define gsc_readl(x) __raw_readl((unsigned long)x) +#define gsc_writeb(x, y) __raw_writeb(x, (unsigned long)y) +#define gsc_writew(x, y) __raw_writew(x, (unsigned long)y) +#define gsc_writel(x, y) __raw_writel(x, (unsigned long)y) + + /* * XXX - We don't have csum_partial_copy_fromio() yet, so we cheat here and * just copy it. The net code will then do the checksum later. Presently diff --git a/include/asm-parisc/poll.h b/include/asm-parisc/poll.h index 55ebfcc44aae..1c1da86934cf 100644 --- a/include/asm-parisc/poll.h +++ b/include/asm-parisc/poll.h @@ -15,6 +15,7 @@ #define POLLWRNORM 0x0100 #define POLLWRBAND 0x0200 #define POLLMSG 0x0400 +#define POLLREMOVE 0x1000 struct pollfd { int fd; diff --git a/include/asm-parisc/processor.h b/include/asm-parisc/processor.h index c69b744b1576..a3cab768a4f0 100644 --- a/include/asm-parisc/processor.h +++ b/include/asm-parisc/processor.h @@ -73,10 +73,8 @@ struct system_cpuinfo_parisc { ** Per CPU data structure - ie varies per CPU. */ struct cpuinfo_parisc { - - struct irq_region *region; - unsigned long it_value; /* Interval Timer value at last timer Intr */ - unsigned long it_delta; /* Interval Timer delta (tic_10ms / HZ * 100) */ + unsigned long it_value; /* Interval Timer at last timer Intr */ + unsigned long it_delta; /* Interval delta (tic_10ms / HZ * 100) */ unsigned long irq_count; /* number of IRQ's since boot */ unsigned long irq_max_cr16; /* longest time to handle a single IRQ */ unsigned long cpuid; /* aka slot_number or set to NO_PROC_ID */ |
