initial push
This commit is contained in:
60
m68k/lib/bdmRemote.h
Normal file
60
m68k/lib/bdmRemote.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Motorola Background Debug Mode Remote Library
|
||||
* Copyright (C) 1998 Chris Johns
|
||||
*
|
||||
* Based on `ser-tcp.c' in the gdb sources.
|
||||
*
|
||||
* 31-11-1999 Chris Johns (ccj@acm.org)
|
||||
* Extended to support remote operation. See bdmRemote.c for details.
|
||||
*
|
||||
* Chris Johns
|
||||
* Objective Design Systems
|
||||
* 35 Cairo Street
|
||||
* Cammeray, Sydney, 2062, Australia
|
||||
*
|
||||
* ccj@acm.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef _BDM_REMOTE_LIB_H_
|
||||
#define _BDM_REMOTE_LIB_H_
|
||||
|
||||
#if __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#include "BDMlib.h"
|
||||
|
||||
/*
|
||||
* Internal to the BDM library.
|
||||
*/
|
||||
|
||||
const char *bdmRemoteStrerror (int error_no);
|
||||
int bdmRemoteName (const char *name);
|
||||
int bdmRemoteOpen (const char *name);
|
||||
int bdmRemoteClose (int fd);
|
||||
int bdmRemoteIoctlInt (int fd, int code, int *var);
|
||||
int bdmRemoteIoctlCommand (int fd, int code);
|
||||
int bdmRemoteIoctlIo (int fd, int code, struct BDMioctl *ioc);
|
||||
int bdmRemoteRead (int fd, unsigned char *cbuf, unsigned long nbytes);
|
||||
int bdmRemoteWrite (int fd, unsigned char *cbuf, unsigned long nbytes);
|
||||
|
||||
#if __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user