/* pdp11_dup.h: PDP-11 DUP11 bit synchronous shared device packet interface interface | |
Copyright (c) 2013, Mark Pizzolato | |
Permission is hereby granted, free of charge, to any person obtaining a | |
copy of this software and associated documentation files (the "Software"), | |
to deal in the Software without restriction, including without limitation | |
the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
and/or sell copies of the Software, and to permit persons to whom the | |
Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in | |
all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | |
ROBERT M SUPNIK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | |
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | |
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
Except as contained in this notice, the name of Robert M Supnik shall not be | |
used in advertising or otherwise to promote the sale, use or other dealings | |
in this Software without prior written authorization from Robert M Supnik. | |
dup DUP11 Unibus/DPV11 Qbus bit synchronous interface | |
This module describes the interfaces exposed by the dup device for use by | |
a packet delivery devices (i.e. KMC11). | |
31-May-13 MP Initial implementation | |
*/ | |
#ifndef PDP11_DUP_H_ | |
#define PDP11_DUP_H_ 0 | |
typedef void (*PACKET_RECEIVE_CALLBACK)(int32 dup, uint8 *buf, size_t len); | |
typedef void (*PACKET_TRANSMIT_COMPLETE_CALLBACK)(int32 dup, int status); | |
int32 dup_get_line_speed (int32 dup); | |
int32 dup_get_DCD (int32 dup); | |
t_stat dup_set_DTR (int32 dup, t_bool state); | |
t_stat dup_set_DDCMP (int32 dup, t_bool state); | |
int32 dup_csr_to_linenum (int32 CSRPA); | |
void dup_set_callback_mode (int32 dup, PACKET_RECEIVE_CALLBACK receive, PACKET_TRANSMIT_COMPLETE_CALLBACK transmit); | |
t_bool dup_put_msg_bytes (int32 dup, uint8 *bytes, size_t len, t_bool start, t_bool end); | |
#endif /* PDP11_DUP_H_ */ |