hos/kernel/fs/Device.h

39 lines
627 B
C++

// Device.h
// Device object for use in devfs
// Author: Josh Holtrop
// Date: 06/03/04
// Modified: 06/03/04
#ifndef __HOS_DEVICE__
#define __HOS_DEVICE__ __HOS_DEVICE__
#include "hos_defines.h"
#include "lang/string.h"
#include "lang/LinkedList.h"
#define DEVICE_FOLDER 0
#define DEVICE_BLOCK 1
#define DEVICE_CHAR 2
#define DEVICE_LINK 3
class Device
{
private:
union
{
dword myMajor;
LinkedList<Device> *folder;
string *link;
};
dword myMinor;
word permissions; //9-bit permissions | (type << 12)
string myName;
public:
// Device();
// Device(string name, dword major, dword minor, char type);
};
#endif