Previous 15994 Revisions Next

r6087 Thursday 15th October, 2009 at 07:41:52 UTC by Dirk Best
Move serial.h to proper directory
[src/mess/drivers]abc80x.c atarist.c bw2.c nc.c newbrain.c ql.c sg1000.c
[src/mess/includes]serial.h thomson.h
[src/mess/machine]6551.c msm8251.c msm8251.h nc.c pmd85.c poly88.c serial.c serial.h*

src/mess/includes/serial.h
r6086r6087
1/*****************************************************************************
2 *
3 * includes/serial.h
4 *
5 * internal serial transmission
6 *
7 * This code is used to transmit a file stored on the host filesystem
8 * (e.g. PC harddrive) to an emulated system.
9 *
10 * The file is converted into a serial bit-stream which can be received
11 * by the emulated serial chip in the emulated system.
12 *
13 * The file can be transmitted using different protocols.
14 *
15 * A and B are two computers linked with a serial connection
16 * A and B can transmit and receive data, through the same connection
17 *
18 * These flags apply to A and B, and give the state of the input & output
19 * signals at each side.
20 *
21 ****************************************************************************/
22
23#ifndef SERIAL_H_
24#define SERIAL_H_
25
26
27/*
28    CTS = Clear to Send. (INPUT)
29    Other end of connection is ready to accept data
30
31
32    NOTE:
33
34      This output is active low on serial chips (e.g. 0 is CTS is set),
35      but here it is active high!
36*/
37#define SERIAL_STATE_CTS   0x0001
38
39/*
40    RTS = Request to Send. (OUTPUT)
41    This end is ready to send data, and requests if the other
42    end is ready to accept it
43
44    NOTE:
45
46      This output is active low on serial chips (e.g. 0 is RTS is set),
47      but here it is active high!
48*/
49#define SERIAL_STATE_RTS   0x0002
50
51/*
52    DSR = Data Set ready. (INPUT)
53    Other end of connection has data
54
55
56    NOTE:
57
58      This output is active low on serial chips (e.g. 0 is DSR is set),
59      but here it is active high!
60*/
61#define SERIAL_STATE_DSR   0x0004
62
63/*
64    DTR = Data terminal Ready. (OUTPUT)
65    TX contains new data.
66
67    NOTE:
68
69      This output is active low on serial chips (e.g. 0 is DTR is set),
70      but here it is active high!
71*/
72#define SERIAL_STATE_DTR   0x0008
73/* RX = Recieve data. (INPUT) */
74#define SERIAL_STATE_RX_DATA   0x00010
75/* TX = Transmit data. (OUTPUT) */
76#define SERIAL_STATE_TX_DATA   0x00020
77
78/* protocol selections */
79
80/* all data is transmitted with a start bit, data bits, optional parity bit,
81and stop bits. These are programmable. */
82enum
83{
84   SERIAL_PROTOCOL_NONE,      /* no protocol applied */
85   SERIAL_PROTOCOL_XMODEM      /* transfer data using xmodem protocol */
86};
87
88/* parity selections */
89/* if all the bits are added in a byte, if the result is:
90    even -> parity is even
91    odd -> parity is odd
92*/
93enum
94{
95   SERIAL_PARITY_NONE,      /* no parity. a parity bit will not be in the transmitted/received data */
96   SERIAL_PARITY_ODD,      /* odd parity */
97   SERIAL_PARITY_EVEN      /* even parity */
98};
99
100/* this macro is used to extract the received data from the status */
101#define get_in_data_bit(x) ((x & SERIAL_STATE_RX_DATA)>>4)
102
103/* this macro is used to set the transmitted data in the status */
104#define set_out_data_bit(x, data) \
105   x&=~SERIAL_STATE_TX_DATA; \
106   x|=(data<<5)
107
108
109/*******************************************************************************/
110/**** SERIAL CONNECTION ***/
111
112
113/* this structure represents a serial connection */
114struct serial_connection
115{
116   int id;
117
118   /* state of this side */
119   unsigned long State;
120
121   /* state of other side - store here */
122   unsigned long input_state;
123
124   /* this callback is executed when this side has refreshed it's state,
125    to let the other end know */
126   void   (*out_callback)(running_machine *machine, int id, unsigned long state);
127   /* this callback is executed when the other side has refreshed it's state,
128    to let the other end know */
129   void   (*in_callback)(running_machine *machine, int id, unsigned long state);
130};
131
132/*----------- defined in machine/serial.c -----------*/
133
134/* setup out and in callbacks */
135void serial_connection_init(running_machine *machine, struct serial_connection *connection);
136
137/* set callback which will be executed when out status has changed */
138void serial_connection_set_out_callback(running_machine *machine, struct serial_connection *connection, void (*out_cb)(running_machine *machine, int id, unsigned long state));
139
140/* set callback which will be executed when in status has changed */
141void serial_connection_set_in_callback(running_machine *machine, struct serial_connection *connection, void (*in_cb)(running_machine *machine, int id, unsigned long state));
142
143/* output status, if callback is setup it will be executed with the new status */
144void serial_connection_out(running_machine *machine, struct serial_connection *connection);
145
146/* join two serial connections */
147void serial_connection_link(running_machine *machine, struct serial_connection *connection_a, struct serial_connection *connection_b);
148
149
150/*******************************************************************************/
151
152/* form of data being transmitted and received */
153struct data_form
154{
155   /* length of word in bits */
156   unsigned long word_length;
157   /* parity state */
158   unsigned long parity;
159   /* number of stop bits */
160   unsigned long stop_bit_count;
161};
162
163/*******************************************************************************/
164
165/*******************************************************************************/
166/**** RECEIVE AND TRANSMIT GENERIC CODE ****/
167
168/* this can be used by most of the serial chip implementations,
169because they all work in roughly the same way.
170There is generic code to send and receive data in the specified form */
171
172/* receive is waiting for start bit. The transition from high-low indicates
173start of start bit. This is used to synchronise with the data being transfered */
174#define RECEIVE_REGISTER_WAITING_FOR_START_BIT 0x01
175/* receive is synchronised with data, data bits will be clocked in */
176#define RECEIVE_REGISTER_SYNCHRONISED 0x02
177/* set if receive register has been filled */
178#define RECEIVE_REGISTER_FULL 0x04
179
180
181/* the receive register holds data in receive form! */
182/* this must be extracted to get the data byte received */
183struct serial_receive_register
184{
185   /* data */
186   unsigned long register_data;
187   /* flags */
188   unsigned long flags;
189   /* bit count received */
190   unsigned long bit_count_received;
191   /* length of data to receive - includes data bits, parity bit and stop bit */
192   unsigned long bit_count;
193
194   /* the byte of data received */
195   unsigned char byte_received;
196};
197
198void   receive_register_setup(struct serial_receive_register *receive, struct data_form *data_form);
199void   receive_register_update_bit(struct serial_receive_register *receive, int bit_state);
200void   receive_register_extract(struct serial_receive_register *receive_reg, struct data_form *data_form);
201void   receive_register_reset(struct serial_receive_register *receive_reg);
202
203/* the transmit register is the final stage
204in the serial transmit procedure */
205/* normally, data is written to the transmit reg,
206then it is assembled into transmit form and transmitted */
207/* the transmit register holds data in transmit form */
208
209/* register is empty and ready to be filled with data */
210#define TRANSMIT_REGISTER_EMPTY 0x0001
211
212struct serial_transmit_register
213{
214   /* data */
215   unsigned long register_data;
216   /* flags */
217   unsigned long flags;
218   /* number of bits transmitted */
219   unsigned long bit_count_transmitted;
220   /* length of data to send */
221   unsigned long bit_count;
222};
223
224/* get a bit from the transmit register */
225int transmit_register_get_data_bit(struct serial_transmit_register *transmit_reg);
226/* setup transmit reg ready for transmit */
227void transmit_register_setup(struct serial_transmit_register *transmit_reg, struct data_form *data_form,unsigned char data_byte);
228void   transmit_register_send_bit(running_machine *machine, struct serial_transmit_register *transmit_reg, struct serial_connection *connection);
229void   transmit_register_reset(struct serial_transmit_register *transmit_reg);
230
231/*******************************************************************************/
232/**** SERIAL HELPER ****/
233
234void serial_helper_setup(void);
235unsigned char serial_helper_get_parity(unsigned char data);
236
237/*******************************************************************************/
238/**** SERIAL DEVICE ****/
239
240/* a read/write bit stream. used to transmit data and to receive data */
241struct data_stream
242{
243   /* pointer to buffer */
244   unsigned char *pData;
245   /* length of buffer */
246   unsigned long DataLength;
247
248   /* bit offset within current byte */
249   unsigned long BitCount;
250   /* byte offset within data */
251   unsigned long ByteCount;
252};
253
254/* an internal interface used by serial device */
255struct serial_protocol_interface
256{
257   /* callback executed when character has been received */
258   void (*character_received_callback)(int id,unsigned char ch);
259   /* callback executed when character has been transmitted, ready to transmit a new char */
260   void (*character_sent_callback)(int id);
261};
262
263/* a serial device */
264struct serial_device
265{
266   /* transmit data bit-stream */
267   struct data_stream transmit;
268   /* receive data bit-stream */
269   struct data_stream receive;
270
271   /* register to receive data */
272   struct serial_receive_register   receive_reg;
273   /* register to transmit data */
274   struct serial_transmit_register transmit_reg;
275
276   /* connection to transmit/receive data over */
277   struct serial_connection connection;
278
279   /* data form to transmit/receive */
280   struct data_form data_form;
281
282   int transmit_state;
283   int protocol;
284
285   /* baud rate */
286   unsigned long BaudRate;
287
288   /* baud rate timer */
289   void   *timer;
290
291   struct serial_protocol_interface protocol_interface;
292};
293
294unsigned long serial_device_get_state(int id);
295
296/* connect this device to the emulated serial chip */
297/* id is the serial device to connect to */
298/* connection is the serial connection to connect to the serial device */
299void serial_device_connect(const device_config *image, struct serial_connection *connection);
300
301/* init this device */
302DEVICE_START(serial_device);
303DEVICE_IMAGE_LOAD(serial_device);
304DEVICE_IMAGE_UNLOAD(serial_device);
305
306void serial_device_setup(const device_config *image, int baud_rate, int num_data_bits, int stop_bit_count, int parity_code);
307
308/* get name of protocol identified by specified id */
309const char *serial_device_get_protocol_name(int protocol_id);
310
311/* set the protocol to be used by the serial device */
312void serial_device_set_protocol(const device_config *image, int protocol_id);
313/* set the transmit state of the serial device */
314void serial_device_set_transmit_state(const device_config *image, int state);
315
316/***********************************************************************************************/
317/* XModem protocol */
318
319#define XMODEM_CRC_NAK   67 /* begins a xmodem-crc transfer */
320#define XMODEM_SOH      1   /* id of a 256 byte block */
321#define XMODEM_EOT      4
322#define XMODEM_ACK      6
323#define XMODEM_NAK      21   /* begins a xmodem transfer */
324#define XMODEM_CAN      24
325#define XMODEM_STX      2   /* id start of a 1k block */
326
327
328#endif /* SERIAL_H_ */
src/mess/includes/thomson.h
r6086r6087
1919#include "audio/mea8000.h"
2020#include "machine/ctronics.h"
2121#include "devices/cartslot.h"
22#include "includes/serial.h"
22#include "machine/serial.h"
2323#include "devices/cassette.h"
2424#include "machine/mc6843.h"
2525#include "machine/mc6846.h"
src/mess/machine/serial.c
r6086r6087
3030*/
3131
3232#include "driver.h"
33#include "includes/serial.h"
33#include "serial.h"
3434
3535
3636#define VERBOSE 0
src/mess/machine/serial.h
r0r6087
1/*****************************************************************************
2 *
3 * machine/serial.h
4 *
5 * internal serial transmission
6 *
7 * This code is used to transmit a file stored on the host filesystem
8 * (e.g. PC harddrive) to an emulated system.
9 *
10 * The file is converted into a serial bit-stream which can be received
11 * by the emulated serial chip in the emulated system.
12 *
13 * The file can be transmitted using different protocols.
14 *
15 * A and B are two computers linked with a serial connection
16 * A and B can transmit and receive data, through the same connection
17 *
18 * These flags apply to A and B, and give the state of the input & output
19 * signals at each side.
20 *
21 ****************************************************************************/
22
23#ifndef SERIAL_H_
24#define SERIAL_H_
25
26
27/*
28    CTS = Clear to Send. (INPUT)
29    Other end of connection is ready to accept data
30
31
32    NOTE:
33
34      This output is active low on serial chips (e.g. 0 is CTS is set),
35      but here it is active high!
36*/
37#define SERIAL_STATE_CTS   0x0001
38
39/*
40    RTS = Request to Send. (OUTPUT)
41    This end is ready to send data, and requests if the other
42    end is ready to accept it
43
44    NOTE:
45
46      This output is active low on serial chips (e.g. 0 is RTS is set),
47      but here it is active high!
48*/
49#define SERIAL_STATE_RTS   0x0002
50
51/*
52    DSR = Data Set ready. (INPUT)
53    Other end of connection has data
54
55
56    NOTE:
57
58      This output is active low on serial chips (e.g. 0 is DSR is set),
59      but here it is active high!
60*/
61#define SERIAL_STATE_DSR   0x0004
62
63/*
64    DTR = Data terminal Ready. (OUTPUT)
65    TX contains new data.
66
67    NOTE:
68
69      This output is active low on serial chips (e.g. 0 is DTR is set),
70      but here it is active high!
71*/
72#define SERIAL_STATE_DTR   0x0008
73/* RX = Recieve data. (INPUT) */
74#define SERIAL_STATE_RX_DATA   0x00010
75/* TX = Transmit data. (OUTPUT) */
76#define SERIAL_STATE_TX_DATA   0x00020
77
78/* protocol selections */
79
80/* all data is transmitted with a start bit, data bits, optional parity bit,
81and stop bits. These are programmable. */
82enum
83{
84   SERIAL_PROTOCOL_NONE,      /* no protocol applied */
85   SERIAL_PROTOCOL_XMODEM      /* transfer data using xmodem protocol */
86};
87
88/* parity selections */
89/* if all the bits are added in a byte, if the result is:
90    even -> parity is even
91    odd -> parity is odd
92*/
93enum
94{
95   SERIAL_PARITY_NONE,      /* no parity. a parity bit will not be in the transmitted/received data */
96   SERIAL_PARITY_ODD,      /* odd parity */
97   SERIAL_PARITY_EVEN      /* even parity */
98};
99
100/* this macro is used to extract the received data from the status */
101#define get_in_data_bit(x) ((x & SERIAL_STATE_RX_DATA)>>4)
102
103/* this macro is used to set the transmitted data in the status */
104#define set_out_data_bit(x, data) \
105   x&=~SERIAL_STATE_TX_DATA; \
106   x|=(data<<5)
107
108
109/*******************************************************************************/
110/**** SERIAL CONNECTION ***/
111
112
113/* this structure represents a serial connection */
114struct serial_connection
115{
116   int id;
117
118   /* state of this side */
119   unsigned long State;
120
121   /* state of other side - store here */
122   unsigned long input_state;
123
124   /* this callback is executed when this side has refreshed it's state,
125    to let the other end know */
126   void   (*out_callback)(running_machine *machine, int id, unsigned long state);
127   /* this callback is executed when the other side has refreshed it's state,
128    to let the other end know */
129   void   (*in_callback)(running_machine *machine, int id, unsigned long state);
130};
131
132/*----------- defined in machine/serial.c -----------*/
133
134/* setup out and in callbacks */
135void serial_connection_init(running_machine *machine, struct serial_connection *connection);
136
137/* set callback which will be executed when out status has changed */
138void serial_connection_set_out_callback(running_machine *machine, struct serial_connection *connection, void (*out_cb)(running_machine *machine, int id, unsigned long state));
139
140/* set callback which will be executed when in status has changed */
141void serial_connection_set_in_callback(running_machine *machine, struct serial_connection *connection, void (*in_cb)(running_machine *machine, int id, unsigned long state));
142
143/* output status, if callback is setup it will be executed with the new status */
144void serial_connection_out(running_machine *machine, struct serial_connection *connection);
145
146/* join two serial connections */
147void serial_connection_link(running_machine *machine, struct serial_connection *connection_a, struct serial_connection *connection_b);
148
149
150/*******************************************************************************/
151
152/* form of data being transmitted and received */
153struct data_form
154{
155   /* length of word in bits */
156   unsigned long word_length;
157   /* parity state */
158   unsigned long parity;
159   /* number of stop bits */
160   unsigned long stop_bit_count;
161};
162
163/*******************************************************************************/
164
165/*******************************************************************************/
166/**** RECEIVE AND TRANSMIT GENERIC CODE ****/
167
168/* this can be used by most of the serial chip implementations,
169because they all work in roughly the same way.
170There is generic code to send and receive data in the specified form */
171
172/* receive is waiting for start bit. The transition from high-low indicates
173start of start bit. This is used to synchronise with the data being transfered */
174#define RECEIVE_REGISTER_WAITING_FOR_START_BIT 0x01
175/* receive is synchronised with data, data bits will be clocked in */
176#define RECEIVE_REGISTER_SYNCHRONISED 0x02
177/* set if receive register has been filled */
178#define RECEIVE_REGISTER_FULL 0x04
179
180
181/* the receive register holds data in receive form! */
182/* this must be extracted to get the data byte received */
183struct serial_receive_register
184{
185   /* data */
186   unsigned long register_data;
187   /* flags */
188   unsigned long flags;
189   /* bit count received */
190   unsigned long bit_count_received;
191   /* length of data to receive - includes data bits, parity bit and stop bit */
192   unsigned long bit_count;
193
194   /* the byte of data received */
195   unsigned char byte_received;
196};
197
198void   receive_register_setup(struct serial_receive_register *receive, struct data_form *data_form);
199void   receive_register_update_bit(struct serial_receive_register *receive, int bit_state);
200void   receive_register_extract(struct serial_receive_register *receive_reg, struct data_form *data_form);
201void   receive_register_reset(struct serial_receive_register *receive_reg);
202
203/* the transmit register is the final stage
204in the serial transmit procedure */
205/* normally, data is written to the transmit reg,
206then it is assembled into transmit form and transmitted */
207/* the transmit register holds data in transmit form */
208
209/* register is empty and ready to be filled with data */
210#define TRANSMIT_REGISTER_EMPTY 0x0001
211
212struct serial_transmit_register
213{
214   /* data */
215   unsigned long register_data;
216   /* flags */
217   unsigned long flags;
218   /* number of bits transmitted */
219   unsigned long bit_count_transmitted;
220   /* length of data to send */
221   unsigned long bit_count;
222};
223
224/* get a bit from the transmit register */
225int transmit_register_get_data_bit(struct serial_transmit_register *transmit_reg);
226/* setup transmit reg ready for transmit */
227void transmit_register_setup(struct serial_transmit_register *transmit_reg, struct data_form *data_form,unsigned char data_byte);
228void   transmit_register_send_bit(running_machine *machine, struct serial_transmit_register *transmit_reg, struct serial_connection *connection);
229void   transmit_register_reset(struct serial_transmit_register *transmit_reg);
230
231/*******************************************************************************/
232/**** SERIAL HELPER ****/
233
234void serial_helper_setup(void);
235unsigned char serial_helper_get_parity(unsigned char data);
236
237/*******************************************************************************/
238/**** SERIAL DEVICE ****/
239
240/* a read/write bit stream. used to transmit data and to receive data */
241struct data_stream
242{
243   /* pointer to buffer */
244   unsigned char *pData;
245   /* length of buffer */
246   unsigned long DataLength;
247
248   /* bit offset within current byte */
249   unsigned long BitCount;
250   /* byte offset within data */
251   unsigned long ByteCount;
252};
253
254/* an internal interface used by serial device */
255struct serial_protocol_interface
256{
257   /* callback executed when character has been received */
258   void (*character_received_callback)(int id,unsigned char ch);
259   /* callback executed when character has been transmitted, ready to transmit a new char */
260   void (*character_sent_callback)(int id);
261};
262
263/* a serial device */
264struct serial_device
265{
266   /* transmit data bit-stream */
267   struct data_stream transmit;
268   /* receive data bit-stream */
269   struct data_stream receive;
270
271   /* register to receive data */
272   struct serial_receive_register   receive_reg;
273   /* register to transmit data */
274   struct serial_transmit_register transmit_reg;
275
276   /* connection to transmit/receive data over */
277   struct serial_connection connection;
278
279   /* data form to transmit/receive */
280   struct data_form data_form;
281
282   int transmit_state;
283   int protocol;
284
285   /* baud rate */
286   unsigned long BaudRate;
287
288   /* baud rate timer */
289   void   *timer;
290
291   struct serial_protocol_interface protocol_interface;
292};
293
294unsigned long serial_device_get_state(int id);
295
296/* connect this device to the emulated serial chip */
297/* id is the serial device to connect to */
298/* connection is the serial connection to connect to the serial device */
299void serial_device_connect(const device_config *image, struct serial_connection *connection);
300
301/* init this device */
302DEVICE_START(serial_device);
303DEVICE_IMAGE_LOAD(serial_device);
304DEVICE_IMAGE_UNLOAD(serial_device);
305
306void serial_device_setup(const device_config *image, int baud_rate, int num_data_bits, int stop_bit_count, int parity_code);
307
308/* get name of protocol identified by specified id */
309const char *serial_device_get_protocol_name(int protocol_id);
310
311/* set the protocol to be used by the serial device */
312void serial_device_set_protocol(const device_config *image, int protocol_id);
313/* set the transmit state of the serial device */
314void serial_device_set_transmit_state(const device_config *image, int state);
315
316/***********************************************************************************************/
317/* XModem protocol */
318
319#define XMODEM_CRC_NAK   67 /* begins a xmodem-crc transfer */
320#define XMODEM_SOH      1   /* id of a 256 byte block */
321#define XMODEM_EOT      4
322#define XMODEM_ACK      6
323#define XMODEM_NAK      21   /* begins a xmodem transfer */
324#define XMODEM_CAN      24
325#define XMODEM_STX      2   /* id start of a 1k block */
326
327
328#endif /* SERIAL_H_ */
src/mess/machine/pmd85.c
r6086r6087
1616#include "includes/pmd85.h"
1717#include "machine/msm8251.h"
1818#include "machine/pit8253.h"
19#include "includes/serial.h"
19#include "machine/serial.h"
2020#include "devices/messram.h"
2121
2222static UINT8 pmd85_rom_module_present = 0;
src/mess/machine/poly88.c
r6086r6087
1010#include "includes/poly88.h"
1111#include "cpu/i8085/i8085.h"
1212#include "devices/cassette.h"
13#include "includes/serial.h"
13#include "machine/serial.h"
1414
1515static UINT8 intr = 0;
1616static UINT8 last_code = 0;
src/mess/machine/nc.c
r6086r6087
66
77#include "driver.h"
88#include "includes/nc.h"
9#include "includes/serial.h"
9#include "machine/serial.h"
1010#include "machine/msm8251.h"
1111#include "image.h"
1212
src/mess/machine/6551.c
r6086r6087
1414
1515#include "driver.h"
1616#include "6551.h"
17#include "includes/serial.h"
17#include "machine/serial.h"
1818
1919
2020/***************************************************************************
src/mess/machine/msm8251.c
r6086r6087
88
99#include "driver.h"
1010#include "msm8251.h"
11#include "includes/serial.h"
11#include "machine/serial.h"
1212
1313
1414/***************************************************************************
src/mess/machine/msm8251.h
r6086r6087
99#ifndef __MSM8251_H__
1010#define __MSM8251_H__
1111
12#include "includes/serial.h"
12#include "machine/serial.h"
1313
1414
1515/***************************************************************************
src/mess/drivers/atarist.c
r6086r6087
66#include "devices/flopdrv.h"
77#include "devices/cartslot.h"
88#include "machine/ctronics.h"
9#include "includes/serial.h"
9#include "machine/serial.h"
1010#include "machine/6850acia.h"
1111#include "machine/68901mfp.h"
1212#include "machine/8530scc.h"
src/mess/drivers/sg1000.c
r6086r6087
7272#include "devices/cassette.h"
7373#include "devices/printer.h"
7474#include "machine/ctronics.h"
75#include "includes/serial.h"
75#include "machine/serial.h"
7676#include "machine/msm8251.h"
7777#include "machine/i8255a.h"
7878#include "machine/nec765.h"
src/mess/drivers/ql.c
r6086r6087
4747#include "devices/cartslot.h"
4848#include "devices/microdrv.h"
4949#include "devices/snapquik.h"
50#include "includes/serial.h"
50#include "machine/serial.h"
5151#include "sound/speaker.h"
5252#include "video/zx8301.h"
5353#include "machine/zx8302.h"
src/mess/drivers/abc80x.c
r6086r6087
6868/* Components */
6969#include "cpu/z80/z80.h"
7070#include "cpu/z80/z80daisy.h"
71#include "includes/serial.h"
71#include "machine/serial.h"
7272#include "machine/z80ctc.h"
7373#include "machine/z80sio.h"
7474#include "machine/z80dart.h"
src/mess/drivers/newbrain.c
r6086r6087
88#include "machine/z80ctc.h"
99#include "machine/z80sio.h"
1010#include "includes/newbrain.h"
11#include "includes/serial.h"
11#include "machine/serial.h"
1212#include "devices/flopdrv.h"
1313#include "formats/basicdsk.h"
1414#include "devices/cassette.h"
src/mess/drivers/nc.c
r6086r6087
9696#include "driver.h"
9797#include "cpu/z80/z80.h"
9898#include "includes/nc.h"
99#include "includes/serial.h"   /* for serial data transfers */
99#include "machine/serial.h"   /* for serial data transfers */
100100#include "machine/ctronics.h"
101101#include "machine/msm8251.h"   /* for NC100 uart */
102102#include "machine/mc146818.h"   /* for NC200 real time clock */
src/mess/drivers/bw2.c
r6086r6087
3030#include "driver.h"
3131#include "includes/bw2.h"
3232#include "cpu/z80/z80.h"
33#include "includes/serial.h"
33#include "machine/serial.h"
3434#include "machine/i8255a.h"
3535#include "machine/ctronics.h"
3636#include "machine/msm8251.h"

Previous 15994 Revisions Next


© 1998-2018 The MESS Team