xref: /haiku/src/system/kernel/device_manager/BaseDevice.cpp (revision 7749d0bb0c358a3279b1b9cc76d8376e900130a5)
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 
10 BaseDevice::BaseDevice()
11 {
12 }
13 
14 
15 BaseDevice::~BaseDevice()
16 {
17 }
18 
19 
20 status_t
21 BaseDevice::InitDevice()
22 {
23 	return B_ERROR;
24 }
25 
26 
27 void
28 BaseDevice::UninitDevice()
29 {
30 }
31 
32 
33 void
34 BaseDevice::Removed()
35 {
36 }
37 
38 
39 bool
40 BaseDevice::HasSelect() const
41 {
42 	return false;
43 }
44 
45 
46 bool
47 BaseDevice::HasDeselect() const
48 {
49 	return false;
50 }
51 
52 
53 bool
54 BaseDevice::HasRead() const
55 {
56 	return false;
57 }
58 
59 
60 bool
61 BaseDevice::HasWrite() const
62 {
63 	return false;
64 }
65 
66 
67 bool
68 BaseDevice::HasIO() const
69 {
70 	return false;
71 }
72 
73 
74 status_t
75 BaseDevice::Read(void* cookie, off_t pos, void* buffer, size_t* _length)
76 {
77 	return B_UNSUPPORTED;
78 }
79 
80 
81 status_t
82 BaseDevice::Write(void* cookie, off_t pos, const void* buffer, size_t* _length)
83 {
84 	return B_UNSUPPORTED;
85 }
86 
87 
88 status_t
89 BaseDevice::IO(void* cookie, io_request* request)
90 {
91 	return B_UNSUPPORTED;
92 }
93 
94 
95 status_t
96 BaseDevice::Control(void* cookie, int32 op, void* buffer, size_t length)
97 {
98 	return B_UNSUPPORTED;
99 }
100 
101 
102 status_t
103 BaseDevice::Select(void* cookie, uint8 event, selectsync* sync)
104 {
105 	return B_UNSUPPORTED;
106 }
107 
108 
109 status_t
110 BaseDevice::Deselect(void* cookie, uint8 event, selectsync* sync)
111 {
112 	return B_UNSUPPORTED;
113 }
114