summaryrefslogtreecommitdiffstats
path: root/arch/mips/sgi/prom/file.c
blob: b62d33ddab6e9c1546868630ded7c527d6879be7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/* $Id: file.c,v 1.1 1996/06/08 04:47:22 dm Exp $
 * file.c: ARCS firmware interface to files.
 *
 * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com)
 */

#include <asm/sgialib.h>

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)
{
	return romvec->open(name, md, fd);
}

long prom_close(unsigned long fd)
{
	return romvec->close(fd);
}

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)
{
	return romvec->get_rstatus(fd);
}

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)
{
	return romvec->seek(fd, off, sm);
}

long prom_mount(char *name, enum linux_mountops op)
{
	return romvec->mount(name, op);
}

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)
{
	return romvec->set_finfo(fd, flags, msk);
}