From 9f3f9054a692e53b60fca54221a402414e030335 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 27 Oct 2020 11:56:13 +0000 Subject: [PATCH] Remove vcfiled and vcfilesys --- .../vmcs_host/vc_vchi_fileservice_defs.h | 75 ---------------- interface/vmcs_host/vcfilesys_defs.h | 88 ------------------- 2 files changed, 163 deletions(-) delete mode 100644 interface/vmcs_host/vc_vchi_fileservice_defs.h delete mode 100644 interface/vmcs_host/vcfilesys_defs.h diff --git a/interface/vmcs_host/vc_vchi_fileservice_defs.h b/interface/vmcs_host/vc_vchi_fileservice_defs.h deleted file mode 100644 index 06770760d..000000000 --- a/interface/vmcs_host/vc_vchi_fileservice_defs.h +++ /dev/null @@ -1,75 +0,0 @@ -/* -Copyright (c) 2012, Broadcom Europe Ltd -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * Neither the name of the copyright holder nor the - names of its contributors may be used to endorse or promote products - derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -#ifndef VC_VCHI_FILESERVICE_DEFS_H -#define VC_VCHI_FILESERVICE_DEFS_H - -#include "interface/vchi/vchi.h" - -/* Definitions (not used by API) */ - -/* structure used by both side to communicate */ -#define FILESERV_MAX_BULK_SECTOR 128 //must be power of two - -#define FILESERV_SECTOR_LENGTH 512 - -#define FILESERV_MAX_BULK (FILESERV_MAX_BULK_SECTOR*FILESERV_SECTOR_LENGTH) - -#define FILESERV_4CC MAKE_FOURCC("FSRV") - -typedef enum FILESERV_EVENT_T -{ - FILESERV_BULK_RX = 0, - FILESERV_BULK_TX, - FILESERV_BULK_RX_0, - FILESERV_BULK_RX_1 -}FILESERV_EVENT_T; -//this following structure has to equal VCHI_MAX_MSG_SIZE -#define FILESERV_MAX_DATA (VCHI_MAX_MSG_SIZE - 40) //(VCHI_MAX_MSG_SIZE - 24) - -typedef struct{ - uint32_t xid; //4 // transaction's ID, used to match cmds with response - uint32_t cmd_code; //4 - uint32_t params[4]; //16 - char data[FILESERV_MAX_DATA]; -}FILESERV_MSG_T; - -typedef enum -{ - FILESERV_RESP_OK, - FILESERV_RESP_ERROR, - FILESERV_BULK_READ, - FILESERV_BULK_WRITE, - -} FILESERV_RESP_CODE_T; - - -/* Protocol (not used by API) version 1.2 */ - - - -#endif diff --git a/interface/vmcs_host/vcfilesys_defs.h b/interface/vmcs_host/vcfilesys_defs.h deleted file mode 100644 index cf7d70eaa..000000000 --- a/interface/vmcs_host/vcfilesys_defs.h +++ /dev/null @@ -1,88 +0,0 @@ -/* -Copyright (c) 2012, Broadcom Europe Ltd -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * Neither the name of the copyright holder nor the - names of its contributors may be used to endorse or promote products - derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// File service required types - -#ifndef VCFILESYS_DEFS_H -#define VCFILESYS_DEFS_H - -#include // for time_t - -/* Define type fattributes_t and struct dirent for use in file system functions */ - -typedef int fattributes_t; -//enum {ATTR_RDONLY=1, ATTR_DIRENT=2}; -#define ATTR_RDONLY 0x01 /* Read only file attributes */ -#define ATTR_HIDDEN 0x02 /* Hidden file attributes */ -#define ATTR_SYSTEM 0x04 /* System file attributes */ -#define ATTR_VOLUME 0x08 /* Volume Label file attributes */ -#define ATTR_DIRENT 0x10 /* Dirrectory file attributes */ -#define ATTR_ARCHIVE 0x20 /* Archives file attributes */ -#define ATTR_NORMAL 0x00 /* Normal file attributes */ - -#define D_NAME_MAX_SIZE 256 - -#ifndef _DIRENT_H // This should really be in a dirent.h header to avoid conflicts -struct dirent -{ - char d_name[D_NAME_MAX_SIZE]; - unsigned int d_size; - fattributes_t d_attrib; - time_t d_creatime; - time_t d_modtime; -}; -#endif // ifndef _DIRENT_H - -#define FS_MAX_PATH 256 // The maximum length of a pathname -/* Although not used in the API, this value is required on the host and -VC01 sides of the file system, even if there is no host side. Putting it in -vc_fileservice_defs.h is not appropriate as it would only be included if there -was a host side. */ - -/* File system error codes */ -#define FS_BAD_USER -7000 // The task isn't registered as a file system user - -#define FS_BAD_FILE -7001 // The path or filename or file descriptor is invalid -#define FS_BAD_PARM -7002 // Invalid parameter given -#define FS_ACCESS -7003 // File access conflict -#define FS_MAX_FILES -7004 // Maximum number of files already open -#define FS_NOEMPTY -7005 // Directory isn't empty -#define FS_MAX_SIZE -7006 // File is over the maximum file size - -#define FS_NO_DISK -7007 // No disk is present, or the disk has not been opened -#define FS_DISK_ERR -7008 // There is a problem with the disk - -#define FS_IO_ERROR -7009 // Driver level error - -#define FS_FMT_ERR -7010 // Format error - -#define FS_NO_BUFFER -7011 // Internal Nucleus File buffer not available -#define FS_NUF_INT -7012 // Internal Nucleus File error - -#define FS_UNSPEC_ERR -7013 // Unspecified error - -#endif