Please wait until the page is fully downloaded and then press the "Expand" button or the blue line numbers.
0049001 /*
0049002 sr.h
0049003
0049004 Copyright 1995 Philip Homburg
0049005 */
0049006
0049007 #ifndef SR_H
0049008 #define SR_H
0049009
0049010 #define MAX_IOCTL_S 512
0049011
0049012 #define SR_CANCEL_IOCTL 1
0049013 #define SR_CANCEL_READ 2
0049014 #define SR_CANCEL_WRITE 3
0049015
0049016 /* Forward struct declarations */
0049017
0049018 struct acc;
0049019
0049020 /* prototypes */
0049021
0049022 typedef int (*sr_open_t) ARGS(( int port, int srfd,
0049023 get_userdata_t get_userdata, put_userdata_t put_userdata,
0049024 put_pkt_t put_pkt ));
0049025 typedef void (*sr_close_t) ARGS(( int fd ));
0049026 typedef int (*sr_read_t) ARGS(( int fd, size_t count ));
0049027 typedef int (*sr_write_t) ARGS(( int fd, size_t count ));
0049028 typedef int (*sr_ioctl_t) ARGS(( int fd, ioreq_t req ));
0049029 typedef int (*sr_cancel_t) ARGS(( int fd, int which_operation ));
0049030
0049031 void sr_init ARGS(( void ));
0049032 void sr_add_minor ARGS(( int minor, int port, sr_open_t openf,
0049033 sr_close_t closef, sr_read_t sr_read, sr_write_t sr_write,
0049034 sr_ioctl_t ioctlf, sr_cancel_t cancelf ));
0049035
0049036 #endif /* SR_H */
0049037
0049038
0049039 /*
0049040 * $PchId: sr.h,v 1.6 1996/05/07 20:50:51 philip Exp $
0049041 */
#if _ANSI
#define ARGS(x) x
#else /* _ANSI */
#define ARGS(x) ()
#endif /* _ANSI */