1/*
2 * Copyright 2008-2009, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
4 */
5
6
7#include "BaseDevice.h"
8
9
10BaseDevice::BaseDevice()
11{
12}
13
14
15BaseDevice::~BaseDevice()
16{
17}
18
19
20status_t
21BaseDevice::InitDevice()
22{
23	return B_ERROR;
24}
25
26
27void
28BaseDevice::UninitDevice()
29{
30}
31
32
33void
34BaseDevice::Removed()
35{
36}
37
38
39bool
40BaseDevice::HasSelect() const
41{
42	return false;
43}
44
45
46bool
47BaseDevice::HasDeselect() const
48{
49	return false;
50}
51
52
53bool
54BaseDevice::HasRead() const
55{
56	return false;
57}
58
59
60bool
61BaseDevice::HasWrite() const
62{
63	return false;
64}
65
66
67bool
68BaseDevice::HasIO() const
69{
70	return false;
71}
72
73
74status_t
75BaseDevice::Read(void* cookie, off_t pos, void* buffer, size_t* _length)
76{
77	return B_UNSUPPORTED;
78}
79
80
81status_t
82BaseDevice::Write(void* cookie, off_t pos, const void* buffer, size_t* _length)
83{
84	return B_UNSUPPORTED;
85}
86
87
88status_t
89BaseDevice::IO(void* cookie, io_request* request)
90{
91	return B_UNSUPPORTED;
92}
93
94
95status_t
96BaseDevice::Control(void* cookie, int32 op, void* buffer, size_t length)
97{
98	return B_UNSUPPORTED;
99}
100
101
102status_t
103BaseDevice::Select(void* cookie, uint8 event, selectsync* sync)
104{
105	return B_UNSUPPORTED;
106}
107
108
109status_t
110BaseDevice::Deselect(void* cookie, uint8 event, selectsync* sync)
111{
112	return B_UNSUPPORTED;
113}
114