patch-2.1.9 linux/include/asm-sparc/pgtable.h

Next file: linux/include/asm-sparc/pgtsrmmu.h
Previous file: linux/include/asm-sparc/page.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.8/linux/include/asm-sparc/pgtable.h linux/include/asm-sparc/pgtable.h
@@ -1,4 +1,4 @@
-/* $Id: pgtable.h,v 1.46 1996/04/21 11:01:53 davem Exp $ */
+/* $Id: pgtable.h,v 1.51 1996/10/27 08:55:32 davem Exp $ */
 #ifndef _SPARC_PGTABLE_H
 #define _SPARC_PGTABLE_H
 
@@ -22,6 +22,10 @@
 
 extern void (*quick_kernel_fault)(unsigned long);
 
+/* Allocate a block of RAM which is aligned to its size.
+   This procedure can be used until the call to mem_init(). */
+extern void *sparc_init_alloc(unsigned long *kbrk, unsigned long size);
+
 /* mmu-specific process creation/cloning/etc hooks. */
 extern void (*mmu_exit_hook)(void);
 extern void (*mmu_flush_hook)(void);
@@ -36,16 +40,18 @@
 
 /* Routines for getting a dvma scsi buffer. */
 struct mmu_sglist {
-	/* ick, I know... */
 	char *addr;
-	char *alt_addr;
+	char *__dont_touch;
 	unsigned int len;
+	char *dvma_addr;
 };
 extern char *(*mmu_get_scsi_one)(char *, unsigned long, struct linux_sbus *sbus);
 extern void  (*mmu_get_scsi_sgl)(struct mmu_sglist *, int, struct linux_sbus *sbus);
 extern void  (*mmu_release_scsi_one)(char *, unsigned long, struct linux_sbus *sbus);
 extern void  (*mmu_release_scsi_sgl)(struct mmu_sglist *, int, struct linux_sbus *sbus);
 
+extern void  (*mmu_map_dma_area)(unsigned long addr, int len);
+
 extern unsigned int pmd_shift;
 extern unsigned int pmd_size;
 extern unsigned int pmd_mask;
@@ -166,8 +172,6 @@
 #define PAGE_PTR(address) \
 ((unsigned long)(address)>>(PAGE_SHIFT-SIZEOF_PTR_LOG2)&PTR_MASK&~PAGE_MASK)
 
-extern unsigned long high_memory;
-
 extern int (*pte_none)(pte_t);
 extern int (*pte_present)(pte_t);
 extern void (*pte_clear)(pte_t *);
@@ -202,6 +206,7 @@
  * and a page entry and page directory to the page they refer to.
  */
 extern pte_t (*mk_pte)(unsigned long, pgprot_t);
+extern pte_t (*mk_pte_phys)(unsigned long, pgprot_t);
 extern pte_t (*mk_pte_io)(unsigned long, pgprot_t, int);
 
 extern void (*pgd_set)(pgd_t *, pmd_t *);
@@ -341,13 +346,13 @@
 
 #define NO_CONTEXT     -1
 
-extern inline void remove_from_ctx_list(struct ctx_list *entry)
+extern __inline__ void remove_from_ctx_list(struct ctx_list *entry)
 {
 	entry->next->prev = entry->prev;
 	entry->prev->next = entry->next;
 }
 
-extern inline void add_to_ctx_list(struct ctx_list *head, struct ctx_list *entry)
+extern __inline__ void add_to_ctx_list(struct ctx_list *head, struct ctx_list *entry)
 {
 	entry->next = head;
 	(entry->prev = head->prev)->next = entry;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov