btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / system / kernel / device_manager / BaseDevice.cpp
blobd3d1c8b13b601a38f33023d19ed9a113dc229eb3
1 /*
2 * Copyright 2008-2009, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
4 */
7 #include "BaseDevice.h"
10 BaseDevice::BaseDevice()
15 BaseDevice::~BaseDevice()
20 status_t
21 BaseDevice::InitDevice()
23 return B_ERROR;
27 void
28 BaseDevice::UninitDevice()
33 void
34 BaseDevice::Removed()
39 bool
40 BaseDevice::HasSelect() const
42 return false;
46 bool
47 BaseDevice::HasDeselect() const
49 return false;
53 bool
54 BaseDevice::HasRead() const
56 return false;
60 bool
61 BaseDevice::HasWrite() const
63 return false;
67 bool
68 BaseDevice::HasIO() const
70 return false;
74 status_t
75 BaseDevice::Read(void* cookie, off_t pos, void* buffer, size_t* _length)
77 return B_UNSUPPORTED;
81 status_t
82 BaseDevice::Write(void* cookie, off_t pos, const void* buffer, size_t* _length)
84 return B_UNSUPPORTED;
88 status_t
89 BaseDevice::IO(void* cookie, io_request* request)
91 return B_UNSUPPORTED;
95 status_t
96 BaseDevice::Control(void* cookie, int32 op, void* buffer, size_t length)
98 return B_UNSUPPORTED;
102 status_t
103 BaseDevice::Select(void* cookie, uint8 event, selectsync* sync)
105 return B_UNSUPPORTED;
109 status_t
110 BaseDevice::Deselect(void* cookie, uint8 event, selectsync* sync)
112 return B_UNSUPPORTED;