1 |
|
/* |
2 |
|
* serial.h - Serial device driver |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-1999 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2002 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 |
29 |
|
* 3 - .BOut |
30 |
|
*/ |
31 |
|
|
32 |
+ |
#ifdef POWERPC_ROM |
33 |
+ |
extern int16 SerialOpen(uint32 pb, uint32 dce); |
34 |
+ |
extern int16 SerialPrimeIn(uint32 pb, uint32 dce); |
35 |
+ |
extern int16 SerialPrimeOut(uint32 pb, uint32 dce); |
36 |
+ |
extern int16 SerialControl(uint32 pb, uint32 dce); |
37 |
+ |
extern int16 SerialStatus(uint32 pb, uint32 dce); |
38 |
+ |
extern int16 SerialClose(uint32 pb, uint32 dce); |
39 |
+ |
extern int16 SerialNothing(uint32 pb, uint32 dce); |
40 |
+ |
#else |
41 |
|
extern int16 SerialOpen(uint32 pb, uint32 dce, int port); |
42 |
|
extern int16 SerialPrime(uint32 pb, uint32 dce, int port); |
43 |
|
extern int16 SerialControl(uint32 pb, uint32 dce, int port); |
44 |
|
extern int16 SerialStatus(uint32 pb, uint32 dce, int port); |
45 |
|
extern int16 SerialClose(uint32 pb, uint32 dce, int port); |
46 |
+ |
#endif |
47 |
|
|
48 |
|
extern void SerialInterrupt(void); |
49 |
|
|
86 |
|
bool write_pending; // Write operation pending |
87 |
|
bool write_done; // Write operation complete |
88 |
|
uint32 output_dt; // Mac address of Deferred Task for writing |
89 |
+ |
|
90 |
+ |
#ifdef POWERPC_ROM |
91 |
+ |
uint8 dt_store[SIZEOF_serdt * 2]; |
92 |
+ |
#endif |
93 |
|
}; |
94 |
|
|
95 |
|
extern SERDPort *the_serd_port[2]; |