Wipe out the last remains of arch/mips64/boot, rot in pieces ...
[linux-2.6/linux-mips.git] / init / do_mounts.h
blob297ab11723d34f103a984283794701308bbdccbd
1 #define __KERNEL_SYSCALLS__
2 #include <linux/config.h>
3 #include <linux/kernel.h>
4 #include <linux/devfs_fs_kernel.h>
5 #include <linux/init.h>
6 #include <linux/unistd.h>
7 #include <linux/slab.h>
8 #include <linux/mount.h>
9 #include <linux/blk.h>
10 #include <linux/root_dev.h>
12 asmlinkage long sys_unlink(const char *name);
13 asmlinkage long sys_mknod(const char *name, int mode, dev_t dev);
14 asmlinkage long sys_newstat(char * filename, struct stat * statbuf);
15 asmlinkage long sys_ioctl(int fd, int cmd, unsigned long arg);
16 asmlinkage long sys_mkdir(const char *name, int mode);
17 asmlinkage long sys_rmdir(const char *name);
18 asmlinkage long sys_chdir(const char *name);
19 asmlinkage long sys_fchdir(int fd);
20 asmlinkage long sys_chroot(const char *name);
21 asmlinkage long sys_mount(char *dev_name, char *dir_name, char *type,
22 unsigned long flags, void *data);
23 asmlinkage long sys_umount(char *name, int flags);
25 dev_t name_to_dev_t(char *name);
26 void change_floppy(char *fmt, ...);
27 void mount_block_root(char *name, int flags);
28 void mount_root(void);
29 extern int root_mountflags;
30 extern char *root_device_name;
32 #ifdef CONFIG_DEVFS_FS
34 void mount_devfs(void);
35 void umount_devfs(char *path);
36 int create_dev(char *name, dev_t dev, char *devfs_name);
38 #else
40 static inline void mount_devfs(void) {}
41 static inline void umount_devfs(const char *path) {}
43 static inline int create_dev(char *name, dev_t dev, char *devfs_name)
45 sys_unlink(name);
46 return sys_mknod(name, S_IFBLK|0600, dev);
49 #endif
51 #ifdef CONFIG_BLK_DEV_RAM
53 int __init rd_load_disk(int n);
54 int __init rd_load_image(char *from);
56 #else
58 static inline int rd_load_disk(int n) { return 0; }
59 static inline int rd_load_image(char *from) { return 0; }
61 #endif
63 #ifdef CONFIG_BLK_DEV_INITRD
65 int __init initrd_load(void);
67 #else
69 static inline int initrd_load(void) { return 0; }
71 #endif
73 #ifdef CONFIG_BLK_DEV_MD
75 void md_run_setup(void);
77 #else
79 static inline void md_run_setup(void) {}
81 #endif