Main Page | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

cbm_module.h

00001 /*
00002  *      This program is free software; you can redistribute it and/or
00003  *      modify it under the terms of the GNU General Public License
00004  *      as published by the Free Software Foundation; either version
00005  *      2 of the License, or (at your option) any later version.
00006  *
00007  *  Copyright 1999 Michael Klein <michael(dot)klein(at)puffin(dot)lb(dot)shuttle(dot)de>
00008 */
00009 
00010 /* $Id: cbm_module.h,v 1.6 2006/03/20 11:25:58 trikalio Exp $ */
00011 
00012 #ifndef CBM_MODULE_H
00013 #define CBM_MODULE_H
00014 
00015 #include <linux/ioctl.h>
00016 #include <linux/types.h>
00017 
00018 #define CBMCTRL_BASE    0xcb
00019 
00020 #define CBMCTRL_TALK        _IO(CBMCTRL_BASE, 0)
00021 #define CBMCTRL_LISTEN      _IO(CBMCTRL_BASE, 1)
00022 #define CBMCTRL_UNTALK      _IO(CBMCTRL_BASE, 2)
00023 #define CBMCTRL_UNLISTEN    _IO(CBMCTRL_BASE, 3)
00024 #define CBMCTRL_OPEN        _IO(CBMCTRL_BASE, 4)
00025 #define CBMCTRL_CLOSE       _IO(CBMCTRL_BASE, 5)
00026 #define CBMCTRL_RESET       _IO(CBMCTRL_BASE, 6)
00027 #define CBMCTRL_GET_EOI     _IO(CBMCTRL_BASE, 7)
00028 #define CBMCTRL_CLEAR_EOI   _IO(CBMCTRL_BASE, 8)
00029 
00030 #define CBMCTRL_PP_READ     _IO(CBMCTRL_BASE, 10)
00031 #define CBMCTRL_PP_WRITE    _IO(CBMCTRL_BASE, 11)
00032 #define CBMCTRL_IEC_POLL    _IO(CBMCTRL_BASE, 12)
00033 #define CBMCTRL_IEC_SET     _IO(CBMCTRL_BASE, 13)
00034 #define CBMCTRL_IEC_RELEASE _IO(CBMCTRL_BASE, 14)
00035 #define CBMCTRL_IEC_WAIT    _IO(CBMCTRL_BASE, 15)
00036 #define CBMCTRL_IEC_SETRELEASE _IO(CBMCTRL_BASE, 16)
00037 
00038 /*linux constants needed by parallel burst */
00039 #define CBMCTRL_PARBURST_READ    _IO(CBMCTRL_BASE, 17)
00040 #define CBMCTRL_PARBURST_WRITE   _IO(CBMCTRL_BASE, 18)
00041 #define CBMCTRL_PARBURST_READ_TRACK        _IO(CBMCTRL_BASE, 19)
00042 #define CBMCTRL_PARBURST_WRITE_TRACK _IO(CBMCTRL_BASE, 20)
00043 
00044 typedef struct PARBURST_RW_VALUE {     // all values needed by PARBURST_READ_TRACK and PARBURST_WRITE_TRACK
00045        unsigned char *buffer;
00046        int length;
00047 } PARBURST_RW_VALUE;
00048 
00049 #endif

Generated on Sun Apr 30 18:45:43 2006 for opencbm by  doxygen 1.4.2