ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/AmigaOS/serial_amiga.cpp
(Generate patch)

Comparing BasiliskII/src/AmigaOS/serial_amiga.cpp (file contents):
Revision 1.1 by cebix, 1999-10-03T14:16:25Z vs.
Revision 1.3 by cebix, 2000-04-10T18:52:41Z

# Line 1 | Line 1
1   /*
2   *  serial_amiga.cpp - Serial device driver, AmigaOS specific stuff
3   *
4 < *  Basilisk II (C) 1997-1999 Christian Bauer
4 > *  Basilisk II (C) 1997-2000 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
# Line 85 | Line 85 | public:
85          {
86          }
87  
88 <        virtual int16 Open(uint16 config);
89 <        virtual int16 PrimeIn(uint32 pb, uint32 dce);
90 <        virtual int16 PrimeOut(uint32 pb, uint32 dce);
91 <        virtual int16 Control(uint32 pb, uint32 dce, uint16 code);
92 <        virtual int16 Status(uint32 pb, uint32 dce, uint16 code);
93 <        virtual int16 Close(void);
88 >        virtual int16 open(uint16 config);
89 >        virtual int16 prime_in(uint32 pb, uint32 dce);
90 >        virtual int16 prime_out(uint32 pb, uint32 dce);
91 >        virtual int16 control(uint32 pb, uint32 dce, uint16 code);
92 >        virtual int16 status(uint32 pb, uint32 dce, uint16 code);
93 >        virtual int16 close(void);
94  
95   private:
96          bool configure(uint16 config);
# Line 147 | Line 147 | void SerialExit(void)
147   *  Open serial port
148   */
149  
150 < int16 ASERDPort::Open(uint16 config)
150 > int16 ASERDPort::open(uint16 config)
151   {
152          // Don't open NULL name devices
153          if (device_name == NULL)
# Line 166 | Line 166 | int16 ASERDPort::Open(uint16 config)
166          proc_arg = this;
167          SetSignal(0, SIGF_SINGLE);
168          serial_proc = CreateNewProcTags(
169 <                NP_Entry, serial_func,
170 <                NP_Name, "Basilisk II Serial Task",
169 >                NP_Entry, (ULONG)serial_func,
170 >                NP_Name, (ULONG)"Basilisk II Serial Task",
171                  NP_Priority, 1,
172                  TAG_END
173          );
# Line 199 | Line 199 | open_error:
199   *  Read data from port
200   */
201  
202 < int16 ASERDPort::PrimeIn(uint32 pb, uint32 dce)
202 > int16 ASERDPort::prime_in(uint32 pb, uint32 dce)
203   {
204          // Send input command to serial process
205          D(bug("primein\n"));
# Line 215 | Line 215 | int16 ASERDPort::PrimeIn(uint32 pb, uint
215   *  Write data to port
216   */
217  
218 < int16 ASERDPort::PrimeOut(uint32 pb, uint32 dce)
218 > int16 ASERDPort::prime_out(uint32 pb, uint32 dce)
219   {
220          // Send output command to serial process
221          D(bug("primeout\n"));
# Line 231 | Line 231 | int16 ASERDPort::PrimeOut(uint32 pb, uin
231   *      Control calls
232   */
233  
234 < int16 ASERDPort::Control(uint32 pb, uint32 dce, uint16 code)
234 > int16 ASERDPort::control(uint32 pb, uint32 dce, uint16 code)
235   {
236          D(bug("control(%ld)\n", (uint32)code));
237          switch (code) {
# Line 326 | Line 326 | int16 ASERDPort::Control(uint32 pb, uint
326   *      Status calls
327   */
328  
329 < int16 ASERDPort::Status(uint32 pb, uint32 dce, uint16 code)
329 > int16 ASERDPort::status(uint32 pb, uint32 dce, uint16 code)
330   {
331          D(bug("status(%ld)\n", (uint32)code));
332          switch (code) {
# Line 381 | Line 381 | int16 ASERDPort::Status(uint32 pb, uint3
381   *      Close serial port
382   */
383  
384 < int16 ASERDPort::Close()
384 > int16 ASERDPort::close()
385   {
386          // Stop process
387          if (serial_proc) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines