fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / drivers / s390 / char / raw3270.h
index 8ce5fa5..90beaa8 100644 (file)
@@ -21,6 +21,7 @@
 
 /* Local Channel Commands */
 #define TC_WRITE       0x01            /* Write */
+#define TC_RDBUF       0x02            /* Read Buffer */
 #define TC_EWRITE      0x05            /* Erase write */
 #define TC_READMOD     0x06            /* Read modified */
 #define TC_EWRITEA     0x0d            /* Erase write alternate */
 #define TW_KR          0xc2            /* Keyboard restore */
 #define TW_PLUSALARM   0x04            /* Add this bit for alarm */
 
-#define RAW3270_MAXDEVS        256
-
-int raw3270_init(void);
-void raw3270_exit(void);
+#define RAW3270_FIRSTMINOR     1       /* First minor number */
+#define RAW3270_MAXDEVS                255     /* Max number of 3270 devices */
 
 /* For TUBGETMOD and TUBSETMOD. Should include. */
 struct raw3270_iocb {
@@ -169,7 +168,10 @@ void raw3270_del_view(struct raw3270_view *);
 void raw3270_deactivate_view(struct raw3270_view *);
 struct raw3270_view *raw3270_find_view(struct raw3270_fn *, int);
 int raw3270_start(struct raw3270_view *, struct raw3270_request *);
+int raw3270_start_locked(struct raw3270_view *, struct raw3270_request *);
 int raw3270_start_irq(struct raw3270_view *, struct raw3270_request *);
+int raw3270_reset(struct raw3270_view *);
+struct raw3270_view *raw3270_view(struct raw3270_view *);
 
 /* Reference count inliner for view structures. */
 static inline void
@@ -190,6 +192,10 @@ raw3270_put_view(struct raw3270_view *view)
 struct raw3270 *raw3270_setup_console(struct ccw_device *cdev);
 void raw3270_wait_cons_dev(struct raw3270 *);
 
+/* Notifier for device addition/removal */
+int raw3270_register_notifier(void (*notifier)(int, int));
+void raw3270_unregister_notifier(void (*notifier)(int, int));
+
 /*
  * Little memory allocator for string objects. 
  */
@@ -225,7 +231,7 @@ alloc_string(struct list_head *free_list, unsigned long len)
                INIT_LIST_HEAD(&cs->update);
                return cs;
        }
-       return 0;
+       return NULL;
 }
 
 static inline unsigned long