1 |
|
/* |
2 |
|
* serial_dummy.cpp - Serial device driver, dummy implementation |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-1999 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2004 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
42 |
|
{ |
43 |
|
} |
44 |
|
|
45 |
< |
virtual int16 Open(uint16 config); |
46 |
< |
virtual int16 PrimeIn(uint32 pb, uint32 dce); |
47 |
< |
virtual int16 PrimeOut(uint32 pb, uint32 dce); |
48 |
< |
virtual int16 Control(uint32 pb, uint32 dce, uint16 code); |
49 |
< |
virtual int16 Status(uint32 pb, uint32 dce, uint16 code); |
50 |
< |
virtual int16 Close(void); |
45 |
> |
virtual int16 open(uint16 config); |
46 |
> |
virtual int16 prime_in(uint32 pb, uint32 dce); |
47 |
> |
virtual int16 prime_out(uint32 pb, uint32 dce); |
48 |
> |
virtual int16 control(uint32 pb, uint32 dce, uint16 code); |
49 |
> |
virtual int16 status(uint32 pb, uint32 dce, uint16 code); |
50 |
> |
virtual int16 close(void); |
51 |
|
|
52 |
|
private: |
53 |
|
char *device_name; // Device name |
81 |
|
* Open serial port |
82 |
|
*/ |
83 |
|
|
84 |
< |
int16 DSERDPort::Open(uint16 config) |
84 |
> |
int16 DSERDPort::open(uint16 config) |
85 |
|
{ |
86 |
|
return openErr; |
87 |
|
} |
91 |
|
* Read data from port |
92 |
|
*/ |
93 |
|
|
94 |
< |
int16 DSERDPort::PrimeIn(uint32 pb, uint32 dce) |
94 |
> |
int16 DSERDPort::prime_in(uint32 pb, uint32 dce) |
95 |
|
{ |
96 |
|
return readErr; |
97 |
|
} |
101 |
|
* Write data to port |
102 |
|
*/ |
103 |
|
|
104 |
< |
int16 DSERDPort::PrimeOut(uint32 pb, uint32 dce) |
104 |
> |
int16 DSERDPort::prime_out(uint32 pb, uint32 dce) |
105 |
|
{ |
106 |
|
return writErr; |
107 |
|
} |
111 |
|
* Control calls |
112 |
|
*/ |
113 |
|
|
114 |
< |
int16 DSERDPort::Control(uint32 pb, uint32 dce, uint16 code) |
114 |
> |
int16 DSERDPort::control(uint32 pb, uint32 dce, uint16 code) |
115 |
|
{ |
116 |
|
return controlErr; |
117 |
|
} |
121 |
|
* Status calls |
122 |
|
*/ |
123 |
|
|
124 |
< |
int16 DSERDPort::Status(uint32 pb, uint32 dce, uint16 code) |
124 |
> |
int16 DSERDPort::status(uint32 pb, uint32 dce, uint16 code) |
125 |
|
{ |
126 |
|
return statusErr; |
127 |
|
} |
131 |
|
* Close serial port |
132 |
|
*/ |
133 |
|
|
134 |
< |
int16 DSERDPort::Close() |
134 |
> |
int16 DSERDPort::close() |
135 |
|
{ |
136 |
|
return noErr; |
137 |
|
} |