Subversion Repositories Spectranet

[/] [trunk/] [rom/] [tnfs_defs.inc] - Rev 570

Go to most recent revision | Compare with Previous | Blame | View Log

;The MIT License
;
;Copyright (c) 2009 Dylan Smith
;
;Permission is hereby granted, free of charge, to any person obtaining a copy
;of this software and associated documentation files (the "Software"), to deal
;in the Software without restriction, including without limitation the rights
;to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
;copies of the Software, and to permit persons to whom the Software is
;furnished to do so, subject to the following conditions:
;
;The above copyright notice and this permission notice shall be included in
;all copies or substantial portions of the Software.
;
;THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
;IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
;FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
;AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
;LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
;OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
;THE SOFTWARE.

; TNFS definitions.

tnfs_polltime           equ 7   ; How many 50ths/sec we should poll for
tnfs_max_retries        equ 10  ; maximum retries
TNFS_POLLITER           equ 3043 ; number of iterations for 1/50th sec 

; Standard header offsets
tnfs_sid_offset         equ 0
tnfs_seqno_offset       equ 2
tnfs_cmd_offset         equ 3
tnfs_err_offset         equ 4
tnfs_msg_offset         equ 5
TNFS_READHEADERSZ       equ 7

; Mount group
TNFS_OP_MOUNT           equ 0
TNFS_OP_UMOUNT          equ 1

; Directory group
TNFS_OP_OPENDIR         equ 0x10
TNFS_OP_READDIR         equ 0x11
TNFS_OP_CLOSEDIR        equ 0x12
TNFS_OP_MKDIR           equ 0x13
TNFS_OP_RMDIR           equ 0x14

; File group
TNFS_OP_OPEN_DEPRECATED equ 0x20
TNFS_OP_OPEN            equ 0x29
TNFS_OP_READ            equ 0x21
TNFS_OP_WRITE           equ 0x22
TNFS_OP_CLOSE           equ 0x23
TNFS_OP_STAT            equ 0x24
TNFS_OP_LSEEK           equ 0x25
TNFS_OP_UNLINK          equ 0x26
TNFS_OP_CHMOD           equ 0x27
TNFS_OP_RENAME          equ 0x28

; Utility group
TNFS_OP_SIZE            equ 0x30
TNFS_OP_FREE            equ 0x31

Go to most recent revision | Compare with Previous | Blame | View Log