patch-2.1.101 linux/arch/mips/sgi/prom/file.c

Next file: linux/arch/mips/sgi/prom/init.c
Previous file: linux/arch/mips/sgi/prom/env.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.100/linux/arch/mips/sgi/prom/file.c linux/arch/mips/sgi/prom/file.c
@@ -1,58 +1,59 @@
-/* $Id: file.c,v 1.1.1.1 1997/06/01 03:16:40 ralf Exp $
+/*
  * file.c: ARCS firmware interface to files.
  *
  * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com)
+ *
+ * $Id: file.c,v 1.2 1998/05/01 01:35:24 ralf Exp $
  */
-
+#include <linux/init.h>
 #include <asm/sgialib.h>
 
-long prom_getvdirent(unsigned long fd, struct linux_vdirent *ent, unsigned long num,
-		     unsigned long *cnt)
+__initfunc(long prom_getvdirent(unsigned long fd, struct linux_vdirent *ent, unsigned long num, unsigned long *cnt))
 {
 	return romvec->get_vdirent(fd, ent, num, cnt);
 }
 
-long prom_open(char *name, enum linux_omode md, unsigned long *fd)
+__initfunc(long prom_open(char *name, enum linux_omode md, unsigned long *fd))
 {
 	return romvec->open(name, md, fd);
 }
 
-long prom_close(unsigned long fd)
+__initfunc(long prom_close(unsigned long fd))
 {
 	return romvec->close(fd);
 }
 
-long prom_read(unsigned long fd, void *buf, unsigned long num, unsigned long *cnt)
+__initfunc(long prom_read(unsigned long fd, void *buf, unsigned long num, unsigned long *cnt))
 {
 	return romvec->read(fd, buf, num, cnt);
 }
 
-long prom_getrstatus(unsigned long fd)
+__initfunc(long prom_getrstatus(unsigned long fd))
 {
 	return romvec->get_rstatus(fd);
 }
 
-long prom_write(unsigned long fd, void *buf, unsigned long num, unsigned long *cnt)
+__initfunc(long prom_write(unsigned long fd, void *buf, unsigned long num, unsigned long *cnt))
 {
 	return romvec->write(fd, buf, num, cnt);
 }
 
-long prom_seek(unsigned long fd, struct linux_bigint *off, enum linux_seekmode sm)
+__initfunc(long prom_seek(unsigned long fd, struct linux_bigint *off, enum linux_seekmode sm))
 {
 	return romvec->seek(fd, off, sm);
 }
 
-long prom_mount(char *name, enum linux_mountops op)
+__initfunc(long prom_mount(char *name, enum linux_mountops op))
 {
 	return romvec->mount(name, op);
 }
 
-long prom_getfinfo(unsigned long fd, struct linux_finfo *buf)
+__initfunc(long prom_getfinfo(unsigned long fd, struct linux_finfo *buf))
 {
 	return romvec->get_finfo(fd, buf);
 }
 
-long prom_setfinfo(unsigned long fd, unsigned long flags, unsigned long msk)
+__initfunc(long prom_setfinfo(unsigned long fd, unsigned long flags, unsigned long msk))
 {
 	return romvec->set_finfo(fd, flags, msk);
 }

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