strate_net/lib.rs
1/*
2 * This file is part of strat9-os.
3 *
4 * strat9-os is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * strat9-os is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with strat9-os. If not, see <https://www.gnu.org/licenses/>.
16 *
17 * Website: https://www.strat9-os.org
18 * Repository: https://github.com/strat9-os/strat9-os
19 *
20 * Copyright (C) 2023-26 Guillaume Gielly
21 */
22
23#![no_std]
24
25extern crate alloc;
26
27pub mod syscalls;
28
29pub use strat9_syscall::data::IpcMessage;
30
31pub const OPCODE_OPEN: u32 = 0x01;
32pub const OPCODE_READ: u32 = 0x02;
33pub const OPCODE_WRITE: u32 = 0x03;
34pub const OPCODE_CLOSE: u32 = 0x04;
35pub const OPCODE_READDIR: u32 = 0x08;
36pub const OPCODE_BULK_SETUP: u32 = 0x09;
37pub const OPCODE_BULK_TEARDOWN: u32 = 0x0A;
38pub const OPCODE_STAT: u32 = 0x0B;