--- a/me8100.h Fri Jan 18 21:00:56 2002 +0100
+++ b/me8100.h Mon Jan 21 19:35:53 2002 +0100
@@ -197,16 +197,27 @@
ME8100_B
} me8100_version_enum_type;
+/* private data: data that are to be stored in the file pointer we
+ * get from the calling process. */
struct me8100_private_data {
- unsigned long last_read; /* jiffies */
+ unsigned long last_read; /* jiffies */
};
struct me8100_subinfo {
unsigned int regbase;
unsigned short ctrl_reg;
unsigned long last_change;
+
+ unsigned short ctrl_wflags; /* flags the writer(s) (re)set */
+ unsigned short ctrl_rflags; /* flags the reader(s) (re)set */
+
int num_writer;
int num_reader;
+
+ int int_seen;
+ int int_count;
+
+ struct fasync_struct *fasync_ptr;
};
typedef struct{
@@ -224,13 +235,8 @@
int pci_dev_no; /* PCI device number */
int pci_func_no; /* PCI function number */
char int_line; /* IRQ assigned from the PCI BIOS */
- int int1; /* Marks witch interrupt occured */
- int int2; /* Marks witch interrupt occured */
- int int_count_1; /* Count of interrupt 1 */
- int int_count_2; /* Count of interrupt 2 */
int board_in_use; /* Indicates if board is already in use */
struct file *file_ptr; /* Pointer to file structure of path */
- struct fasync_struct *fasync_ptr; /* .hs */
struct me8100_subinfo subinfo[2]; /* .hs */
} me8100_info_type;