diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /include/linux/coda_psdev.h | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'include/linux/coda_psdev.h')
-rw-r--r-- | include/linux/coda_psdev.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/include/linux/coda_psdev.h b/include/linux/coda_psdev.h index 8031d6eef10..72f2d2f0af9 100644 --- a/include/linux/coda_psdev.h +++ b/include/linux/coda_psdev.h | |||
@@ -1,9 +1,14 @@ | |||
1 | #ifndef __CODA_PSDEV_H | 1 | #ifndef __CODA_PSDEV_H |
2 | #define __CODA_PSDEV_H | 2 | #define __CODA_PSDEV_H |
3 | 3 | ||
4 | #include <linux/magic.h> | ||
5 | |||
6 | #define CODA_PSDEV_MAJOR 67 | ||
7 | #define MAX_CODADEVS 5 /* how many do we allow */ | ||
8 | |||
9 | #ifdef __KERNEL__ | ||
4 | #include <linux/backing-dev.h> | 10 | #include <linux/backing-dev.h> |
5 | #include <linux/mutex.h> | 11 | #include <linux/mutex.h> |
6 | #include <uapi/linux/coda_psdev.h> | ||
7 | 12 | ||
8 | struct kstatfs; | 13 | struct kstatfs; |
9 | 14 | ||
@@ -69,4 +74,23 @@ int venus_statfs(struct dentry *dentry, struct kstatfs *sfs); | |||
69 | */ | 74 | */ |
70 | 75 | ||
71 | extern struct venus_comm coda_comms[]; | 76 | extern struct venus_comm coda_comms[]; |
77 | #endif /* __KERNEL__ */ | ||
78 | |||
79 | /* messages between coda filesystem in kernel and Venus */ | ||
80 | struct upc_req { | ||
81 | struct list_head uc_chain; | ||
82 | caddr_t uc_data; | ||
83 | u_short uc_flags; | ||
84 | u_short uc_inSize; /* Size is at most 5000 bytes */ | ||
85 | u_short uc_outSize; | ||
86 | u_short uc_opcode; /* copied from data to save lookup */ | ||
87 | int uc_unique; | ||
88 | wait_queue_head_t uc_sleep; /* process' wait queue */ | ||
89 | }; | ||
90 | |||
91 | #define CODA_REQ_ASYNC 0x1 | ||
92 | #define CODA_REQ_READ 0x2 | ||
93 | #define CODA_REQ_WRITE 0x4 | ||
94 | #define CODA_REQ_ABORT 0x8 | ||
95 | |||
72 | #endif | 96 | #endif |