summaryrefslogtreecommitdiffstats
path: root/arch/mips64/arc/file.c
blob: f609e78469f960619fb12846fd9ace3c94db9f37 (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
59
60
61
62
63
64
65
66
67
68
/* $Id$
 *
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
 * ARC firmware interface.
 *
 * Copyright (C) 1994, 1995, 1996, 1999 Ralf Baechle
 * Copyright (C) 1999 Silicon Graphics, Inc.
 */
#include <linux/init.h>
#include <asm/sgialib.h>

long __init prom_getvdirent(unsigned long fd, struct linux_vdirent *ent,
                            unsigned long num, unsigned long *cnt)
{
	return ARC_CALL4(get_vdirent, fd, ent, num, cnt);
}

long __init prom_open(char *name, enum linux_omode md, unsigned long *fd)
{
	return ARC_CALL3(open, name, md, fd);
}

long __init prom_close(unsigned long fd)
{
	return ARC_CALL1(close, fd);
}

long __init prom_read(unsigned long fd, void *buf, unsigned long num,
                      unsigned long *cnt)
{
	return ARC_CALL4(read, fd, buf, num, cnt);
}

long __init prom_getrstatus(unsigned long fd)
{
	return ARC_CALL1(get_rstatus, fd);
}

long __init prom_write(unsigned long fd, void *buf, unsigned long num,
                       unsigned long *cnt)
{
	return ARC_CALL4(write, fd, buf, num, cnt);
}

long __init prom_seek(unsigned long fd, struct linux_bigint *off,
                      enum linux_seekmode sm)
{
	return ARC_CALL3(seek, fd, off, sm);
}

long __init prom_mount(char *name, enum linux_mountops op)
{
	return ARC_CALL2(mount, name, op);
}

long __init prom_getfinfo(unsigned long fd, struct linux_finfo *buf)
{
	return ARC_CALL2(get_finfo, fd, buf);
}

long __init prom_setfinfo(unsigned long fd, unsigned long flags,
                          unsigned long msk)
{
	return ARC_CALL3(set_finfo, fd, flags, msk);
}