00001 /***************************************************************************************** 00002 Copyright (c) 2002-2004 The UbixOS Project 00003 All rights reserved. 00004 00005 Redistribution and use in source and binary forms, with or without modification, are 00006 permitted provided that the following conditions are met: 00007 00008 Redistributions of source code must retain the above copyright notice, this list of 00009 conditions, the following disclaimer and the list of authors. Redistributions in binary 00010 form must reproduce the above copyright notice, this list of conditions, the following 00011 disclaimer and the list of authors in the documentation and/or other materials provided 00012 with the distribution. Neither the name of the UbixOS Project nor the names of its 00013 contributors may be used to endorse or promote products derived from this software 00014 without specific prior written permission. 00015 00016 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 00017 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 00018 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 00019 THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00020 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 00021 OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00022 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 00023 TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00024 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00025 00026 $Id: devfs_8h-source.html 88 2016-01-12 00:11:29Z reddawg $ 00027 00028 *****************************************************************************************/ 00029 00030 #ifndef _DEVFS_H 00031 #define _DEVFS_H 00032 00033 #include <ubixos/types.h> 00034 #include <vfs/file.h> 00035 00036 struct devfs_devices { 00037 struct devfs_devices *next; 00038 struct devfs_devices *prev; 00039 uInt8 devType; 00040 uInt16 devMajor; 00041 uInt16 devMinor; 00042 char devName[32]; 00043 }; 00044 00045 struct devfs_info { 00046 struct devfs_devices *deviceList; 00047 }; 00048 00049 int devfs_init(); 00050 int devfs_makeNode(char *name,uInt8 type,uInt16 major,uInt16 minor); 00051 /* 00052 int devfs_open(char *file,fileDescriptor *fd); 00053 void devFSInit(struct mountPoints *mp); 00054 int devfs_read(fileDescriptor *fd,char *data,long offset,long size); 00055 int devfs_write(fileDescriptor *fd,char *data,long offset,long size); 00056 */ 00057 00058 #endif 00059 00060 /*** 00061 $Log: devfs_8h-source.html,v $ 00061 Revision 1.7 2006/12/15 17:47:04 reddawg 00061 Updates 00061 00062 Revision 1.1.1.1 2006/06/01 12:46:13 reddawg 00063 ubix2 00064 00065 Revision 1.2 2005/10/12 00:13:36 reddawg 00066 Removed 00067 00068 Revision 1.1.1.1 2005/09/26 17:23:38 reddawg 00069 no message 00070 00071 Revision 1.5 2004/07/21 10:02:09 reddawg 00072 devfs: renamed functions 00073 device system: renamed functions 00074 fdc: fixed a few potential bugs and cleaned up some unused variables 00075 strol: fixed definition 00076 endtask: made it print out freepage debug info 00077 kmalloc: fixed a huge memory leak we had some unhandled descriptor insertion so some descriptors were lost 00078 ld: fixed a pointer conversion 00079 file: cleaned up a few unused variables 00080 sched: broke task deletion 00081 kprintf: fixed ogPrintf definition 00082 00083 Revision 1.4 2004/07/14 12:17:52 reddawg 00084 devfs: devFSEnable to devfs_init 00085 Changed Startup Routines 00086 00087 Revision 1.3 2004/05/21 14:54:41 reddawg 00088 Cleaned up 00089 00090 00091 END 00092 ***/