diff options
Diffstat (limited to 'src/byteblaster.h')
-rw-r--r-- | src/byteblaster.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/byteblaster.h b/src/byteblaster.h new file mode 100644 index 0000000..5b84389 --- /dev/null +++ b/src/byteblaster.h @@ -0,0 +1,38 @@ +/*************************************************************************** + byteblaster.c - Low-level functions to access the byteblaster + ------------------------------------------------------------- + + begin : Sun Jan 09 2005 + copyright : (C) 2005 by Aurelien Jarno + email : aurelien@aurel32.net + ***************************************************************************/ + +/*************************************************************************** + * * + * 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. * + * * + ***************************************************************************/ + +#ifndef BYTEBLASTER_H +#define BYTEBLASTER_H + +#ifdef HAVE_CONFIG_H + #include <config.h> +#endif + +/* Subroutines */ +int open_byteblaster(char *devicename); +void close_byteblaster(int device); +void enable_byteblaster(int device, int value); + +void set_DCLK(int device, int value); +void set_nCONFIG(int device, int value); +void set_DATA0(int device, int value); + +int get_nSTATUS(int device); +int get_CONF_DONE(int device); + +#endif |